2015-07-11 18:56:02 +08:00
/*
2019-01-12 23:01:55 +08:00
Copyright ( c ) 2008 - 2019 Jan W . Krieger ( < jan @ jkrieger . de > )
2015-07-11 18:56:02 +08:00
2015-07-12 22:34:27 +08:00
2015-07-11 18:56:02 +08:00
This software is free software : you can redistribute it and / or modify
it under the terms of the GNU Lesser General Public License ( LGPL ) as published by
the Free Software Foundation , either version 2 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU Lesser General Public License ( LGPL ) for more details .
You should have received a copy of the GNU Lesser General Public License ( LGPL )
along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
2018-12-19 00:13:18 +08:00
/** \file jkqtpgraphsgeometric.h
2015-07-11 18:56:02 +08:00
* \ ingroup jkqtplotter_geoplots
*/
# include <QString>
# include <QPainter>
# include <QPair>
2018-12-19 00:13:18 +08:00
# include "jkqtplotter/jkqtpgraphs.h"
2018-11-26 03:25:44 +08:00
# include "jkqtplottertools/jkqtptools.h"
# include "jkqtplottertools/jkqtp_imexport.h"
# include "jkqtmathtext/jkqtmathtext.h"
2015-07-11 18:56:02 +08:00
2018-12-19 00:13:18 +08:00
# ifndef jkqtpgraphsgeometric_H_INCLUDED
# define jkqtpgraphsgeometric_H_INCLUDED
2015-07-11 18:56:02 +08:00
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used as base class for geometric drawing
2015-07-11 18:56:02 +08:00
elements that only consist of lines ( i . e . no filling of any kind is done )
\ ingroup jkqtplotter_geoplots
*/
2018-12-28 05:52:00 +08:00
class LIB_EXPORT JKQTPgeoBaseLine : public JKQTPplotObject {
2015-07-11 18:56:02 +08:00
Q_OBJECT
public :
/*! \brief class contructor
\ param color color of drawing
\ param style line style of drawing
\ param lineWidth lineWidth of drawing
*/
2018-11-18 18:59:30 +08:00
explicit JKQTPgeoBaseLine ( QColor color , double lineWidth , Qt : : PenStyle style = Qt : : SolidLine , JKQtBasePlotter * parent = nullptr ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class contructor
\ param color color of drawing
\ param style line style of drawing
\ param lineWidth lineWidth of drawing
*/
explicit JKQTPgeoBaseLine ( QColor color , double lineWidth , Qt : : PenStyle style , JKQtPlotter * parent ) ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property color to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter color is : < BLOCKQUOTE > \ copybrief color < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see color for more information */
inline virtual void set_color ( const QColor & __value )
{
this - > color = __value ;
}
/*! \brief returns the property color.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter color is : < BLOCKQUOTE > \ copybrief color < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see color for more information */
inline virtual QColor get_color ( ) const
{
return this - > color ;
}
/*! \brief sets the property style to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter style is : < BLOCKQUOTE > \ copybrief style < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see style for more information */
inline virtual void set_style ( const Qt : : PenStyle & __value )
{
this - > style = __value ;
}
/*! \brief returns the property style.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter style is : < BLOCKQUOTE > \ copybrief style < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see style for more information */
inline virtual Qt : : PenStyle get_style ( ) const
{
return this - > style ;
}
/*! \brief sets the property lineWidth to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter lineWidth is : < BLOCKQUOTE > \ copybrief lineWidth < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see lineWidth for more information */
inline virtual void set_lineWidth ( double __value )
{
this - > lineWidth = __value ;
}
/*! \brief returns the property lineWidth.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter lineWidth is : < BLOCKQUOTE > \ copybrief lineWidth < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see lineWidth for more information */
inline virtual double get_lineWidth ( ) const
{
return this - > lineWidth ;
}
2015-07-11 18:56:02 +08:00
2019-01-08 04:00:56 +08:00
/** \brief sets the alpha-channel of the \a color (i.e. its transparency) */
virtual void setAlpha ( float alpha ) ;
2015-07-11 18:56:02 +08:00
/** \brief plots a key marker inside the specified rectangle \a rect */
2018-12-28 05:52:00 +08:00
virtual void drawKeyMarker ( JKQTPEnhancedPainter & painter , QRectF & rect ) override ;
2015-07-11 18:56:02 +08:00
/** \brief returns the color to be used for the key label */
2018-12-28 05:52:00 +08:00
virtual QColor getKeyLabelColor ( ) override ;
2015-07-11 18:56:02 +08:00
protected :
/** \brief color of the graph */
QColor color ;
/** \brief linestyle of the graph lines */
Qt : : PenStyle style ;
/** \brief width (pixels) of the graph */
double lineWidth ;
/** \brief return a pen, that may be used for drawing */
QPen getPen ( JKQTPEnhancedPainter & painter ) ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used as base class for geometric drawing
2015-07-11 18:56:02 +08:00
elements that only consist of lines ( i . e . no filling of any kind is done )
\ ingroup jkqtplotter_geoplots
*/
class LIB_EXPORT JKQTPgeoBaseFilled : public JKQTPgeoBaseLine {
Q_OBJECT
public :
/*! \brief class contructor
\ param color color of drawing
2019-01-08 04:00:56 +08:00
\ param fillColor color of the filling in the drawing
2015-07-11 18:56:02 +08:00
\ param style line style of drawing
\ param fillStyle filling style of the graph
\ param lineWidth lineWidth of drawing
*/
2018-11-18 18:59:30 +08:00
JKQTPgeoBaseFilled ( QColor color , QColor fillColor , double lineWidth , Qt : : PenStyle style = Qt : : SolidLine , Qt : : BrushStyle fillStyle = Qt : : SolidPattern , JKQtBasePlotter * parent = nullptr ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class contructor
\ param color color of drawing
2019-01-08 04:00:56 +08:00
\ param fillColor color of the filling in the drawing
2015-08-02 19:36:54 +08:00
\ param style line style of drawing
\ param fillStyle filling style of the graph
\ param lineWidth lineWidth of drawing
*/
JKQTPgeoBaseFilled ( QColor color , QColor fillColor , double lineWidth , Qt : : PenStyle style , Qt : : BrushStyle fillStyle , JKQtPlotter * parent ) ;
/*! \brief class contructor
\ param color color of drawing
2019-01-08 04:00:56 +08:00
\ param fillColor color of the filling in the drawing
2015-08-02 19:36:54 +08:00
\ param style line style of drawing
\ param lineWidth lineWidth of drawing
*/
JKQTPgeoBaseFilled ( QColor color , QColor fillColor , double lineWidth , Qt : : PenStyle style , JKQtPlotter * parent ) ;
/*! \brief class contructor
\ param color color of drawing
2019-01-08 04:00:56 +08:00
\ param fillColor color of the filling in the drawing
2015-08-02 19:36:54 +08:00
\ param lineWidth lineWidth of drawing
*/
JKQTPgeoBaseFilled ( QColor color , QColor fillColor , double lineWidth , JKQtPlotter * parent ) ;
/*! \brief class contructor
\ param color color of drawing
2019-01-08 04:00:56 +08:00
\ param fillColor color of the filling in the drawing
2015-08-02 19:36:54 +08:00
*/
JKQTPgeoBaseFilled ( QColor color , QColor fillColor , JKQtPlotter * parent ) ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property fillColor to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter fillColor is : < BLOCKQUOTE > \ copybrief fillColor < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see fillColor for more information */
inline virtual void set_fillColor ( const QColor & __value )
{
this - > fillColor = __value ;
}
/*! \brief returns the property fillColor.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter fillColor is : < BLOCKQUOTE > \ copybrief fillColor < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see fillColor for more information */
inline virtual QColor get_fillColor ( ) const
{
return this - > fillColor ;
}
/*! \brief sets the property fillStyle to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter fillStyle is : < BLOCKQUOTE > \ copybrief fillStyle < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see fillStyle for more information */
inline virtual void set_fillStyle ( const Qt : : BrushStyle & __value )
{
this - > fillStyle = __value ;
}
/*! \brief returns the property fillStyle.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter fillStyle is : < BLOCKQUOTE > \ copybrief fillStyle < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see fillStyle for more information */
inline virtual Qt : : BrushStyle get_fillStyle ( ) const
{
return this - > fillStyle ;
}
2015-07-11 18:56:02 +08:00
2019-01-08 04:00:56 +08:00
/** \brief sets the alpha-channel of the \a color and \a fillColor (i.e. its transparency) to the same value */
virtual void setAlpha ( float alpha ) override ;
/** \brief sets the alpha-channel of the \a color and \a fillColor (i.e. its transparency) */
virtual void setAlpha ( float alphaLine , float alphaFill ) ;
2015-07-11 18:56:02 +08:00
/** \brief plots a key marker inside the specified rectangle \a rect */
2018-12-28 05:52:00 +08:00
virtual void drawKeyMarker ( JKQTPEnhancedPainter & painter , QRectF & rect ) override ;
2015-07-11 18:56:02 +08:00
protected :
/** \brief filling color of the graph */
QColor fillColor ;
/** \brief fill style for the curve */
Qt : : BrushStyle fillStyle ;
/** \brief return a brush that may be used for drawing */
QBrush getBrush ( JKQTPEnhancedPainter & painter ) ;
} ;
2019-01-08 04:00:56 +08:00
/*! \brief This virtual JKQTPgraph descendent may be used to display a single symbol (marker).
\ ingroup jkqtplotter_geoplots
*/
class LIB_EXPORT JKQTPgeoSymbol : public JKQTPplotObject {
Q_OBJECT
public :
/*! \brief class contructor
\ param parent parent plotter widget
\ param x x - coordinate of symbol center
\ param y y - coordinate of symbol center
\ param symbol symbol type
\ param symbolSize size of the symbol in pt
\ param color color of drawing
\ param fillColor fill color of the symbol ( if filled )
*/
JKQTPgeoSymbol ( JKQtBasePlotter * parent , double x , double y , JKQTPgraphSymbols symbol = JKQTPcross , double symbolSize = 10 , QColor color = QColor ( " black " ) , QColor fillColor = QColor ( " grey " ) ) ;
/*! \brief class contructor
\ param parent parent plotter widget
\ param x x - coordinate of symbol center
\ param y y - coordinate of symbol center
\ param symbol symbol type
\ param symbolSize size of the symbol in pt
\ param color color of drawing
\ param fillColor fill color of the symbol ( if filled )
*/
JKQTPgeoSymbol ( JKQtPlotter * parent , double x , double y , JKQTPgraphSymbols symbol = JKQTPcross , double symbolSize = 10 , QColor color = QColor ( " black " ) , QColor fillColor = QColor ( " grey " ) ) ;
2019-01-10 04:23:24 +08:00
/*! \brief sets the property color to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter color is : < BLOCKQUOTE > \ copybrief color < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see color for more information */
inline virtual void set_color ( const QColor & __value )
{
this - > color = __value ;
}
/*! \brief returns the property color.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter color is : < BLOCKQUOTE > \ copybrief color < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see color for more information */
inline virtual QColor get_color ( ) const
{
return this - > color ;
}
/*! \brief sets the property fillColor to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter fillColor is : < BLOCKQUOTE > \ copybrief fillColor < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see fillColor for more information */
inline virtual void set_fillColor ( const QColor & __value )
{
this - > fillColor = __value ;
}
/*! \brief returns the property fillColor.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter fillColor is : < BLOCKQUOTE > \ copybrief fillColor < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see fillColor for more information */
inline virtual QColor get_fillColor ( ) const
{
return this - > fillColor ;
}
/*! \brief sets the property symbol to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter symbol is : < BLOCKQUOTE > \ copybrief symbol < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see symbol for more information */
inline virtual void set_symbol ( const JKQTPgraphSymbols & __value )
{
this - > symbol = __value ;
}
/*! \brief returns the property symbol.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter symbol is : < BLOCKQUOTE > \ copybrief symbol < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see symbol for more information */
inline virtual JKQTPgraphSymbols get_symbol ( ) const
{
return this - > symbol ;
}
/*! \brief sets the property symbolSize to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter symbolSize is : < BLOCKQUOTE > \ copybrief symbolSize < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see symbolSize for more information */
inline virtual void set_symbolSize ( double __value )
{
this - > symbolSize = __value ;
}
/*! \brief returns the property symbolSize.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter symbolSize is : < BLOCKQUOTE > \ copybrief symbolSize < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see symbolSize for more information */
inline virtual double get_symbolSize ( ) const
{
return this - > symbolSize ;
}
/*! \brief sets the property symbolWidth to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter symbolWidth is : < BLOCKQUOTE > \ copybrief symbolWidth < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see symbolWidth for more information */
inline virtual void set_symbolWidth ( double __value )
{
this - > symbolWidth = __value ;
}
/*! \brief returns the property symbolWidth.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter symbolWidth is : < BLOCKQUOTE > \ copybrief symbolWidth < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see symbolWidth for more information */
inline virtual double get_symbolWidth ( ) const
{
return this - > symbolWidth ;
}
/*! \brief sets the property x to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x is : < BLOCKQUOTE > \ copybrief x < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x for more information */
inline virtual void set_x ( double __value )
{
this - > x = __value ;
}
/*! \brief returns the property x.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x is : < BLOCKQUOTE > \ copybrief x < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x for more information */
inline virtual double get_x ( ) const
{
return this - > x ;
}
/*! \brief sets the property y to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y is : < BLOCKQUOTE > \ copybrief y < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y for more information */
inline virtual void set_y ( double __value )
{
this - > y = __value ;
}
/*! \brief returns the property y.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y is : < BLOCKQUOTE > \ copybrief y < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y for more information */
inline virtual double get_y ( ) const
{
return this - > y ;
}
2019-01-08 04:00:56 +08:00
/** \copydoc JKQTPgraph::getXMinMax() */
virtual bool getXMinMax ( double & minx , double & maxx , double & smallestGreaterZero ) ;
/** \copydoc JKQTPgraph::getYMinMax() */
virtual bool getYMinMax ( double & miny , double & maxy , double & smallestGreaterZero ) ;
/** \brief plots the graph to the plotter object specified as parent */
virtual void draw ( JKQTPEnhancedPainter & painter ) ;
/** \brief plots a key marker inside the specified rectangle \a rect */
virtual void drawKeyMarker ( JKQTPEnhancedPainter & painter , QRectF & rect ) ;
/** \brief returns the color to be used for the key label */
virtual QColor getKeyLabelColor ( ) ;
protected :
double x , y ;
/** \brief color of the graph */
QColor color ;
/** \brief fill-color of the graph */
QColor fillColor ;
/** \brief size of the symbol in pt */
double symbolSize ;
/** \brief width of the symbol lines in pt */
double symbolWidth ;
/** \brief type of the symbol */
JKQTPgraphSymbols symbol ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used to display text. It uses the JKQTMathText
2015-07-11 18:56:02 +08:00
class in order to display LaTeX formulas .
\ ingroup jkqtplotter_geoplots
*/
2018-12-28 05:52:00 +08:00
class LIB_EXPORT JKQTPgeoText : public JKQTPplotObject {
2015-07-11 18:56:02 +08:00
Q_OBJECT
public :
/*! \brief class contructor
\ param parent parent plotter widget
\ param x x - coordinate of text
\ param y y - coordinate of text
\ param text the text to display
\ param color color of drawing
\ param fontSize base font size of text
*/
JKQTPgeoText ( JKQtBasePlotter * parent , double x , double y , QString text , double fontSize = 10 , QColor color = QColor ( " black " ) ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class contructor
\ param parent parent plotter widget
\ param x x - coordinate of text
\ param y y - coordinate of text
\ param text the text to display
\ param color color of drawing
\ param fontSize base font size of text
*/
JKQTPgeoText ( JKQtPlotter * parent , double x , double y , QString text , double fontSize = 10 , QColor color = QColor ( " black " ) ) ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property color to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter color is : < BLOCKQUOTE > \ copybrief color < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see color for more information */
inline virtual void set_color ( const QColor & __value )
{
this - > color = __value ;
}
/*! \brief returns the property color.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter color is : < BLOCKQUOTE > \ copybrief color < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see color for more information */
inline virtual QColor get_color ( ) const
{
return this - > color ;
}
/*! \brief sets the property text to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter text is : < BLOCKQUOTE > \ copybrief text < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see text for more information */
inline virtual void set_text ( const QString & __value )
{
this - > text = __value ;
}
/*! \brief returns the property text.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter text is : < BLOCKQUOTE > \ copybrief text < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see text for more information */
inline virtual QString get_text ( ) const
{
return this - > text ;
}
/*! \brief sets the property fontSize to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter fontSize is : < BLOCKQUOTE > \ copybrief fontSize < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see fontSize for more information */
inline virtual void set_fontSize ( double __value )
{
this - > fontSize = __value ;
}
/*! \brief returns the property fontSize.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter fontSize is : < BLOCKQUOTE > \ copybrief fontSize < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see fontSize for more information */
inline virtual double get_fontSize ( ) const
{
return this - > fontSize ;
}
/*! \brief sets the property x to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x is : < BLOCKQUOTE > \ copybrief x < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x for more information */
inline virtual void set_x ( double __value )
{
this - > x = __value ;
}
/*! \brief returns the property x.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x is : < BLOCKQUOTE > \ copybrief x < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x for more information */
inline virtual double get_x ( ) const
{
return this - > x ;
}
/*! \brief sets the property y to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y is : < BLOCKQUOTE > \ copybrief y < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y for more information */
inline virtual void set_y ( double __value )
{
this - > y = __value ;
}
/*! \brief returns the property y.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y is : < BLOCKQUOTE > \ copybrief y < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y for more information */
inline virtual double get_y ( ) const
{
return this - > y ;
}
2015-07-11 18:56:02 +08:00
2018-12-28 05:52:00 +08:00
/** \copydoc JKQTPplotObject::getXMinMax() */
virtual bool getXMinMax ( double & minx , double & maxx , double & smallestGreaterZero ) override ;
/** \copydoc JKQTPplotObject::getYMinMax() */
virtual bool getYMinMax ( double & miny , double & maxy , double & smallestGreaterZero ) override ;
2015-07-11 18:56:02 +08:00
/** \brief plots the graph to the plotter object specified as parent */
2018-12-28 05:52:00 +08:00
virtual void draw ( JKQTPEnhancedPainter & painter ) override ;
2015-07-11 18:56:02 +08:00
/** \brief plots a key marker inside the specified rectangle \a rect */
2018-12-28 05:52:00 +08:00
virtual void drawKeyMarker ( JKQTPEnhancedPainter & painter , QRectF & rect ) override ;
2015-07-11 18:56:02 +08:00
/** \brief returns the color to be used for the key label */
2018-12-28 05:52:00 +08:00
virtual QColor getKeyLabelColor ( ) override ;
2015-07-11 18:56:02 +08:00
protected :
double x , y ;
/** \brief color of the graph */
QColor color ;
/** \brief base font size of text */
double fontSize ;
/** \brief the text to display */
QString text ;
/** \brief return a pen, that may be used for drawing */
QPen getPen ( JKQTPEnhancedPainter & painter ) ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used to draw a line
2015-07-11 18:56:02 +08:00
\ ingroup jkqtplotter_geoplots
\ image html plot_geoline . png
*/
class LIB_EXPORT JKQTPgeoLine : public JKQTPgeoBaseLine {
Q_OBJECT
public :
/*! \brief class constructor
\ param parent the parent plotter class
\ param x1 x - coordinate of first point of line
\ param y1 y - coordinate of first point of line
\ param x2 x - coordinate of second point of line
\ param y2 y - coordinate of second point of line
\ param color color of line
\ param lineWidth width of line
\ param style line style
*/
JKQTPgeoLine ( JKQtBasePlotter * parent , double x1 , double y1 , double x2 , double y2 , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
\ param x1 x - coordinate of first point of line
\ param y1 y - coordinate of first point of line
\ param x2 x - coordinate of second point of line
\ param y2 y - coordinate of second point of line
\ param color color of line
\ param lineWidth width of line
\ param style line style
*/
JKQTPgeoLine ( JKQtPlotter * parent , double x1 , double y1 , double x2 , double y2 , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine ) ;
2015-07-11 18:56:02 +08:00
2018-12-28 05:52:00 +08:00
/** \copydoc JKQTPplotObject::getXMinMax() */
virtual bool getXMinMax ( double & minx , double & maxx , double & smallestGreaterZero ) override ;
/** \copydoc JKQTPplotObject::getYMinMax() */
virtual bool getYMinMax ( double & miny , double & maxy , double & smallestGreaterZero ) override ;
2015-07-11 18:56:02 +08:00
/** \brief plots the graph to the plotter object specified as parent */
2018-12-28 05:52:00 +08:00
virtual void draw ( JKQTPEnhancedPainter & painter ) override ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property x1 to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x1 is : < BLOCKQUOTE > \ copybrief x1 < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x1 for more information */
inline virtual void set_x1 ( double __value )
{
this - > x1 = __value ;
}
/*! \brief returns the property x1.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x1 is : < BLOCKQUOTE > \ copybrief x1 < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x1 for more information */
inline virtual double get_x1 ( ) const
{
return this - > x1 ;
}
/*! \brief sets the property y1 to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y1 is : < BLOCKQUOTE > \ copybrief y1 < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y1 for more information */
inline virtual void set_y1 ( double __value )
{
this - > y1 = __value ;
}
/*! \brief returns the property y1.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y1 is : < BLOCKQUOTE > \ copybrief y1 < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y1 for more information */
inline virtual double get_y1 ( ) const
{
return this - > y1 ;
}
/*! \brief sets the property x2 to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x2 is : < BLOCKQUOTE > \ copybrief x2 < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x2 for more information */
inline virtual void set_x2 ( double __value )
{
this - > x2 = __value ;
}
/*! \brief returns the property x2.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x2 is : < BLOCKQUOTE > \ copybrief x2 < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x2 for more information */
inline virtual double get_x2 ( ) const
{
return this - > x2 ;
}
/*! \brief sets the property y2 to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y2 is : < BLOCKQUOTE > \ copybrief y2 < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y2 for more information */
inline virtual void set_y2 ( double __value )
{
this - > y2 = __value ;
}
/*! \brief returns the property y2.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y2 is : < BLOCKQUOTE > \ copybrief y2 < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y2 for more information */
inline virtual double get_y2 ( ) const
{
return this - > y2 ;
}
2015-07-11 18:56:02 +08:00
protected :
double x1 , y1 , x2 , y2 ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used to draw an infinite line
2015-07-11 18:56:02 +08:00
\ ingroup jkqtplotter_geoplots
an infinite line has a starting point and then goes on in a given direction
until the end of the plotting range .
\ image html plot_geoinfiniteline . png
*/
class LIB_EXPORT JKQTPgeoInfiniteLine : public JKQTPgeoBaseLine {
Q_OBJECT
public :
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of start point of line
\ param y y - coordinate of start point of line
\ param dx x - direction of the line
\ param dy y - direction of the line
\ param color color of line
\ param lineWidth width of line
\ param style line style
*/
JKQTPgeoInfiniteLine ( JKQtBasePlotter * parent , double x , double y , double dx , double dy , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of start point of line
\ param y y - coordinate of start point of line
\ param dx x - direction of the line
\ param dy y - direction of the line
\ param color color of line
\ param lineWidth width of line
\ param style line style
*/
JKQTPgeoInfiniteLine ( JKQtPlotter * parent , double x , double y , double dx , double dy , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine ) ;
2015-07-11 18:56:02 +08:00
2018-12-28 05:52:00 +08:00
/** \copydoc JKQTPplotObject::getXMinMax() */
virtual bool getXMinMax ( double & minx , double & maxx , double & smallestGreaterZero ) override ;
/** \copydoc JKQTPplotObject::getYMinMax() */
virtual bool getYMinMax ( double & miny , double & maxy , double & smallestGreaterZero ) override ;
2015-07-11 18:56:02 +08:00
/** \brief plots the graph to the plotter object specified as parent */
2018-12-28 05:52:00 +08:00
virtual void draw ( JKQTPEnhancedPainter & painter ) override ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property x to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x is : < BLOCKQUOTE > \ copybrief x < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x for more information */
inline virtual void set_x ( double __value )
{
this - > x = __value ;
}
/*! \brief returns the property x.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x is : < BLOCKQUOTE > \ copybrief x < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x for more information */
inline virtual double get_x ( ) const
{
return this - > x ;
}
/*! \brief sets the property y to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y is : < BLOCKQUOTE > \ copybrief y < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y for more information */
inline virtual void set_y ( double __value )
{
this - > y = __value ;
}
/*! \brief returns the property y.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y is : < BLOCKQUOTE > \ copybrief y < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y for more information */
inline virtual double get_y ( ) const
{
return this - > y ;
}
/*! \brief sets the property dx to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter dx is : < BLOCKQUOTE > \ copybrief dx < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see dx for more information */
inline virtual void set_dx ( double __value )
{
this - > dx = __value ;
}
/*! \brief returns the property dx.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter dx is : < BLOCKQUOTE > \ copybrief dx < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see dx for more information */
inline virtual double get_dx ( ) const
{
return this - > dx ;
}
/*! \brief sets the property dy to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter dy is : < BLOCKQUOTE > \ copybrief dy < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see dy for more information */
inline virtual void set_dy ( double __value )
{
this - > dy = __value ;
}
/*! \brief returns the property dy.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter dy is : < BLOCKQUOTE > \ copybrief dy < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see dy for more information */
inline virtual double get_dy ( ) const
{
return this - > dy ;
}
/*! \brief sets the property two_sided to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter two_sided is : < BLOCKQUOTE > \ copybrief two_sided < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see two_sided for more information */
inline virtual void set_two_sided ( bool __value )
{
this - > two_sided = __value ;
}
/*! \brief returns the property two_sided.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter two_sided is : < BLOCKQUOTE > \ copybrief two_sided < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see two_sided for more information */
inline virtual bool get_two_sided ( ) const
{
return this - > two_sided ;
}
2015-07-11 18:56:02 +08:00
protected :
double x , y , dx , dy ;
/** \brief indicates whether the line ends at the given point \f$ (x,y) \f$ (false, default),
* or is infinite in both directions ( true ) */
bool two_sided ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used to draw a poly line
2015-07-11 18:56:02 +08:00
\ ingroup jkqtplotter_geoplots
\ image html plot_geolines . png
*/
2019-01-08 04:00:56 +08:00
class LIB_EXPORT JKQTPgeoPolyLines : public JKQTPgeoBaseLine {
2015-07-11 18:56:02 +08:00
Q_OBJECT
public :
/*! \brief class constructor
\ param parent the parent plotter class
2019-01-08 04:00:56 +08:00
\ param points points on the polygon
2015-07-11 18:56:02 +08:00
\ param color color of line
\ param lineWidth width of line
\ param style line style
*/
2019-01-08 04:00:56 +08:00
JKQTPgeoPolyLines ( JKQtBasePlotter * parent , const QVector < QPointF > & points , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
2019-01-08 04:00:56 +08:00
\ param points points on the polygon
\ param color color of line
\ param lineWidth width of line
\ param style line style
*/
JKQTPgeoPolyLines ( JKQtPlotter * parent , const QVector < QPointF > & points , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine ) ;
/*! \brief class constructor
\ param parent the parent plotter class
\ param points points on the polygon
\ param color color of line
\ param lineWidth width of line
\ param style line style
*/
JKQTPgeoPolyLines ( JKQtBasePlotter * parent , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine ) ;
/*! \brief class constructor
\ param parent the parent plotter class
\ param points points on the polygon
2015-08-02 19:36:54 +08:00
\ param color color of line
\ param lineWidth width of line
\ param style line style
*/
2019-01-08 04:00:56 +08:00
JKQTPgeoPolyLines ( JKQtPlotter * parent , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine ) ;
2015-07-11 18:56:02 +08:00
2018-12-28 05:52:00 +08:00
/** \copydoc JKQTPplotObject::getXMinMax() */
virtual bool getXMinMax ( double & minx , double & maxx , double & smallestGreaterZero ) override ;
/** \copydoc JKQTPplotObject::getYMinMax() */
virtual bool getYMinMax ( double & miny , double & maxy , double & smallestGreaterZero ) override ;
2015-07-11 18:56:02 +08:00
/** \brief plots the graph to the plotter object specified as parent */
2018-12-28 05:52:00 +08:00
virtual void draw ( JKQTPEnhancedPainter & painter ) override ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property points to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter points is : < BLOCKQUOTE > \ copybrief points < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see points for more information */
inline virtual void set_points ( const QVector < QPointF > & __value )
{
this - > points = __value ;
}
/*! \brief returns the property points.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter points is : < BLOCKQUOTE > \ copybrief points < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see points for more information */
inline virtual QVector < QPointF > get_points ( ) const
{
return this - > points ;
}
2015-07-11 18:56:02 +08:00
/** \brief append a point to the polygon */
inline void appendPoint ( const QPointF & p ) {
points . append ( p ) ;
2018-12-28 05:52:00 +08:00
}
2015-07-11 18:56:02 +08:00
/** \brief append a point to the polygon */
inline void appendPoint ( const double x , const double y ) {
points . append ( QPointF ( x , y ) ) ;
2018-12-28 05:52:00 +08:00
}
2015-07-11 18:56:02 +08:00
protected :
QVector < QPointF > points ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used to draw a rectangle
2015-07-11 18:56:02 +08:00
\ ingroup jkqtplotter_geoplots
\ image html plot_georectangle . png
*/
class LIB_EXPORT JKQTPgeoRectangle : public JKQTPgeoBaseFilled {
Q_OBJECT
public :
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of rectangle
\ param y y - coordinate of center of rectangle
\ param width width of rectangle
\ param height of rectangle
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of rectangle
\ param fillStyle filling style of rectangle
*/
JKQTPgeoRectangle ( JKQtBasePlotter * parent , double x , double y , double width , double height , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of rectangle
\ param y y - coordinate of center of rectangle
\ param width width of rectangle
\ param height of rectangle
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of rectangle
\ param fillStyle filling style of rectangle
*/
JKQTPgeoRectangle ( JKQtPlotter * parent , double x , double y , double width , double height , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2019-01-08 04:00:56 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of rectangle
\ param y y - coordinate of center of rectangle
\ param width width of rectangle
\ param height of rectangle
\ param angle rotation angle of the rectangle
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of rectangle
\ param fillStyle filling style of rectangle
*/
JKQTPgeoRectangle ( JKQtBasePlotter * parent , double x , double y , double width , double height , double angle , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of rectangle
\ param y y - coordinate of center of rectangle
\ param width width of rectangle
\ param height of rectangle
\ param angle rotation angle of the rectangle
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of rectangle
\ param fillStyle filling style of rectangle
*/
JKQTPgeoRectangle ( JKQtPlotter * parent , double x , double y , double width , double height , double angle , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
/*! \brief class constructor
\ param parent the parent plotter class
\ param bottomleft bottom left corner of rectangle
\ param topright top right corner of rectangle
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of rectangle
\ param fillStyle filling style of rectangle
*/
JKQTPgeoRectangle ( JKQtBasePlotter * parent , QPointF bottomleft , QPointF topright , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
/*! \brief class constructor
\ param parent the parent plotter class
\ param bottomleft bottom left corner of rectangle
\ param topright top right corner of rectangle
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of rectangle
\ param fillStyle filling style of rectangle
*/
JKQTPgeoRectangle ( JKQtPlotter * parent , QPointF bottomleft , QPointF topright , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2015-07-11 18:56:02 +08:00
2018-12-28 05:52:00 +08:00
/** \copydoc JKQTPplotObject::getXMinMax() */
virtual bool getXMinMax ( double & minx , double & maxx , double & smallestGreaterZero ) override ;
/** \copydoc JKQTPplotObject::getYMinMax() */
virtual bool getYMinMax ( double & miny , double & maxy , double & smallestGreaterZero ) override ;
2015-07-11 18:56:02 +08:00
/** \brief plots the graph to the plotter object specified as parent */
2018-12-28 05:52:00 +08:00
virtual void draw ( JKQTPEnhancedPainter & painter ) override ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property x to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x is : < BLOCKQUOTE > \ copybrief x < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x for more information */
inline virtual void set_x ( double __value )
{
this - > x = __value ;
}
/*! \brief returns the property x.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x is : < BLOCKQUOTE > \ copybrief x < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x for more information */
inline virtual double get_x ( ) const
{
return this - > x ;
}
/*! \brief sets the property y to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y is : < BLOCKQUOTE > \ copybrief y < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y for more information */
inline virtual void set_y ( double __value )
{
this - > y = __value ;
}
/*! \brief returns the property y.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y is : < BLOCKQUOTE > \ copybrief y < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y for more information */
inline virtual double get_y ( ) const
{
return this - > y ;
}
/*! \brief sets the property width to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter width is : < BLOCKQUOTE > \ copybrief width < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see width for more information */
inline virtual void set_width ( double __value )
{
this - > width = __value ;
}
/*! \brief returns the property width.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter width is : < BLOCKQUOTE > \ copybrief width < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see width for more information */
inline virtual double get_width ( ) const
{
return this - > width ;
}
/*! \brief sets the property height to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter height is : < BLOCKQUOTE > \ copybrief height < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see height for more information */
inline virtual void set_height ( double __value )
{
this - > height = __value ;
}
/*! \brief returns the property height.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter height is : < BLOCKQUOTE > \ copybrief height < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see height for more information */
inline virtual double get_height ( ) const
{
return this - > height ;
}
/*! \brief sets the property angle to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angle is : < BLOCKQUOTE > \ copybrief angle < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angle for more information */
inline virtual void set_angle ( double __value )
{
this - > angle = __value ;
}
/*! \brief returns the property angle.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angle is : < BLOCKQUOTE > \ copybrief angle < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angle for more information */
inline virtual double get_angle ( ) const
{
return this - > angle ;
}
2015-07-11 18:56:02 +08:00
void set_bottomleftrectangle ( double x , double y , double width , double height ) ;
protected :
double x , y , width , height ;
/** \brief rotation angle of rectangle */
2019-01-08 04:00:56 +08:00
double angle ;
2015-07-11 18:56:02 +08:00
/** \brief returns the transformation matrix used for this rectangle */
QMatrix getMatrix ( ) ;
/** \brief returns a QPolygonF which represents the rectangle after rotation, but still in the world coordinate system, not in the screen/widget system */
QPolygonF getPolygon ( ) ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used to draw a polygon
2015-07-11 18:56:02 +08:00
\ ingroup jkqtplotter_geoplots
\ image html plot_geopolygon . png
*/
class LIB_EXPORT JKQTPgeoPolygon : public JKQTPgeoBaseFilled {
Q_OBJECT
public :
/*! \brief class constructor
\ param parent the parent plotter class
2019-01-08 04:00:56 +08:00
\ param points points on the polygon
2015-07-11 18:56:02 +08:00
\ param color color of line
\ param lineWidth width of line
\ param style line style
2019-01-08 04:00:56 +08:00
\ param fillColor color of the filling
\ param fillStyle style of the filling
2015-07-11 18:56:02 +08:00
*/
2019-01-08 04:00:56 +08:00
JKQTPgeoPolygon ( JKQtBasePlotter * parent , const QVector < QPointF > & points , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
/*! \brief class constructor
\ param parent the parent plotter class
\ param points points on the polygon
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor color of the filling
\ param fillStyle style of the filling
*/
JKQTPgeoPolygon ( JKQtPlotter * parent , const QVector < QPointF > & points , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
\ param color color of line
\ param lineWidth width of line
\ param style line style
2019-01-08 04:00:56 +08:00
\ param fillColor color of the filling
\ param fillStyle style of the filling
2015-08-02 19:36:54 +08:00
*/
2019-01-08 04:00:56 +08:00
JKQTPgeoPolygon ( JKQtBasePlotter * parent , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
/*! \brief class constructor
\ param parent the parent plotter class
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor color of the filling
\ param fillStyle style of the filling
*/
JKQTPgeoPolygon ( JKQtPlotter * parent , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2015-07-11 18:56:02 +08:00
2018-12-28 05:52:00 +08:00
/** \copydoc JKQTPplotObject::getXMinMax() */
virtual bool getXMinMax ( double & minx , double & maxx , double & smallestGreaterZero ) override ;
/** \copydoc JKQTPplotObject::getYMinMax() */
virtual bool getYMinMax ( double & miny , double & maxy , double & smallestGreaterZero ) override ;
2015-07-11 18:56:02 +08:00
/** \brief plots the graph to the plotter object specified as parent */
2018-12-28 05:52:00 +08:00
virtual void draw ( JKQTPEnhancedPainter & painter ) override ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property points to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter points is : < BLOCKQUOTE > \ copybrief points < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see points for more information */
inline virtual void set_points ( const QVector < QPointF > & __value )
{
this - > points = __value ;
}
/*! \brief returns the property points.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter points is : < BLOCKQUOTE > \ copybrief points < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see points for more information */
inline virtual QVector < QPointF > get_points ( ) const
{
return this - > points ;
}
2015-07-11 18:56:02 +08:00
/** \brief append a point to the polygon */
inline void appendPoint ( const QPointF & p ) {
points . append ( p ) ;
2018-12-28 05:52:00 +08:00
}
2015-07-11 18:56:02 +08:00
/** \brief append a point to the polygon */
inline void appendPoint ( const double x , const double y ) {
points . append ( QPointF ( x , y ) ) ;
2018-12-28 05:52:00 +08:00
}
2015-07-11 18:56:02 +08:00
protected :
QVector < QPointF > points ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used to draw an ellipse
2015-07-11 18:56:02 +08:00
\ ingroup jkqtplotter_geoplots
\ image html plot_geoellipse . png
\ see < a href = " http://www.codeguru.com/cpp/g-m/gdi/article.php/c131 " > http : //www.codeguru.com/cpp/g-m/gdi/article.php/c131</a> and
< a href = " http://en.wikipedia.org/wiki/Ellipse#General_parametric_form " > http : //en.wikipedia.org/wiki/Ellipse#General_parametric_form</a>
*/
class LIB_EXPORT JKQTPgeoEllipse : public JKQTPgeoRectangle {
Q_OBJECT
public :
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of ellipse
\ param y y - coordinate of center of ellipse
\ param width width of ellipse ( 2 * half axis )
\ param height of ellipse ( 2 * half axis )
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of ellipse
\ param fillStyle filling style of ellipse
*/
JKQTPgeoEllipse ( JKQtBasePlotter * parent , double x , double y , double width , double height , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of ellipse
\ param y y - coordinate of center of ellipse
\ param width width of ellipse ( 2 * half axis )
\ param height of ellipse ( 2 * half axis )
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of ellipse
\ param fillStyle filling style of ellipse
*/
JKQTPgeoEllipse ( JKQtPlotter * parent , double x , double y , double width , double height , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2019-01-08 04:00:56 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of rectangle
\ param y y - coordinate of center of rectangle
\ param width width of rectangle
\ param height of rectangle
\ param angle rotation angle of the rectangle
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of rectangle
\ param fillStyle filling style of rectangle
*/
JKQTPgeoEllipse ( JKQtBasePlotter * parent , double x , double y , double width , double height , double angle , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of rectangle
\ param y y - coordinate of center of rectangle
\ param width width of rectangle
\ param height of rectangle
\ param angle rotation angle of the rectangle
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of rectangle
\ param fillStyle filling style of rectangle
*/
JKQTPgeoEllipse ( JKQtPlotter * parent , double x , double y , double width , double height , double angle , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
/*! \brief class constructor
\ param parent the parent plotter class
\ param bottomleft bottom left corner of rectangle
\ param topright top right corner of rectangle
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of rectangle
\ param fillStyle filling style of rectangle
*/
JKQTPgeoEllipse ( JKQtBasePlotter * parent , QPointF bottomleft , QPointF topright , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
/*! \brief class constructor
\ param parent the parent plotter class
\ param bottomleft bottom left corner of rectangle
\ param topright top right corner of rectangle
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of rectangle
\ param fillStyle filling style of rectangle
*/
JKQTPgeoEllipse ( JKQtPlotter * parent , QPointF bottomleft , QPointF topright , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2015-07-11 18:56:02 +08:00
/** \brief plots the graph to the plotter object specified as parent */
2018-12-28 05:52:00 +08:00
virtual void draw ( JKQTPEnhancedPainter & painter ) override ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property controlPoints to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter controlPoints is : < BLOCKQUOTE > \ copybrief controlPoints < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see controlPoints for more information */
inline virtual void set_controlPoints ( const unsigned int & __value )
{
this - > controlPoints = __value ;
}
/*! \brief returns the property controlPoints.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter controlPoints is : < BLOCKQUOTE > \ copybrief controlPoints < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see controlPoints for more information */
inline virtual unsigned int get_controlPoints ( ) const
{
return this - > controlPoints ;
}
2015-07-11 18:56:02 +08:00
protected :
/** \brief number of steps/control points to draw the ellipse */
unsigned int controlPoints ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used to draw an arc
2015-07-11 18:56:02 +08:00
\ ingroup jkqtplotter_geoplots
\ image html plot_geoarc . png
*/
class LIB_EXPORT JKQTPgeoArc : public JKQTPgeoBaseLine {
Q_OBJECT
public :
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of ellipse
\ param y y - coordinate of center of ellipse
\ param width width of ellipse ( 2 * half axis )
\ param height of ellipse ( 2 * half axis )
\ param color color of line
\ param lineWidth width of line
\ param style line style
*/
JKQTPgeoArc ( JKQtBasePlotter * parent , double x , double y , double width , double height , double angleStart , double angleStop , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of ellipse
\ param y y - coordinate of center of ellipse
\ param width width of ellipse ( 2 * half axis )
\ param height of ellipse ( 2 * half axis )
\ param color color of line
\ param lineWidth width of line
\ param style line style
*/
JKQTPgeoArc ( JKQtPlotter * parent , double x , double y , double width , double height , double angleStart , double angleStop , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine ) ;
2015-07-11 18:56:02 +08:00
2018-12-28 05:52:00 +08:00
/** \copydoc JKQTPplotObject::getXMinMax() */
virtual bool getXMinMax ( double & minx , double & maxx , double & smallestGreaterZero ) override ;
/** \copydoc JKQTPplotObject::getYMinMax() */
virtual bool getYMinMax ( double & miny , double & maxy , double & smallestGreaterZero ) override ;
2015-07-11 18:56:02 +08:00
/** \brief plots the graph to the plotter object specified as parent */
2018-12-28 05:52:00 +08:00
virtual void draw ( JKQTPEnhancedPainter & painter ) override ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property controlPoints to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter controlPoints is : < BLOCKQUOTE > \ copybrief controlPoints < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see controlPoints for more information */
inline virtual void set_controlPoints ( const unsigned int & __value )
{
this - > controlPoints = __value ;
}
/*! \brief returns the property controlPoints.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter controlPoints is : < BLOCKQUOTE > \ copybrief controlPoints < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see controlPoints for more information */
inline virtual unsigned int get_controlPoints ( ) const
{
return this - > controlPoints ;
}
/*! \brief sets the property angleStart to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angleStart is : < BLOCKQUOTE > \ copybrief angleStart < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angleStart for more information */
inline virtual void set_angleStart ( double __value )
{
this - > angleStart = __value ;
}
/*! \brief returns the property angleStart.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angleStart is : < BLOCKQUOTE > \ copybrief angleStart < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angleStart for more information */
inline virtual double get_angleStart ( ) const
{
return this - > angleStart ;
}
/*! \brief sets the property angleStop to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angleStop is : < BLOCKQUOTE > \ copybrief angleStop < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angleStop for more information */
inline virtual void set_angleStop ( double __value )
{
this - > angleStop = __value ;
}
/*! \brief returns the property angleStop.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angleStop is : < BLOCKQUOTE > \ copybrief angleStop < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angleStop for more information */
inline virtual double get_angleStop ( ) const
{
return this - > angleStop ;
}
/*! \brief sets the property x to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x is : < BLOCKQUOTE > \ copybrief x < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x for more information */
inline virtual void set_x ( double __value )
{
this - > x = __value ;
}
/*! \brief returns the property x.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter x is : < BLOCKQUOTE > \ copybrief x < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see x for more information */
inline virtual double get_x ( ) const
{
return this - > x ;
}
/*! \brief sets the property y to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y is : < BLOCKQUOTE > \ copybrief y < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y for more information */
inline virtual void set_y ( double __value )
{
this - > y = __value ;
}
/*! \brief returns the property y.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter y is : < BLOCKQUOTE > \ copybrief y < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see y for more information */
inline virtual double get_y ( ) const
{
return this - > y ;
}
/*! \brief sets the property width to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter width is : < BLOCKQUOTE > \ copybrief width < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see width for more information */
inline virtual void set_width ( double __value )
{
this - > width = __value ;
}
/*! \brief returns the property width.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter width is : < BLOCKQUOTE > \ copybrief width < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see width for more information */
inline virtual double get_width ( ) const
{
return this - > width ;
}
/*! \brief sets the property height to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter height is : < BLOCKQUOTE > \ copybrief height < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see height for more information */
inline virtual void set_height ( double __value )
{
this - > height = __value ;
}
/*! \brief returns the property height.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter height is : < BLOCKQUOTE > \ copybrief height < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see height for more information */
inline virtual double get_height ( ) const
{
return this - > height ;
}
/*! \brief sets the property angle to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angle is : < BLOCKQUOTE > \ copybrief angle < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angle for more information */
inline virtual void set_angle ( double __value )
{
this - > angle = __value ;
}
/*! \brief returns the property angle.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angle is : < BLOCKQUOTE > \ copybrief angle < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angle for more information */
inline virtual double get_angle ( ) const
{
return this - > angle ;
}
2015-07-11 18:56:02 +08:00
protected :
double x , y , width , height ;
/** \brief rotation angle of rectangle */
2019-01-08 04:00:56 +08:00
double angle ;
2015-07-11 18:56:02 +08:00
/** \brief if we only draw an arc, this is the starting angle in degrees */
double angleStart ;
/** \brief if we only draw an arc, this is the ending angle in degrees */
double angleStop ;
/** \brief closing mode for arcs: secand or pie */
double angle_start ;
/** \brief if we only draw an arc, this is the ending angle */
double angle_end ;
/** \brief closing mode for arcs: secand or pie */
/** \brief returns the transformation matrix used for this rectangle */
QMatrix getMatrix ( ) ;
/** \brief returns a QPolygonF which represents the rectangle after rotation, but still in the world coordinate system, not in the screen/widget system */
QPolygonF getPolygon ( ) ;
/** \brief number of steps/control points to draw the ellipse */
unsigned int controlPoints ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used to draw a pie
2015-07-11 18:56:02 +08:00
\ ingroup jkqtplotter_geoplots
\ image html plot_geopie . png
*/
class LIB_EXPORT JKQTPgeoPie : public JKQTPgeoEllipse {
Q_OBJECT
public :
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of ellipse
\ param y y - coordinate of center of ellipse
\ param width width of ellipse ( 2 * half axis )
\ param height of ellipse ( 2 * half axis )
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of ellipse
\ param fillStyle filling style of ellipse
*/
JKQTPgeoPie ( JKQtBasePlotter * parent , double x , double y , double width , double height , double angleStart , double angleStop , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of ellipse
\ param y y - coordinate of center of ellipse
\ param width width of ellipse ( 2 * half axis )
\ param height of ellipse ( 2 * half axis )
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of ellipse
\ param fillStyle filling style of ellipse
*/
JKQTPgeoPie ( JKQtPlotter * parent , double x , double y , double width , double height , double angleStart , double angleStop , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2015-07-11 18:56:02 +08:00
2018-12-28 05:52:00 +08:00
/** \copydoc JKQTPplotObject::getXMinMax() */
virtual bool getXMinMax ( double & minx , double & maxx , double & smallestGreaterZero ) override ;
/** \copydoc JKQTPplotObject::getYMinMax() */
virtual bool getYMinMax ( double & miny , double & maxy , double & smallestGreaterZero ) override ;
2015-07-11 18:56:02 +08:00
/** \brief plots the graph to the plotter object specified as parent */
2018-12-28 05:52:00 +08:00
virtual void draw ( JKQTPEnhancedPainter & painter ) override ;
2015-07-11 18:56:02 +08:00
2019-01-10 04:23:24 +08:00
/*! \brief sets the property angleStart to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angleStart is : < BLOCKQUOTE > \ copybrief angleStart < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angleStart for more information */
inline virtual void set_angleStart ( double __value )
{
this - > angleStart = __value ;
}
/*! \brief returns the property angleStart.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angleStart is : < BLOCKQUOTE > \ copybrief angleStart < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angleStart for more information */
inline virtual double get_angleStart ( ) const
{
return this - > angleStart ;
}
/*! \brief sets the property angleStop to the specified \a __value.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angleStop is : < BLOCKQUOTE > \ copybrief angleStop < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angleStop for more information */
inline virtual void set_angleStop ( double __value )
{
this - > angleStop = __value ;
}
/*! \brief returns the property angleStop.
2019-01-12 23:01:55 +08:00
\ details Description of the parameter angleStop is : < BLOCKQUOTE > \ copybrief angleStop < / BLOCKQUOTE >
2019-01-10 04:23:24 +08:00
\ see angleStop for more information */
inline virtual double get_angleStop ( ) const
{
return this - > angleStop ;
}
2015-07-11 18:56:02 +08:00
protected :
/** \brief if we only draw an arc, this is the starting angle */
double angleStart ;
/** \brief if we only draw an arc, this is the ending angle */
double angleStop ;
} ;
2018-12-28 05:52:00 +08:00
/*! \brief This JKQTPplotObject is used to draw a chord
2015-07-11 18:56:02 +08:00
\ ingroup jkqtplotter_geoplots
\ image html plot_geochord . png
*/
class LIB_EXPORT JKQTPgeoChord : public JKQTPgeoPie {
Q_OBJECT
public :
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of ellipse
\ param y y - coordinate of center of ellipse
\ param width width of ellipse ( 2 * half axis )
\ param height of ellipse ( 2 * half axis )
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of ellipse
\ param fillStyle filling style of ellipse
*/
JKQTPgeoChord ( JKQtBasePlotter * parent , double x , double y , double width , double height , double angleStart , double angleStop , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2015-08-02 19:36:54 +08:00
/*! \brief class constructor
\ param parent the parent plotter class
\ param x x - coordinate of center of ellipse
\ param y y - coordinate of center of ellipse
\ param width width of ellipse ( 2 * half axis )
\ param height of ellipse ( 2 * half axis )
\ param color color of line
\ param lineWidth width of line
\ param style line style
\ param fillColor filling color of ellipse
\ param fillStyle filling style of ellipse
*/
JKQTPgeoChord ( JKQtPlotter * parent , double x , double y , double width , double height , double angleStart , double angleStop , QColor color = QColor ( " black " ) , double lineWidth = 1 , Qt : : PenStyle style = Qt : : SolidLine , QColor fillColor = QColor ( " transparent " ) , Qt : : BrushStyle fillStyle = Qt : : SolidPattern ) ;
2015-07-11 18:56:02 +08:00
2018-12-28 05:52:00 +08:00
/** \copydoc JKQTPplotObject::getXMinMax() */
virtual bool getXMinMax ( double & minx , double & maxx , double & smallestGreaterZero ) override ;
/** \copydoc JKQTPplotObject::getYMinMax() */
virtual bool getYMinMax ( double & miny , double & maxy , double & smallestGreaterZero ) override ;
2015-07-11 18:56:02 +08:00
/** \brief plots the graph to the plotter object specified as parent */
2018-12-28 05:52:00 +08:00
virtual void draw ( JKQTPEnhancedPainter & painter ) override ;
2015-07-11 18:56:02 +08:00
} ;
2018-12-19 00:13:18 +08:00
# endif // jkqtpgraphsgeometric_H_INCLUDED