![]() |
VR-Forces 4.2 Class Documentation
|
class DtSymbolDrawerInterface: More...

Public Member Functions | |
| DtSymbolDrawer () | |
| virtual | ~DtSymbolDrawer () |
| virtual bool | doDrawing (QPainter &paint, const DtSymbol *const symbol) |
| Initializes any drawing information and then calls internal draw() method. | |
| virtual QSize | calcBBox (const DtSymbol *const symbol) const =0 |
| 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. | |
| virtual bool | draw (QPainter &paint, const DtSymbol *const symbol) const =0 |
Static Public Member Functions | |
| 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 () |
Protected Member Functions | |
| 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. | |
Static Protected Attributes | |
| static double | gDrawScalingFactor |
| static QColor | theHighlightColor |
class DtSymbolDrawerInterface:
Abstract base class which provides the bridge interface between the symbol and symbolDraw hierarchies.
This class has no dependency on qt drawing routines. Thus if (when) we change from Qt to another drawing package, none of the symbol classes will change, just the symboldraw derived classes.
| DtSymbolDrawer::DtSymbolDrawer | ( | ) |
|
virtual |
|
protected |
Protected so not used. Conceptually class is a singleton.
Initializes any drawing information and then calls internal draw() method.
Reimplemented in DtBaseSymbolDrawer.
|
pure virtual |
Implemented in DtLineDrawer, DtVertexDrawer, DtTTSDrawer, DtMultiLineDrawer, DtCompositeDrawer, DtBMPDrawer, DtCircleDrawer, DtPolygonDrawer, DtTTFUnitSymbolDrawer, and DtNullDrawer.
|
virtual |
Reimplemented in DtTTFUnitSymbolDrawer.
Override if your class wants to force a redraw of this item regardless of performance enhancement state.
By default this returns false
Reimplemented in DtCompositeDrawer.
|
virtual |
Called after transparent draw is finished if symbol wants to draw transparently.
Noop for this drawer
Reimplemented in DtVertexDrawer, and DtCompositeDrawer.
|
virtual |
Routine to perform even when symbol is hidden.
Called only when symbol is hidden. Default implementation does nothing
|
static |
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).
If this scaling factor is not referenced in drawing code, then, when items are printed to a printer, the layout may not be correct
|
static |
|
pure virtual |
Implemented in DtTTSDrawer, DtVertexDrawer, DtLineDrawer, DtMultiLineDrawer, DtCompositeDrawer, DtNullDrawer, DtBMPDrawer, DtCircleDrawer, DtPolygonDrawer, and DtResizableCircleDrawer.
|
static |
|
static |
|
protected |
Protected so not used. Conceptually class is a singleton.
|
staticprotected |
|
staticprotected |