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

Public Types | |
| enum | DtKnobStyle { DtSquare, DtCircle } |
Public Member Functions | |
| DtVertexDrawer () | |
| virtual | ~DtVertexDrawer () |
| virtual bool | draw (QPainter &paint, const DtSymbol *const symbol) const |
| draws the specified symbol on a device. | |
| virtual bool | draw (QPainter &paint, const DtSymbol *const symbol, bool preTransparent) const |
| If preTransparent is true, draw knobs in black if symbol is going to be a transparent draw so this drawer can fill in after. | |
| virtual QSize | calcBBox (const DtSymbol *const symbol) const |
| Calculate the drawn size of this symbol. | |
| virtual void | setKnobStyle (DtKnobStyle style) |
| virtual DtKnobStyle | knobStyle () const |
Public Member Functions inherited from DtSymbolDrawer | |
| DtSymbolDrawer () | |
| virtual | ~DtSymbolDrawer () |
| virtual bool | doDrawing (QPainter &paint, const DtSymbol *const symbol) |
| Initializes any drawing information and then calls internal draw() method. | |
| 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 void | processHiddenSymbolAction (QPainter &paint, const DtSymbol *const symbol) |
| Routine to perform even when symbol is hidden. | |
Protected Member Functions | |
| virtual void | drawKnob (QPainter &paint, const QPoint &pnt, int iKnobSize) const |
| Switches on myKnobStyle to draw knob of particular kind. | |
| virtual void | drawSquareKnob (QPainter &paint, const QPoint &pnt, int iKnobSize) const |
| virtual void | drawCircleKnob (QPainter &paint, const QPoint &pnt, int iKnobSize) const |
| virtual bool | endTransparentDraw (QPainter &paint, const DtSymbol *const symbol) const |
| Called after transparent draw is finished if symbol wants to draw transparently. | |
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 | |
| DtKnobStyle | myKnobStyle |
Private Member Functions | |
| DtVertexDrawer (const DtVertexDrawer &orig) | |
| DtVertexDrawer & | operator= (const DtVertexDrawer &orig) |
Additional Inherited Members | |
Static Public Member Functions inherited from DtSymbolDrawer | |
| static double | drawScalingFactor () |
| Because of potential size difference in printer and screen metrics, a scaling factor can be applied to any drawing that relies on screen coordinates (such as arrow or bitmap size). | |
| static void | setDrawScalingFactor (double d) |
| static void | setHighlightColor (const QColor &color) |
| static const QColor & | highlightColor () |
Static Protected Attributes inherited from DtSymbolDrawer | |
| static double | gDrawScalingFactor |
| static QColor | theHighlightColor |
Qt includes.
This class will draw "knobs" at the verticies of the line symbol attached to this drawer. The knob size is part of the DtLineSymbol and the drawing will be centered around the point
| DtVertexDrawer::DtVertexDrawer | ( | ) |
|
virtual |
|
private |
draws the specified symbol on a device.
The symbol must be of a DtLineSymbol type or nothing will be drawn.
Implements DtSymbolDrawer.
|
virtual |
If preTransparent is true, draw knobs in black if symbol is going to be a transparent draw so this drawer can fill in after.
|
virtual |
Calculate the drawn size of this symbol.
The symbol must be of a type this drawer can recognize.
Implements DtSymbolDrawer.
|
virtual |
|
virtual |
|
protectedvirtual |
Switches on myKnobStyle to draw knob of particular kind.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Called after transparent draw is finished if symbol wants to draw transparently.
Reimplemented from DtSymbolDrawer.
|
private |
|
protected |