30 # if defined PLOT2D_EXPORTS || defined Plot2d_EXPORTS
31 # define PLOT2D_EXPORT __declspec(dllexport)
33 # define PLOT2D_EXPORT __declspec(dllimport)
36 # define PLOT2D_EXPORT
39 #include <qwt_symbol.h>
48 #define PLOT2D_DEVIATION_COLOR "DEVIATION_COLOR"
49 #define PLOT2D_DEVIATION_LW "DEVIATION_LW"
50 #define PLOT2D_DEVIATION_TS "DEVIATION_TS"
59 Plot2d_Point(
double theX,
double theY,
const QString& theText = QString() );
61 bool deviation(
double& min,
double& max)
const;
62 bool hasDeviation()
const;
63 void setDeviation(
double min,
double max);
64 void clearDeviation();
65 bool minDeviation(
double& min)
const;
66 bool maxDeviation(
double& max)
const;
101 void drawLine( QPainter*,
const QPoint&,
const QPoint&,
102 Qt::PenStyle = Qt::SolidLine,
103 const QColor& = Qt::black,
int = 0 );
104 void drawLine( QPainter*,
const QPoint&,
const QPoint&,
106 const QColor& = Qt::black,
int = 0 );
107 void drawLine( QPainter*,
int,
int,
int,
int,
108 Qt::PenStyle = Qt::SolidLine,
109 const QColor& = Qt::black,
int = 0 );
110 void drawLine( QPainter*,
int,
int,
int,
int,
112 const QColor& = Qt::black,
int = 0 );
114 void drawMarker( QPainter*,
const QPoint&,
const QRect&,
115 QwtSymbol::Style = QwtSymbol::Ellipse,
116 const QColor& = Qt::black );
117 void drawMarker( QPainter*,
const QPoint&,
const QRect&,
119 const QColor& = Qt::black );
120 void drawMarker( QPainter*,
int,
int,
int,
int,
121 QwtSymbol::Style = QwtSymbol::Ellipse,
122 const QColor& = Qt::black );
123 void drawMarker( QPainter*,
int,
int,
int,
int,
125 const QColor& = Qt::black );
127 QPixmap
markerIcon(
const QSize&,
const QColor&,
130 QPixmap
lineIcon(
const QSize&,
const QColor&,
134 QColor&, Qt::PenStyle& );
137 const QColor&,
const Qt::PenStyle );
147 # pragma warning ( disable: 4251 )
QList< Plot2d_Point > pointList
Definition: Plot2d.h:69
#define PLOT2D_EXPORT
Definition: Plot2d.h:36
QPixmap lineIcon(const QSize &, const QColor &, Plot2d::LineType)
Create icon pixmap according to the line type.
Definition: Plot2d.cxx:477
LineType qwt2plotLine(Qt::PenStyle)
Convert Qt/Qwt line type to Plot2d line type.
Definition: Plot2d.cxx:225
void getNextMarker(const int rtti, const QwtPlot *, QwtSymbol::Style &, QColor &, Qt::PenStyle &)
Definition: Plot2d.cxx:491
MarkerType qwt2plotMarker(QwtSymbol::Style)
Convert Qwt marker type to Plot2d marker type.
Definition: Plot2d.cxx:165
void drawMarker(QPainter *, const QPoint &, const QRect &, QwtSymbol::Style=QwtSymbol::Ellipse, const QColor &=Qt::black)
Draw marker.
Definition: Plot2d.cxx:325
QwtSymbol::Style plot2qwtMarker(MarkerType)
Convert Plot2d marker type to Qwt marker type.
Definition: Plot2d.cxx:131
bool closeColors(const QColor &, const QColor &, int distance=-1)
Definition: Plot2d.cxx:548
QPixmap markerIcon(const QSize &, const QColor &, Plot2d::MarkerType)
Create icon pixmap according to the marker type.
Definition: Plot2d.cxx:459
MarkerType
Definition: Plot2d.h:74
@ RTriangle
Definition: Plot2d.h:81
@ LTriangle
Definition: Plot2d.h:80
@ DTriangle
Definition: Plot2d.h:78
@ UTriangle
Definition: Plot2d.h:79
@ Rectangle
Definition: Plot2d.h:76
@ XCross
Definition: Plot2d.h:83
@ Circle
Definition: Plot2d.h:75
@ Diamond
Definition: Plot2d.h:77
@ None
Definition: Plot2d.h:74
@ Cross
Definition: Plot2d.h:82
LineType
Definition: Plot2d.h:86
@ DashDotDot
Definition: Plot2d.h:92
@ NoPen
Definition: Plot2d.h:87
@ Dot
Definition: Plot2d.h:90
@ Dash
Definition: Plot2d.h:89
@ DashDot
Definition: Plot2d.h:91
@ Solid
Definition: Plot2d.h:88
void drawLine(QPainter *, const QPoint &, const QPoint &, Qt::PenStyle=Qt::SolidLine, const QColor &=Qt::black, int=0)
Draw line.
Definition: Plot2d.cxx:255
Qt::PenStyle plot2qwtLine(LineType)
Convert Plot2d line type to Qt/Qwt line type.
Definition: Plot2d.cxx:199
bool existMarker(const int rtti, const QwtPlot *, const QwtSymbol::Style, const QColor &, const Qt::PenStyle)
Definition: Plot2d.cxx:514
double x
Definition: Plot2d.h:54
QString text
Definition: Plot2d.h:57
double y
Definition: Plot2d.h:55
double * deviationPtr
Definition: Plot2d.h:56