VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes
DtSymbolDrawer Class Reference

class DtSymbolDrawerInterface: More...

Inheritance diagram for DtSymbolDrawer:
Inheritance graph
[legend]

List of all members.

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.
DtSymbolDraweroperator= (const DtSymbolDrawer &orig)
 Protected so not used. Conceptually class is a singleton.

Static Protected Attributes

static double gDrawScalingFactor
static QColor theHighlightColor

Detailed Description

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.


Constructor & Destructor Documentation

virtual DtSymbolDrawer::~DtSymbolDrawer ( ) [virtual]
DtSymbolDrawer::DtSymbolDrawer ( const DtSymbolDrawer orig) [protected]

Protected so not used. Conceptually class is a singleton.


Member Function Documentation

virtual bool DtSymbolDrawer::doDrawing ( QPainter &  paint,
const DtSymbol *const  symbol 
) [virtual]

Initializes any drawing information and then calls internal draw() method.

Reimplemented in DtBaseSymbolDrawer.

virtual QSize DtSymbolDrawer::calcBBox ( const DtSymbol *const  symbol) const [pure virtual]
virtual QRect DtSymbolDrawer::calcBRect ( const DtSymbol *const  symbol) const [virtual]

Reimplemented in DtTTFUnitSymbolDrawer.

virtual bool DtSymbolDrawer::forceUpdate ( const DtSymbol *const  symbol) const [virtual]

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 bool DtSymbolDrawer::endTransparentDraw ( QPainter &  paint,
const DtSymbol *const  symbol 
) const [virtual]

Called after transparent draw is finished if symbol wants to draw transparently.

Noop for this drawer

Reimplemented in DtVertexDrawer, and DtCompositeDrawer.

virtual void DtSymbolDrawer::processHiddenSymbolAction ( QPainter &  paint,
const DtSymbol *const  symbol 
) [virtual]

Routine to perform even when symbol is hidden.

Called only when symbol is hidden. Default implementation does nothing

static double DtSymbolDrawer::drawScalingFactor ( ) [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 void DtSymbolDrawer::setDrawScalingFactor ( double  d) [static]
virtual bool DtSymbolDrawer::draw ( QPainter &  paint,
const DtSymbol *const  symbol 
) const [pure virtual]
static void DtSymbolDrawer::setHighlightColor ( const QColor &  color) [static]
static const QColor& DtSymbolDrawer::highlightColor ( ) [static]
DtSymbolDrawer& DtSymbolDrawer::operator= ( const DtSymbolDrawer orig) [protected]

Protected so not used. Conceptually class is a singleton.


Member Data Documentation

double DtSymbolDrawer::gDrawScalingFactor [static, protected]
QColor DtSymbolDrawer::theHighlightColor [static, protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)