![]() |
VR-Forces 4.1 Class Documentation
|

Public Member Functions | |
| DtMapAreaSelectionHandler () | |
| Default Constructor. | |
| virtual | ~DtMapAreaSelectionHandler () |
| Destructor. | |
| void | setXMovement (double) |
| Amount to move in x, y, z direction. | |
| double | xMovement () const |
| void | setYMovement (double) |
| double | yMovement () const |
| void | setZMovement (double) |
| double | zMovement () const |
Public Member Functions inherited from DtEventHandler | |
| DtEventHandler () | |
| Default Constructor. | |
| virtual | ~DtEventHandler () |
| Destructor. | |
| virtual void | setEventController (DtEventController *) |
| virtual void | setInitialSelection (const QVector< DtModelKey > &d) |
| virtual void | showDialog (bool b) |
| virtual QWidget * | createDialog (QWidget *w) |
| Creates the dialog associated with this handler (if there is one) | |
| virtual QWidget * | dialog (bool createIfMissing=true, QWidget *parent=NULL) |
| If createIfMissing is true, will create the dialog based on the supplied parent window, else will simply return the dialog pointer. | |
| virtual void | reset () |
| virtual DtBaseWindow * | baseWindow () const |
| Returns the base window of the event controller. | |
| virtual void | activate () |
| Called when this event handler first becomes active. | |
| virtual void | deactivate () |
| Called when this event handler is removed as the current event. | |
| virtual void | setBaseWindow (DtBaseWindow *w) |
| Called when the base window is set for the event controller. | |
| virtual void | init () |
| Called when the handler is first created, initialize context. | |
| void | setSuspended (bool) |
| Set when something wants to suspend some aspect of this handler without deactivating it. | |
| bool | suspended () const |
| virtual void | dialogDestroyedEvent () |
| Called when dialog is destroyed. | |
Public Member Functions inherited from DtArchivableObject | |
| DtArchivableObject (QString name, DtArchivableObjectCreator fcn) | |
| This constructor will add this object to the archivable object factory. | |
| DtArchivableObject (QString name) | |
| DtArchivableObject () | |
| virtual | ~DtArchivableObject () |
| virtual QString | name () const |
| DtArchiver * | archiver () |
| Returns the archiver of this object. | |
| virtual void | read (QTextStream &s) |
| Reads/writes archiver. | |
| virtual void | write (QTextStream &s) |
| virtual void | setLevel (int i) |
| virtual int | level () const |
| virtual DtArchivableObject * | clone () |
| Allows for cloning of this object. | |
Static Public Member Functions | |
| static DtEventHandler * | create (DtEventController *owner, void *usr) |
| Static creator. | |
Protected Slots | |
| virtual void | selectionChanged (const QVector< DtModelKey > &) |
| Called when a connected map area changes its selection. | |
Protected Member Functions | |
| virtual bool | keyboardEvent (DtTMMapArea *, QKeyEvent *evnt) |
| virtual bool | isMovementKey (int) const |
| Returns true if the key is used for nudge movement. | |
| virtual void | moveModelData (DtTMMapArea *, DtModelData *data, int key) |
| Given the movement key, nudges the object in the appropriate direction by the pixels specified. | |
| virtual DtPoint | getOriginPoint (DtTMMapArea *area, DtModelData *data) const |
| Returns the point that is to be used as the basis for the z (height) change, if needed. | |
| virtual bool | connecting (DtTMMapArea *) |
| Hook up to selection change signals to do some processing. Default is no-op. | |
| virtual bool | disconnecting (DtTMMapArea *) |
| Called when a map is being disconnect from an event handler. | |
| virtual bool | isSelectedPointMove (DtTMMapArea *, DtModelData *) const |
| Returns true if the model data in question represents a line symbol that has a point selected. | |
| virtual bool | isSelectedCircleMove (DtTMMapArea *, DtModelData *) const |
| Returns true if the object is a circle. | |
| virtual void | moveSelectedPoint (DtTMMapArea *, DtModelData *, const DtPoint &delta) |
| This routine will get a handle to the vertex editor handler and ask it to do the point movement. | |
| virtual void | circleMove (DtTMMapArea *, DtModelData *, const DtPoint &delta) |
| This routine will get a handle to the circle resizing handler to move either the origin or the edge of the circle. | |
| virtual void | dragMove (DtTMMapArea *, DtModelData *, const DtPoint &delta) |
| Calls down to the drag/drop handler to move the selected symbol. | |
| virtual void | moveModelData (DtTMMapArea *area, DtModelData *data, const DtPoint &newOrigin) |
| Handles the update of the model data based on the new origin. | |
| virtual bool | isMoveableEvent (DtTMMapArea *area, int key) const |
| Return true if the key is a movement key. | |
Protected Attributes | |
| double | myXMovement |
| double | myYMovement |
| double | myZMovement |
Protected Attributes inherited from DtEventHandler | |
| QWidget * | myEventDlg |
| DtEventController * | myEventController |
| bool | mySuspended |
Protected Attributes inherited from DtArchivableObject | |
| DtArchiver * | myArchiver |
Additional Inherited Members | |
Public Slots inherited from DtEventHandler | |
| virtual bool | mouseEvent (DtTMMapArea *, QMouseEvent *evnt, const DtPoint &pnt) |
| virtual bool | symbolsSelected (DtTMMapArea *area, DtSymbolList *sl) |
| virtual bool | selectionUpdated (DtTMMapArea *area, const QVector< DtModelKey > &d) |
| virtual bool | selectionInProgress (DtTMMapArea *area, DtSymbolSelector &d) |
| virtual bool | focusEvent (DtTMMapArea *, QEvent *evnt) |
| virtual bool | enterEvent (DtTMMapArea *area, QEvent *evnt) |
| virtual bool | leaveEvent (DtTMMapArea *area, QEvent *evnt) |
| virtual bool | dropEvent (DtTMMapArea *area, QDropEvent *evnt) |
| virtual bool | dragEnterEvent (DtTMMapArea *area, QDragEnterEvent *evnt) |
| virtual bool | dragMoveEvent (DtTMMapArea *area, QDragMoveEvent *evnt) |
| virtual bool | dragLeaveEvent (DtTMMapArea *area, QDragLeaveEvent *evnt) |
| virtual bool | userDefinedAction (DtUserDefinedType iAction, void *usr) |
| virtual bool | aboutToDraw (DtTMMapArea *area, QPainter *) |
| virtual bool | mapActivated (DtTMMapArea *area) |
| virtual bool | selectedModelDataUpdated (DtTMMapArea *area) |
| virtual bool | symbolAdded (DtTMMapArea *area, const DtModelKey &) |
| virtual bool | symbolRemoved (DtTMMapArea *area, const DtModelKey &) |
| virtual void | tick () |
| virtual void | clearDialog () |
Signals inherited from DtEventHandler | |
| void | closedDialog () |
| DtMapAreaSelectionHandler::DtMapAreaSelectionHandler | ( | ) |
Default Constructor.
|
virtual |
Destructor.
|
static |
Static creator.
|
protectedvirtual |
Reimplemented from DtEventHandler.
|
protectedvirtual |
Returns true if the key is used for nudge movement.
|
protectedvirtual |
Given the movement key, nudges the object in the appropriate direction by the pixels specified.
|
protectedvirtual |
Returns the point that is to be used as the basis for the z (height) change, if needed.
|
protectedvirtual |
Hook up to selection change signals to do some processing. Default is no-op.
Reimplemented from DtEventHandler.
|
protectedvirtual |
Called when a map is being disconnect from an event handler.
Reimplemented from DtEventHandler.
|
protectedvirtual |
Returns true if the model data in question represents a line symbol that has a point selected.
If so, call routine to adjust just that selected point
|
protectedvirtual |
Returns true if the object is a circle.
|
protectedvirtual |
This routine will get a handle to the vertex editor handler and ask it to do the point movement.
This is done so that code will not need to be duplicated here
|
protectedvirtual |
This routine will get a handle to the circle resizing handler to move either the origin or the edge of the circle.
|
protectedvirtual |
Calls down to the drag/drop handler to move the selected symbol.
|
inline |
Amount to move in x, y, z direction.
For Z direction, this will mean meters change. For x, y the change is a percentage of the left/right or back/front size of the local extent. This means the more you are zoomed in, the smaller the move increment. X, Y default to 1 percent, Z defalts to 1 meter
References myXMovement.
|
inline |
References myXMovement.
|
inline |
References myYMovement.
|
inline |
References myYMovement.
|
inline |
References myZMovement.
|
inline |
References myZMovement.
|
protectedvirtual |
Handles the update of the model data based on the new origin.
|
protectedvirtual |
Return true if the key is a movement key.
|
protectedvirtualslot |
Called when a connected map area changes its selection.
|
protected |
Referenced by setXMovement(), and xMovement().
|
protected |
Referenced by setYMovement(), and yMovement().
|
protected |
Referenced by setZMovement(), and zMovement().