VR-Forces 4.1 Class Documentation
List of all members | Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
DtSymbolLensArea Class Reference

This lens Area is the controller of the SymbolLens. More...

Inheritance diagram for DtSymbolLensArea:
Inheritance graph
[legend]

Public Slots

virtual void tick ()
- Public Slots inherited from DtLensArea
virtual void createLens (DtFilterLens *lens)
 create a Lens widget
virtual void moveToStackTop (DtFilterLens *lens)
virtual void deleteLens (DtFilterLens *lens)
virtual void removeGlobalFilter (DtFilterLens *lens)
 global lenses
virtual void deleteAllGlobalFilters ()
virtual void deleteGlobalFilter (DtFilterLens *lens)
virtual void addGlobalFilter (DtFilterLens *lens)
virtual void insertGlobalFilter (int iIndex, DtFilterLens *lens)
virtual void moveToGlobal (DtFilterLens *lens)
virtual void reorderGlobalFilter (DtFilterLens *preLens, DtFilterLens *postLens)
virtual void setBackground (QPixmap *bg)
virtual QPixmap * background () const
virtual void setAutoDeleteFilters (bool b)
virtual void resizeEvent (QResizeEvent *evnt)

Public Member Functions

 DtSymbolLensArea (QWidget *parent=0, Qt::WindowFlags=0, bool useGL=false)
 Constructor.
virtual ~DtSymbolLensArea ()
 Destructor.
virtual void setSymbolList (DtSymbolList *mySymbolList)
virtual DtSymbolListsymbolList ()
 return the symbol list or NULL if it doesn't exist.
virtual void drawOrderSymbols (DtSymbolList *list, bool addAll)
 This routine will take the current symbol list and order them according to which symbols want to be drawn first or last.
virtual void insertIntoDrawOrder (DtSymbol *)
 Insert this symbol into draw order (if exists).
virtual void drawOrderSymbols ()
 This routine will draw order the symbols into the myDrawOrder list.
virtual DtSymbolListdrawOrder ()
 Returns the draw order list.
virtual void clearDrawOrder ()
 Clears the draw order by deleting the draw order list.
virtual void setForceDrawOrderAdd (bool)
 If true, add symbols to draw order regardless of whether or not they are on-screen.
virtual bool forceDrawOrderAdd () const
void setBlockSymbolTick (bool)
 Blocks ticking of symbol list.
bool blockSymbolTick () const
virtual void removeSymbol (DtSymbol *)
 Removes symbol from draw order list (if exists)
- Public Member Functions inherited from DtLensArea
 DtLensArea (QWidget *parent=0, Qt::WindowFlags flags=0, bool useOpenGL=false)
 default constructor
virtual ~DtLensArea ()
 destructor
virtual QPainter * paintDevice ()
 The device the lens is currently painting to.
virtual void paint (QPainter *toDevice, bool drawBackground=true)
 Set to false to not draw background.
virtual void setUsePixmap (bool b)
 Set to false to draw directly to the widget rather than a pixmap that is then painted to the widget.
virtual void updateArea ()
 If a GL widget is present, calls update on that, else calls update on self.
virtual void repaintArea ()
 If a GL widget is present, calls repaint on that, else calls repaint on self.

Static Public Member Functions

static DtSymbolLensAreacreate (QWidget *parent, const Qt::WindowFlags &flags, bool useGL=false)
 Returns a newly created instance of a DtSymbolLensArea.

Protected Slots

virtual void symbolDestroyed (QObject *)

Protected Member Functions

DtSymbolfilterModelData (DtSymbol *symbol)
virtual void tickSymbolList ()
virtual void addSymbolToDrawOrder (DtSymbol *s)
- Protected Member Functions inherited from DtLensArea
virtual void tick ()
virtual void paintEvent (QPaintEvent *evnt)
virtual void dragEnterEvent (QDragEnterEvent *e)
 Drag/Drop code.
virtual void dragLeaveEvent (QDragLeaveEvent *e)
virtual void dragMoveEvent (QDragMoveEvent *e)
virtual void dropEvent (QDropEvent *e)

Protected Attributes

