![]() |
VR-Forces 4.2 Class Documentation
|
Qt includes. More...

Public Member Functions | |
| DtLineDrawer () | |
| virtual | ~DtLineDrawer () |
| virtual bool | draw (QPainter &paint, const DtSymbol *const symbol) const |
| draws the specified symbol on a device. | |
| virtual QSize | calcBBox (const DtSymbol *const symbol) const |
| Calculate the drawn size of this symbol. | |
| virtual void | setPenThickness (int thickness) |
| Set the thickness of the pen when drawing the lines;. | |
| virtual void | setArrowStyle (DtLineSymbol::DtArrowStyle style) |
| Sets the arrow style to be this style regardless of what is set in the symbol. | |
| virtual void | clearArrowStyleOverride () |
| virtual void | setPenStyle (Qt::PenStyle style) |
| Sets the pen style to be this style regardless of what is set in the symbol. | |
| virtual void | clearPenStyleOverride () |
Public Member Functions inherited from DtBaseSymbolDrawer | |
| DtBaseSymbolDrawer () | |
| virtual | ~DtBaseSymbolDrawer () |
| virtual bool | doDrawing (QPainter &paint, const DtSymbol *const symbol) |
| ! Initializes any drawing information and then calls internal draw() method | |
Public Member Functions inherited from DtSymbolDrawer | |
| DtSymbolDrawer () | |
| virtual | ~DtSymbolDrawer () |
| virtual QRect | calcBRect (const DtSymbol *const symbol) const |
| virtual bool | forceUpdate (const DtSymbol *const symbol) const |
| Override if your class wants to force a redraw of this item regardless of performance enhancement state. | |
| virtual bool | endTransparentDraw (QPainter &paint, const DtSymbol *const symbol) const |
| Called after transparent draw is finished if symbol wants to draw transparently. | |
| virtual void | processHiddenSymbolAction (QPainter &paint, const DtSymbol *const symbol) |
| Routine to perform even when symbol is hidden. | |
Static Public Member Functions | |
| static void | drawClippedLine (QPainterPath &path, QPainter &paint, const QPoint &point) |
| This method draws a line from the QPainterPaths's current position to the given point. | |
| static void | drawClippedLine (QPainter &paint, const QPoint &start, const QPoint &end) |
| static DtSymbolDrawer * | create () |
Protected Member Functions | |
| virtual void | drawSimpleArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawMainArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawRearArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawCappedSides (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawTriangle (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawThickArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawThickDoubleArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawFeintArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | draw2525TailArrow (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
| virtual void | drawBridge (QPainterPath &path, QPainter &paint, const DtLineSymbol *const arrowSymbol) const |
Protected Member Functions inherited from DtBaseSymbolDrawer | |
| virtual QRgb | opaqueColor () const |
| ! Returns color that will be ignored during transparent draw | |
Protected Member Functions inherited from DtSymbolDrawer | |
| DtSymbolDrawer (const DtSymbolDrawer &orig) | |
| Protected so not used. Conceptually class is a singleton. | |
| DtSymbolDrawer & | operator= (const DtSymbolDrawer &orig) |
| Protected so not used. Conceptually class is a singleton. | |
Protected Attributes | |
| int | myPenThickness |
| DtLineSymbol::DtArrowStyle | myArrowStyle |
| bool | myArrowStyleOverride |
| Qt::PenStyle | myPenStyle |
| bool | myPenStyleOverride |
Private Member Functions | |
| DtLineDrawer (const DtLineDrawer &orig) | |
| DtLineDrawer & | operator= (const DtLineDrawer &orig) |
Additional Inherited Members | |
Static Protected Attributes inherited from DtSymbolDrawer | |
| static double | gDrawScalingFactor |
| static QColor | theHighlightColor |
Qt includes.
Concrete class which draws arrows and lines. Arrows draw from the start position to the end position, i.e. the arrow is on the end position.
| DtLineDrawer::DtLineDrawer | ( | ) |
|
virtual |
|
private |
draws the specified symbol on a device.
The symbol must be of a DtLineSymbol type or nothing will be drawn.
Implements DtSymbolDrawer.
Reimplemented in DtMultiLineDrawer.
|
static |
This method draws a line from the QPainterPaths's current position to the given point.
It insures that if either of the endpoints of the line are beyond the limits of screen's coordinate system, they will be drawn properly. If the line is completely undrawable, the QPainterPaths's position will be manually moved to the endpoint even though the line is not drawn.
|
static |
|
virtual |
Calculate the drawn size of this symbol.
The symbol must be of a type this drawer can recognize.
Implements DtSymbolDrawer.
Reimplemented in DtMultiLineDrawer.
|
virtual |
Set the thickness of the pen when drawing the lines;.
|
virtual |
Sets the arrow style to be this style regardless of what is set in the symbol.
To turn this off call clearArrowStyleOverride()
|
virtual |
|
virtual |
Sets the pen style to be this style regardless of what is set in the symbol.
To turn this off, call clearPenStyleOverride()
|
virtual |
|
static |
Reimplemented in DtMultiLineDrawer.
|
private |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in DtMultiLineDrawer.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |