![]() |
VR-Forces 4.0.4 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 |
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 |
Default Constructor.
| virtual DtMapAreaSelectionHandler::~DtMapAreaSelectionHandler | ( | ) | [virtual] |
Destructor.
| static DtEventHandler* DtMapAreaSelectionHandler::create | ( | DtEventController * | owner, |
| void * | usr | ||
| ) | [static] |
Static creator.
| virtual bool DtMapAreaSelectionHandler::keyboardEvent | ( | DtTMMapArea * | , |
| QKeyEvent * | evnt | ||
| ) | [protected, virtual] |
Reimplemented from DtEventHandler.
| virtual bool DtMapAreaSelectionHandler::isMovementKey | ( | int | ) | const [protected, virtual] |
Returns true if the key is used for nudge movement.
| virtual void DtMapAreaSelectionHandler::moveModelData | ( | DtTMMapArea * | , |
| DtModelData * | data, | ||
| int | key | ||
| ) | [protected, virtual] |
Given the movement key, nudges the object in the appropriate direction by the pixels specified.
| virtual DtPoint DtMapAreaSelectionHandler::getOriginPoint | ( | DtTMMapArea * | area, |
| DtModelData * | data | ||
| ) | const [protected, virtual] |
Returns the point that is to be used as the basis for the z (height) change, if needed.
| virtual bool DtMapAreaSelectionHandler::connecting | ( | DtTMMapArea * | ) | [protected, virtual] |
Hook up to selection change signals to do some processing. Default is no-op.
Reimplemented from DtEventHandler.
| virtual bool DtMapAreaSelectionHandler::disconnecting | ( | DtTMMapArea * | area | ) | [protected, virtual] |
Called when a map is being disconnect from an event handler.
Reimplemented from DtEventHandler.
| virtual bool DtMapAreaSelectionHandler::isSelectedPointMove | ( | DtTMMapArea * | , |
| DtModelData * | |||
| ) | const [protected, virtual] |
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
| virtual bool DtMapAreaSelectionHandler::isSelectedCircleMove | ( | DtTMMapArea * | , |
| DtModelData * | |||
| ) | const [protected, virtual] |
Returns true if the object is a circle.
| virtual void DtMapAreaSelectionHandler::moveSelectedPoint | ( | DtTMMapArea * | , |
| DtModelData * | , | ||
| const DtPoint & | delta | ||
| ) | [protected, virtual] |
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
| virtual void DtMapAreaSelectionHandler::circleMove | ( | DtTMMapArea * | , |
| DtModelData * | , | ||
| const DtPoint & | delta | ||
| ) | [protected, virtual] |
This routine will get a handle to the circle resizing handler to move either the origin or the edge of the circle.
| virtual void DtMapAreaSelectionHandler::dragMove | ( | DtTMMapArea * | , |
| DtModelData * | , | ||
| const DtPoint & | delta | ||
| ) | [protected, virtual] |
Calls down to the drag/drop handler to move the selected symbol.
| void DtMapAreaSelectionHandler::setXMovement | ( | double | i | ) | [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.
| double DtMapAreaSelectionHandler::xMovement | ( | ) | const [inline] |
References myXMovement.
| void DtMapAreaSelectionHandler::setYMovement | ( | double | i | ) | [inline] |
References myYMovement.
| double DtMapAreaSelectionHandler::yMovement | ( | ) | const [inline] |
References myYMovement.
| void DtMapAreaSelectionHandler::setZMovement | ( | double | d | ) | [inline] |
References myZMovement.
| double DtMapAreaSelectionHandler::zMovement | ( | ) | const [inline] |
References myZMovement.
| virtual void DtMapAreaSelectionHandler::moveModelData | ( | DtTMMapArea * | area, |
| DtModelData * | data, | ||
| const DtPoint & | newOrigin | ||
| ) | [protected, virtual] |
Handles the update of the model data based on the new origin.
| virtual bool DtMapAreaSelectionHandler::isMoveableEvent | ( | DtTMMapArea * | area, |
| int | key | ||
| ) | const [protected, virtual] |
Return true if the key is a movement key.
| virtual void DtMapAreaSelectionHandler::selectionChanged | ( | const QVector< DtModelKey > & | ) | [protected, virtual, slot] |
Called when a connected map area changes its selection.
double DtMapAreaSelectionHandler::myXMovement [protected] |
Referenced by setXMovement(), and xMovement().
double DtMapAreaSelectionHandler::myYMovement [protected] |
Referenced by setYMovement(), and yMovement().
double DtMapAreaSelectionHandler::myZMovement [protected] |
Referenced by setZMovement(), and zMovement().