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

Qt includes. More...

Inheritance diagram for DtCompositeDrawer:
Inheritance graph
[legend]

List of all members.

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.

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 Attributes

DtPtrQList< DtSymbolDrawer * > mySymbolDrawers
DtPtrQList< DtSymbolDrawer * > myDrawersToDestroy

Private Member Functions

 DtCompositeDrawer (const DtCompositeDrawer &orig)
DtCompositeDraweroperator= (const DtCompositeDrawer &orig)

Detailed Description

Qt includes.

This class will maintain a collection of drawers that will be called in turn to draw the specified symbol


Constructor & Destructor Documentation


Member Function Documentation

virtual bool DtCompositeDrawer::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.

virtual QSize DtCompositeDrawer::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.

virtual void DtCompositeDrawer::addDrawer ( DtSymbolDrawer drawer) [virtual]
virtual void DtCompositeDrawer::removeDrawer ( DtSymbolDrawer drawer) [virtual]
void DtCompositeDrawer::destroyDrawer ( DtSymbolDrawer d,
bool  add = true 
) [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().

virtual bool DtCompositeDrawer::forceUpdate ( const DtSymbol *const  symbol) const [protected, virtual]

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.

virtual bool DtCompositeDrawer::endTransparentDraw ( QPainter &  paint,
const DtSymbol *const  symbol 
) const [protected, virtual]

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

Noop for this drawer

Reimplemented from DtSymbolDrawer.

DtCompositeDrawer& DtCompositeDrawer::operator= ( const DtCompositeDrawer orig) [private]

Member Data Documentation

Referenced by destroyDrawer().


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)