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

Public Member Functions | |
| DtCompositeDrawer () | |
| virtual | ~DtCompositeDrawer () |
| 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 | addDrawer (DtSymbolDrawer *drawer) |
| virtual void | removeDrawer (DtSymbolDrawer *drawer) |
| virtual DtPtrQList < DtSymbolDrawer * > * | drawers () |
| void | destroyDrawer (DtSymbolDrawer *, bool add=true) |
| Call this routine to add a composite drawer to destroy that is part of this drawer when this drawer is destroyed. | |
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 void | processHiddenSymbolAction (QPainter &paint, const DtSymbol *const symbol) |
| Routine to perform even when symbol is hidden. | |
Protected Member Functions | |
| 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. | |
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 | |
| DtPtrQList< DtSymbolDrawer * > | mySymbolDrawers |
| DtPtrQList< DtSymbolDrawer * > | myDrawersToDestroy |
Private Member Functions | |
| DtCompositeDrawer (const DtCompositeDrawer &orig) | |
| DtCompositeDrawer & | operator= (const DtCompositeDrawer &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 maintain a collection of drawers that will be called in turn to draw the specified symbol
| DtCompositeDrawer::DtCompositeDrawer | ( | ) |
|
virtual |
|
private |
|
virtual |
draws the specified symbol on a device.
The symbol must be of a DtLineSymbol type or nothing will be drawn.
Implements DtSymbolDrawer.
|
virtual |
Calculate the drawn size of this symbol.
The symbol must be of a type this drawer can recognize.
Implements DtSymbolDrawer.
|
virtual |
|
virtual |
|
virtual |
|
inline |
Call this routine to add a composite drawer to destroy that is part of this drawer when this drawer is destroyed.
If add is false, removes the drawer from the destroyed list
References DtPtrQList< T >::findRef(), myDrawersToDestroy, and DtPtrQList< T >::remove().
Override if your class wants to force a redraw of this item regardless of performance enhancement state.
By default this returns false
Reimplemented from DtSymbolDrawer.
|
protectedvirtual |
Called after transparent draw is finished if symbol wants to draw transparently.
Noop for this drawer
Reimplemented from DtSymbolDrawer.
|
private |
|
protected |
|
protected |
Referenced by destroyDrawer().