DtSymbolListmySymbolList
DtSymbolListmyDrawOrder
bool myForceDrawOrderAdd
bool myBlockSymbolTick
- Protected Attributes inherited from DtLensArea
DtPtrQList< DtFilterLens * > * myLensList
DtPtrQList< DtFilterLens * > * myGlobalLensList
DtFilterLensmyDeferredLens
 Deferred deletion of lenses in case deleteLens() is called by the lens itself.
QPixmap * myBackground
QPainter * myPaintDevice
QPixmap * myPix
bool myAutoDelete
bool myDrawBackground
bool myInPaint
DtLensGLWidget * myLensGLWidget

Additional Inherited Members

- Signals inherited from DtLensArea
void dropEventSignal (QDropEvent *)
void dragEnterEventSignal (QDragEnterEvent *)
void dragLeaveEventSignal (QDragLeaveEvent *)
void dragMoveEventSignal (QDragMoveEvent *)
void createdGlobalFilter (DtFilterLens *lens)
void deletingGlobalFilter (DtFilterLens *lens)
void backgroundDrawn (QPainter *p)
void aboutToDraw (QPainter *p)

Detailed Description

This lens Area is the controller of the SymbolLens.

It can draw symbols as well as a background pixmap - and controls the required filters.

Constructor & Destructor Documentation

DtSymbolLensArea::DtSymbolLensArea ( QWidget parent = 0,
Qt::WindowFlags  = 0,
bool  useGL = false 
)

Constructor.

virtual DtSymbolLensArea::~DtSymbolLensArea ( )
virtual

Destructor.

Member Function Documentation

virtual void DtSymbolLensArea::setSymbolList ( DtSymbolList mySymbolList)
virtual
virtual DtSymbolList* DtSymbolLensArea::symbolList ( )
virtual

return the symbol list or NULL if it doesn't exist.

static DtSymbolLensArea* DtSymbolLensArea::create ( QWidget parent,
const Qt::WindowFlags &  flags,
bool  useGL = false 
)
static

Returns a newly created instance of a DtSymbolLensArea.

virtual void DtSymbolLensArea::drawOrderSymbols ( DtSymbolList list,
bool  addAll 
)
virtual

This routine will take the current symbol list and order them according to which symbols want to be drawn first or last.

Symbols that aren't draw first or last will be placed after the symbols that are drawn first but before the symbols that are drawn last. If addAll is true, all symbols will be added.

virtual void DtSymbolLensArea::insertIntoDrawOrder ( DtSymbol )
virtual

Insert this symbol into draw order (if exists).

If there is no draw order and this symbol wants a draw order, then draw order symbols

virtual void DtSymbolLensArea::drawOrderSymbols ( )
virtual

This routine will draw order the symbols into the myDrawOrder list.

virtual DtSymbolList* DtSymbolLensArea::drawOrder ( )
virtual

Returns the draw order list.

virtual void DtSymbolLensArea::clearDrawOrder ( )
virtual

Clears the draw order by deleting the draw order list.

virtual void DtSymbolLensArea::setForceDrawOrderAdd ( bool  )
virtual

If true, add symbols to draw order regardless of whether or not they are on-screen.

virtual bool DtSymbolLensArea::forceDrawOrderAdd ( ) const
virtual
void DtSymbolLensArea::setBlockSymbolTick ( bool  b)
inline

Blocks ticking of symbol list.

References myBlockSymbolTick.

bool DtSymbolLensArea::blockSymbolTick ( ) const
inline

References myBlockSymbolTick.

virtual void DtSymbolLensArea::removeSymbol ( DtSymbol )
virtual

Removes symbol from draw order list (if exists)

virtual void DtSymbolLensArea::tick ( )
virtualslot
virtual void DtSymbolLensArea::symbolDestroyed ( QObject )
protectedvirtualslot
DtSymbol* DtSymbolLensArea::filterModelData ( DtSymbol symbol)
protected
virtual void DtSymbolLensArea::tickSymbolList ( )
protectedvirtual
virtual void DtSymbolLensArea::addSymbolToDrawOrder ( DtSymbol s)
protectedvirtual

Member Data Documentation

DtSymbolList* DtSymbolLensArea::mySymbolList
protected
DtSymbolList* DtSymbolLensArea::myDrawOrder
protected
bool DtSymbolLensArea::myForceDrawOrderAdd
protected
bool DtSymbolLensArea::myBlockSymbolTick
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)