VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtLineDrawer Class Reference

Qt includes. More...

Inheritance diagram for DtLineDrawer:
Inheritance graph
[legend]

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 DtSymbolDrawercreate ()

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.
DtSymbolDraweroperator= (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)
DtLineDraweroperator= (const DtLineDrawer &orig)

Additional Inherited Members

- Static Protected Attributes inherited from DtSymbolDrawer
static double gDrawScalingFactor
static QColor theHighlightColor

Detailed Description

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.

Constructor & Destructor Documentation

DtLineDrawer::DtLineDrawer ( )
virtual DtLineDrawer::~DtLineDrawer ( )
virtual
DtLineDrawer::DtLineDrawer ( const DtLineDrawer orig)
private

Member Function Documentation

virtual bool DtLineDrawer::draw ( QPainter &  paint,
const DtSymbol *const  symbol 
) const
virtual

draws the specified symbol on a device.

The symbol must be of a DtLineSymbol type or nothing will be drawn.

Returns
true if successful, false otherwise.

Implements DtSymbolDrawer.

Reimplemented in DtMultiLineDrawer.

static void DtLineDrawer::drawClippedLine ( QPainterPath &  path,
QPainter &  paint,
const QPoint &  point 
)
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 void DtLineDrawer::drawClippedLine ( QPainter &  paint,
const QPoint &  start,
const QPoint &  end 
)
static
virtual QSize DtLineDrawer::calcBBox ( const DtSymbol *const  symbol) const
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 void DtLineDrawer::setPenThickness ( int  thickness)
virtual

Set the thickness of the pen when drawing the lines;.

virtual void DtLineDrawer::setArrowStyle ( DtLineSymbol::DtArrowStyle  style)
virtual

Sets the arrow style to be this style regardless of what is set in the symbol.

To turn this off call clearArrowStyleOverride()

virtual void DtLineDrawer::clearArrowStyleOverride ( )
virtual
virtual void DtLineDrawer::setPenStyle ( Qt::PenStyle  style)
virtual

Sets the pen style to be this style regardless of what is set in the symbol.

To turn this off, call clearPenStyleOverride()

virtual void DtLineDrawer::clearPenStyleOverride ( )
virtual
static DtSymbolDrawer* DtLineDrawer::create ( )
static

Reimplemented in DtMultiLineDrawer.

DtLineDrawer& DtLineDrawer::operator= ( const DtLineDrawer orig)
private
virtual void DtLineDrawer::drawSimpleArrow ( QPainterPath &  path,
QPainter &  paint,
const DtLineSymbol *const  arrowSymbol 
) const
protectedvirtual
virtual void DtLineDrawer::drawMainArrow ( QPainterPath &  path,
QPainter &  paint,
const DtLineSymbol *const  arrowSymbol 
) const
protectedvirtual
virtual void DtLineDrawer::drawRearArrow ( QPainterPath &  path,
QPainter &  paint,
const DtLineSymbol *const  arrowSymbol 
) const
protectedvirtual
virtual void DtLineDrawer::drawCappedSides ( QPainterPath &  path,
QPainter &  paint,
const DtLineSymbol *const  arrowSymbol 
) const
protectedvirtual
virtual void DtLineDrawer::drawTriangle ( QPainterPath &  path,
QPainter &  paint,
const DtLineSymbol *const  arrowSymbol 
) const
protectedvirtual
virtual void DtLineDrawer::drawThickArrow ( QPainterPath &  path,
QPainter &  paint,
const DtLineSymbol *const  arrowSymbol 
) const
protectedvirtual
virtual void DtLineDrawer::drawThickDoubleArrow ( QPainterPath &  path,
QPainter &  paint,
const DtLineSymbol *const  arrowSymbol 
) const
protectedvirtual
virtual void DtLineDrawer::drawFeintArrow ( QPainterPath &  path,
QPainter &  paint,
const DtLineSymbol *const  arrowSymbol 
) const
protectedvirtual

Reimplemented in DtMultiLineDrawer.

virtual void DtLineDrawer::draw2525TailArrow ( QPainterPath &  path,
QPainter &  paint,
const DtLineSymbol *const  arrowSymbol 
) const
protectedvirtual
virtual void DtLineDrawer::drawBridge ( QPainterPath &  path,
QPainter &  paint,
const DtLineSymbol *const  arrowSymbol 
) const
protectedvirtual

Member Data Documentation

int DtLineDrawer::myPenThickness
protected
DtLineSymbol::DtArrowStyle DtLineDrawer::myArrowStyle
protected
bool DtLineDrawer::myArrowStyleOverride
protected
Qt::PenStyle DtLineDrawer::myPenStyle
protected
bool DtLineDrawer::myPenStyleOverride
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)