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

This is for the navigation types that are shared between menus and navigation items. More...

Inheritance diagram for DtNavigationHandler:
Inheritance graph
[legend]

Public Slots

virtual bool mouseEvent (DtTMMapArea *, QMouseEvent *evnt, const DtPoint &pnt)
virtual bool keyboardEvent (DtTMMapArea *area, QKeyEvent *evnt)
virtual void timedPan ()
- Public Slots inherited from DtEventHandler
virtual bool mouseEvent (DtTMMapArea *, QMouseEvent *evnt, const DtPoint &pnt)
virtual bool keyboardEvent (DtTMMapArea *, QKeyEvent *evnt)
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 mapActivated (DtTMMapArea *area)
virtual bool selectedModelDataUpdated (DtTMMapArea *area)
virtual bool symbolAdded (DtTMMapArea *area, const DtModelKey &)
virtual bool symbolRemoved (DtTMMapArea *area, const DtModelKey &)
virtual bool disconnecting (DtTMMapArea *area)
 Called when a map is being disconnect from an event handler.
virtual bool connecting (DtTMMapArea *area)
 Called when a map is being connected to an event handler.
virtual void tick ()
virtual void clearDialog ()

Public Member Functions

 DtNavigationHandler ()
 Default Constructor.
virtual ~DtNavigationHandler ()
 Destructor.
virtual bool aboutToDraw (DtTMMapArea *area, QPainter *pix)
virtual bool userDefinedAction (DtUserDefinedType iAction, void *usr)
- 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 Member Functions

virtual bool processNavigationKey (DtTMMapArea *area, int key, int state)
 Switch statement to process navigation keypresses.
virtual void mouseZoom (DtTMMapArea *area, QMouseEvent *e)
virtual void reorderRectangle (QRect &rect)
virtual void resizeRectToFitAspectRatio (QRect &r, const double &ratio)
virtual void resizeRectToFitAspectRatio (DtExtent &ext, DtTMViewportExtents *extents)
virtual void resizeRectToFitAspectRatioFromCenter (DtExtent &ext, DtTMViewportExtents *extents)
virtual DtExtent zoom (const DtExtent &ext, double mag) const
virtual void zoomToExtent (DtTMMapArea *area)
virtual DtExtent getZoomExtentRect (DtTMMapArea *area, const DtModelData *d) const
 Extent must be in database coordinates.
virtual void zoomToExtent (DtTMMapArea *area, const QRect &rect)
virtual DtExtent convertRectToExtent (DtTMMapArea *area, const QRect &rect) const
virtual void setCursor (QEvent *)
 Sets the cursor based on the event.

Protected Attributes

DtUserDefinedType myNavigationDirection
QTimer myPanTimer
bool myShiftTracking
QPoint myMouseBegin
QPoint myMouseLast
DtTMAreamyTimerMap
int myKey
int myState
bool myLeftButton
bool myMouseShiftMap
bool myInMapShiftMode
DtPoint myMapBegin
DtPoint myMapLast
- Protected Attributes inherited from DtEventHandler
QWidgetmyEventDlg
DtEventControllermyEventController
bool mySuspended
- Protected Attributes inherited from DtArchivableObject
DtArchivermyArchiver

Additional Inherited Members

- Signals inherited from DtEventHandler
void closedDialog ()

Detailed Description

This is for the navigation types that are shared between menus and navigation items.

Constructor & Destructor Documentation

DtNavigationHandler::DtNavigationHandler ( )

Default Constructor.

virtual DtNavigationHandler::~DtNavigationHandler ( )
virtual

Destructor.

Member Function Documentation

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

Static creator.

Reimplemented in DtTerrainNavigationHandler.

virtual bool DtNavigationHandler::aboutToDraw ( DtTMMapArea area,
QPainter *  pix 
)
virtual

Reimplemented from DtEventHandler.

virtual bool DtNavigationHandler::userDefinedAction ( DtUserDefinedType  iAction,
void *  usr 
)
virtual

Reimplemented from DtEventHandler.

Reimplemented in DtTerrainNavigationHandler.

virtual bool DtNavigationHandler::mouseEvent ( DtTMMapArea ,
QMouseEvent *  evnt,
const DtPoint &  pnt 
)
virtualslot
virtual bool DtNavigationHandler::keyboardEvent ( DtTMMapArea area,
QKeyEvent *  evnt 
)
virtualslot
virtual void DtNavigationHandler::timedPan ( )
virtualslot
virtual bool DtNavigationHandler::processNavigationKey ( DtTMMapArea area,
int  key,
int  state 
)
protectedvirtual

Switch statement to process navigation keypresses.

virtual void DtNavigationHandler::mouseZoom ( DtTMMapArea area,
QMouseEvent *  e 
)
protectedvirtual
virtual void DtNavigationHandler::reorderRectangle ( QRect &  rect)
protectedvirtual
virtual void DtNavigationHandler::resizeRectToFitAspectRatio ( QRect &  r,
const double &  ratio 
)
protectedvirtual
virtual void DtNavigationHandler::resizeRectToFitAspectRatio ( DtExtent &  ext,
DtTMViewportExtents extents 
)
protectedvirtual
virtual void DtNavigationHandler::resizeRectToFitAspectRatioFromCenter ( DtExtent &  ext,
DtTMViewportExtents extents 
)
protectedvirtual
virtual DtExtent DtNavigationHandler::zoom ( const DtExtent &  ext,
double  mag 
) const
protectedvirtual
virtual void DtNavigationHandler::zoomToExtent ( DtTMMapArea area)
protectedvirtual
virtual DtExtent DtNavigationHandler::getZoomExtentRect ( DtTMMapArea area,
const DtModelData d 
) const
protectedvirtual

Extent must be in database coordinates.

virtual void DtNavigationHandler::zoomToExtent ( DtTMMapArea area,
const QRect &  rect 
)
protectedvirtual
virtual DtExtent DtNavigationHandler::convertRectToExtent ( DtTMMapArea area,
const QRect &  rect 
) const
protectedvirtual
virtual void DtNavigationHandler::setCursor ( QEvent *  )
protectedvirtual

Sets the cursor based on the event.

Member Data Documentation

DtUserDefinedType DtNavigationHandler::myNavigationDirection
protected
QTimer DtNavigationHandler::myPanTimer
protected
bool DtNavigationHandler::myShiftTracking
protected
QPoint DtNavigationHandler::myMouseBegin
protected
QPoint DtNavigationHandler::myMouseLast
protected
DtTMArea* DtNavigationHandler::myTimerMap
protected
int DtNavigationHandler::myKey
protected
int DtNavigationHandler::myState
protected
bool DtNavigationHandler::myLeftButton
protected
bool DtNavigationHandler::myMouseShiftMap
protected
bool DtNavigationHandler::myInMapShiftMode
protected
DtPoint DtNavigationHandler::myMapBegin
protected
DtPoint DtNavigationHandler::myMapLast
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)