VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
DtMapAreaSelectionHandler Class Reference
Inheritance diagram for DtMapAreaSelectionHandler:
Inheritance graph
[legend]

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 QWidgetcreateDialog (QWidget *w)
 Creates the dialog associated with this handler (if there is one)
virtual QWidgetdialog (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 DtBaseWindowbaseWindow () 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
DtArchiverarchiver ()
 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 DtArchivableObjectclone ()
 Allows for cloning of this object.

Static Public Member Functions

static DtEventHandlercreate (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
QWidgetmyEventDlg
DtEventControllermyEventController
bool mySuspended
- Protected Attributes inherited from DtArchivableObject
DtArchivermyArchiver

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 ()

Constructor & Destructor Documentation

DtMapAreaSelectionHandler::DtMapAreaSelectionHandler ( )

Default Constructor.

virtual DtMapAreaSelectionHandler::~DtMapAreaSelectionHandler ( )
virtual

Destructor.

Member Function Documentation

static DtEventHandler* DtMapAreaSelectionHandler::create ( DtEventController owner,
void *  usr 
)
static

Static creator.

virtual bool DtMapAreaSelectionHandler::keyboardEvent ( DtTMMapArea ,
QKeyEvent *  evnt 
)
protectedvirtual

Reimplemented from DtEventHandler.

virtual bool DtMapAreaSelectionHandler::isMovementKey ( int  ) const
protectedvirtual

Returns true if the key is used for nudge movement.

virtual void DtMapAreaSelectionHandler::moveModelData ( DtTMMapArea ,
DtModelData data,
int  key 
)
protectedvirtual

Given the movement key, nudges the object in the appropriate direction by the pixels specified.

virtual DtPoint DtMapAreaSelectionHandler::getOriginPoint ( DtTMMapArea area,
DtModelData data 
) const
protectedvirtual

Returns the point that is to be used as the basis for the z (height) change, if needed.

virtual bool DtMapAreaSelectionHandler::connecting ( DtTMMapArea )
protectedvirtual

Hook up to selection change signals to do some processing. Default is no-op.

Reimplemented from DtEventHandler.

virtual bool DtMapAreaSelectionHandler::disconnecting ( DtTMMapArea area)
protectedvirtual

Called when a map is being disconnect from an event handler.

Reimplemented from DtEventHandler.

virtual bool DtMapAreaSelectionHandler::isSelectedPointMove ( DtTMMapArea ,
DtModelData  
) const
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

virtual bool DtMapAreaSelectionHandler::isSelectedCircleMove ( DtTMMapArea ,
DtModelData  
) const
protectedvirtual

Returns true if the object is a circle.

virtual void DtMapAreaSelectionHandler::moveSelectedPoint ( DtTMMapArea ,
DtModelData ,
const DtPoint delta 
)
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

virtual void DtMapAreaSelectionHandler::circleMove ( DtTMMapArea ,
DtModelData ,
const DtPoint delta 
)
protectedvirtual

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 
)
protectedvirtual

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 
)
protectedvirtual

Handles the update of the model data based on the new origin.

virtual bool DtMapAreaSelectionHandler::isMoveableEvent ( DtTMMapArea area,
int  key 
) const
protectedvirtual

Return true if the key is a movement key.

virtual void DtMapAreaSelectionHandler::selectionChanged ( const QVector< DtModelKey > &  )
protectedvirtualslot

Called when a connected map area changes its selection.

Member Data Documentation

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().


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)