Enumerations | |
| enum | MarkerType {  None, Circle, Rectangle, Diamond, DTriangle, UTriangle, LTriangle, RTriangle, Cross, XCross }  | 
| enum | LineType {  NoPen, Solid, Dash, Dot, DashDot, DashDotDot }  | 
Functions | |
| QwtSymbol::Style | plot2qwtMarker (MarkerType) | 
| Convert Plot2d marker type to Qwt marker type.  More... | |
| MarkerType | qwt2plotMarker (QwtSymbol::Style) | 
| Convert Qwt marker type to Plot2d marker type.  More... | |
| Qt::PenStyle | plot2qwtLine (LineType) | 
| Convert Plot2d line type to Qt/Qwt line type.  More... | |
| LineType | qwt2plotLine (Qt::PenStyle) | 
| Convert Qt/Qwt line type to Plot2d line type.  More... | |
| void | drawLine (QPainter *, const QPoint &, const QPoint &, Qt::PenStyle=Qt::SolidLine, const QColor &=Qt::black, int=0) | 
| Draw line.  More... | |
| void | drawLine (QPainter *, const QPoint &, const QPoint &, LineType=Solid, const QColor &=Qt::black, int=0) | 
| Draw line.  More... | |
| void | drawLine (QPainter *, int, int, int, int, Qt::PenStyle=Qt::SolidLine, const QColor &=Qt::black, int=0) | 
| Draw line.  More... | |
| void | drawLine (QPainter *, int, int, int, int, LineType=Solid, const QColor &=Qt::black, int=0) | 
| Draw line.  More... | |
| void | drawMarker (QPainter *, const QPoint &, const QRect &, QwtSymbol::Style=QwtSymbol::Ellipse, const QColor &=Qt::black) | 
| Draw marker.  More... | |
| void | drawMarker (QPainter *, const QPoint &, const QRect &, MarkerType=Circle, const QColor &=Qt::black) | 
| Draw marker.  More... | |
| void | drawMarker (QPainter *, int, int, int, int, QwtSymbol::Style=QwtSymbol::Ellipse, const QColor &=Qt::black) | 
| Draw marker.  More... | |
| void | drawMarker (QPainter *, int, int, int, int, MarkerType=Circle, const QColor &=Qt::black) | 
| Draw marker.  More... | |
| QPixmap | markerIcon (const QSize &, const QColor &, Plot2d::MarkerType) | 
| Create icon pixmap according to the marker type.  More... | |
| QPixmap | lineIcon (const QSize &, const QColor &, Plot2d::LineType) | 
| Create icon pixmap according to the line type.  More... | |
| void | getNextMarker (const int rtti, const QwtPlot *, QwtSymbol::Style &, QColor &, Qt::PenStyle &) | 
| bool | existMarker (const int rtti, const QwtPlot *, const QwtSymbol::Style, const QColor &, const Qt::PenStyle) | 
| bool | closeColors (const QColor &, const QColor &, int distance=-1) | 
| enum Plot2d::LineType | 
| enum Plot2d::MarkerType | 
Checks if two colors are close to each other uses COLOR_DISTANCE variable as max tolerance for comparing of colors
References COLOR_DISTANCE.
| void Plot2d::drawLine | ( | QPainter * | painter, | 
| const QPoint & | p1, | ||
| const QPoint & | p2, | ||
| Qt::PenStyle | type = Qt::SolidLine,  | 
        ||
| const QColor & | color = Qt::black,  | 
        ||
| int | width = 0  | 
        ||
| ) | 
| painter | painter | 
| p1 | starting point | 
| p2 | ending point | 
| type | line type | 
| color | line color | 
| width | line width | 
| void Plot2d::drawLine | ( | QPainter * | painter, | 
| const QPoint & | p1, | ||
| const QPoint & | p2, | ||
| Plot2d::LineType | type = Solid,  | 
        ||
| const QColor & | color = Qt::black,  | 
        ||
| int | width = 0  | 
        ||
| ) | 
| painter | painter | 
| p1 | starting point | 
| p2 | ending point | 
| type | line type | 
| color | line color | 
| width | line width | 
References drawLine(), and plot2qwtLine().
| void Plot2d::drawLine | ( | QPainter * | painter, | 
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| Qt::PenStyle | type = Qt::SolidLine,  | 
        ||
| const QColor & | color = Qt::black,  | 
        ||
| int | width = 0  | 
        ||
| ) | 
| painter | painter | 
| x1 | X coordinate of the starting point | 
| y1 | Y coordinate of the starting point | 
| x2 | X coordinate of the ending point | 
| y2 | Y coordinate of the ending point | 
| type | line type | 
| color | line color | 
| width | line width | 
References drawLine().
| void Plot2d::drawLine | ( | QPainter * | painter, | 
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| Plot2d::LineType | type = Solid,  | 
        ||
| const QColor & | color = Qt::black,  | 
        ||
| int | width = 0  | 
        ||
| ) | 
| painter | painter | 
| x1 | X coordinate of the starting point | 
| y1 | Y coordinate of the starting point | 
| x2 | X coordinate of the ending point | 
| y2 | Y coordinate of the ending point | 
| type | line type | 
| color | line color | 
| width | line width | 
References drawLine(), and plot2qwtLine().
| void Plot2d::drawMarker | ( | QPainter * | painter, | 
| const QPoint & | p, | ||
| const QRect & | r, | ||
| Plot2d::MarkerType | type = Circle,  | 
        ||
| const QColor & | color = Qt::black  | 
        ||
| ) | 
| painter | painter | 
| p | central point | 
| r | marker rectangle | 
| type | marker type | 
| color | marker color | 
References drawMarker(), and plot2qwtMarker().
| void Plot2d::drawMarker | ( | QPainter * | painter, | 
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| QwtSymbol::Style | type = QwtSymbol::Ellipse,  | 
        ||
| const QColor & | color = Qt::black  | 
        ||
| ) | 
| painter | painter | 
| x | X coordinate of the central point | 
| y | Y coordinate of the central point | 
| w | marker rectangle width | 
| h | marker rectangle height | 
| type | marker type | 
| color | marker color | 
References drawMarker().
| void Plot2d::drawMarker | ( | QPainter * | painter, | 
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Plot2d::MarkerType | type = Circle,  | 
        ||
| const QColor & | color = Qt::black  | 
        ||
| ) | 
| painter | painter | 
| x | X coordinate of the central point | 
| y | Y coordinate of the central point | 
| w | marker rectangle width | 
| h | marker rectangle height | 
| type | marker type | 
| color | marker color | 
References drawMarker(), and plot2qwtMarker().
| bool Plot2d::existMarker | ( | const int | rtti, | 
| const QwtPlot * | thePlot, | ||
| const QwtSymbol::Style | typeMarker, | ||
| const QColor & | color, | ||
| const Qt::PenStyle | typeLine | ||
| ) | 
Checks if marker belongs to any enitity
References closeColors().
| void Plot2d::getNextMarker | ( | const int | rtti, | 
| const QwtPlot * | thePlot, | ||
| QwtSymbol::Style & | typeMarker, | ||
| QColor & | color, | ||
| Qt::PenStyle & | typeLine | ||
| ) | 
Gets new unique marker for item if possible
References existMarker(), and MAX_ATTEMPTS.
| QPixmap Plot2d::lineIcon | ( | const QSize & | size, | 
| const QColor & | color, | ||
| Plot2d::LineType | type | ||
| ) | 
| size | icon size | 
| type | line type | 
| color | icon color | 
References OCCViewer::color(), drawLine(), and px().
| QPixmap Plot2d::markerIcon | ( | const QSize & | size, | 
| const QColor & | color, | ||
| Plot2d::MarkerType | type | ||
| ) | 
| size | icon size | 
| type | marker type | 
| color | icon color | 
References OCCViewer::color(), drawMarker(), MSIZE, and px().
| Qt::PenStyle Plot2d::plot2qwtLine | ( | Plot2d::LineType | p | ) | 
| QwtSymbol::Style Plot2d::plot2qwtMarker | ( | Plot2d::MarkerType | m | ) | 
| Plot2d::LineType Plot2d::qwt2plotLine | ( | Qt::PenStyle | p | ) |