![]() |
VR-Forces 4.1.1 Class Documentation
|
This class has been modified to be a pure interface to what a selector needs to implement in order to select objects on the screen. More...

Public Types | |
| enum | DtSelectorType { DtNone = 0, DtRectSelector, DtCircleSelector, DtCirclePointsSelector, DtCircleInscribedPointsSelector, DtSinglePointSelector, DtMAXSelectorType } |
Public Slots | |
| virtual void | startSelection (const QPoint &pnt) |
| Starts the selection process. | |
| virtual void | updateLocation (const QPoint &pnt) |
| Update selection with latest mouse location. | |
| virtual void | endSelection (Qt::KeyboardModifiers keyState, Qt::MouseButtons mouseState) |
| Ends the selection process. | |
Public Member Functions | |
| DtSymbolSelector () | |
| virtual | ~DtSymbolSelector () |
| virtual void | draw (QPainter *dc) |
| Draws the rubber band onto the DC. | |
| virtual void | setSelectorType (DtSelectorType type) |
| Sets current selector type. | |
| virtual DtSelectorType | selectorType () |
| Returns current selector type. | |
| virtual QPoint | firstEdgeWindowPoint () |
| Returns first edge point (DtCircleSelector), or start point. | |
| virtual QPoint | secondEdgeWindowPoint () |
| Returns second edge point (DtCircleSelector), or end point. | |
| virtual DtPoint | firstEdgePoint () |
| Returns first edge point (DtCircleSelector), or start point. | |
| virtual DtPoint | secondEdgePoint () |
| Returns second edge point (DtCircleSelector), or end point. | |
| virtual bool | selectionInProgress () |
| Returns true if startSelection() has been called. | |
| virtual void | setViewportExtents (const DtTMViewportExtents *v) |
| Sets the viewport extents. | |
| virtual void | setViewDriver (DtViewDriver *v) |
| Sets the view driver. | |
| virtual QVector< DtModelKey > & | selectedModelKeys () |
| Returns list of current symbol data. | |
| virtual void | setSelectionMode (int mode) |
| Accessors for selection mode. | |
| virtual int | selectionMode () const |
| virtual void | clear () |
| Clears out any internal state. | |
| virtual void | selectSymbols (DtModelDataIter *iter, Qt::KeyboardModifiers keyState, Qt::MouseButtons mouseState)=0 |
| Selects symbols based upon current selector type. | |
| virtual void | highlightSymbols (QVector< DtModelKey > *display=NULL)=0 |
| Highlights any currently selected symbols. | |
| virtual void | highlightNoSymbols () |
| virtual void | remove (const DtModelKey &key) |
| Removes a model key from the selected list. | |
| virtual void | setSelectedKeys (const QVector< DtModelKey > &keys) |
| Sets the selected keys to the specified list. | |
| virtual void | setRightClickMaintainsSelection (bool b) |
| virtual bool | rightClickMaintainsSelection () const |
| virtual bool | keepUnknownKeys () const |
Protected Member Functions | |
| virtual void | drawRect (QPainter *paint) |
| Draws a rectangle based on selection points. | |
| virtual void | drawCircle (QPainter *paint) |
| Draws a circle based on selection points. | |
| virtual void | drawCirclePoints (QPainter *paint) |
| Draws circle points based on selection points. | |
| virtual QPoint | getWindowPoint (const DtPoint &p) |
| Update window point from database point. | |
| virtual void | merge (const QVector< DtModelKey > &keys, QVector< DtModelKey > &result) |
| Merge the model keys specified in keys into result by adding new keys and removing keys that are common. | |
Protected Attributes | |
| const DtTMViewportExtents * | myViewportExtents |
| DtViewDriver * | myViewDriver |
| bool | mySelectionInProgress |
| DtPoint | myStartPoint |
| DtPoint | myEndPoint |
| DtSelectorType | mySelectorType |
| int | mySelectionMode |
| QVector< DtModelKey > | mySelectedModelKeys |
| QVector< DtModelKey > | myLastSelectedModelKeys |
| bool | myRightClickMaintainsSelection |
Private Member Functions | |
| DtSymbolSelector (const DtSymbolSelector &orig) | |
| Copy constructor. | |
| DtSymbolSelector & | operator= (const DtSymbolSelector &orig) |
| Assignment operator. | |
This class has been modified to be a pure interface to what a selector needs to implement in order to select objects on the screen.
This was abstracted to allow a terrain selector to be created
| DtSymbolSelector::DtSymbolSelector | ( | ) |
|
virtual |
|
private |
Copy constructor.
|
private |
Assignment operator.
|
virtual |
Draws the rubber band onto the DC.
|
virtual |
Sets current selector type.
|
virtual |
Returns current selector type.
|
virtual |
Returns first edge point (DtCircleSelector), or start point.
|
virtual |
Returns second edge point (DtCircleSelector), or end point.
|
virtual |
Returns first edge point (DtCircleSelector), or start point.
|
virtual |
Returns second edge point (DtCircleSelector), or end point.
|
virtual |
Returns true if startSelection() has been called.
|
virtual |
Sets the viewport extents.
|
virtual |
Sets the view driver.
|
virtual |
Returns list of current symbol data.
|
virtual |
Accessors for selection mode.
These will be used by the validation routine to figure out whether or not the selection is valid. All subclasses should override the validation routine to set their selection validation routines
|
virtual |
|
virtual |
Clears out any internal state.
Reimplemented in DtTerrainSelector.
|
pure virtual |
Selects symbols based upon current selector type.
Implemented in DtTerrainSelector, and DtObjectSelector.
|
pure virtual |
Highlights any currently selected symbols.
Implemented in DtTerrainSelector, and DtObjectSelector.
|
virtual |
|
virtual |
Removes a model key from the selected list.
|
virtual |
Sets the selected keys to the specified list.
|
virtual |
|
virtual |
|
inlinevirtual |
Reimplemented in DtTerrainSelector.
|
virtualslot |
Starts the selection process.
|
virtualslot |
Update selection with latest mouse location.
|
virtualslot |
Ends the selection process.
Reimplemented in DtTerrainSelector.
|
protectedvirtual |
Draws a rectangle based on selection points.
|
protectedvirtual |
Draws a circle based on selection points.
|
protectedvirtual |
Draws circle points based on selection points.
|
protectedvirtual |
Update window point from database point.
|
protectedvirtual |
Merge the model keys specified in keys into result by adding new keys and removing keys that are common.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |