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

This handler will know how to initialize itself from a selected terrain edge (or edges) More...

Inheritance diagram for DtTerrainCreateLineHandler:
Inheritance graph
[legend]

Public Slots

virtual void clearHideSymbol (const DtSymbol *s)

Public Member Functions

 DtTerrainCreateLineHandler ()
 Default Constructor.
virtual ~DtTerrainCreateLineHandler ()
 Destructor.
- Public Member Functions inherited from DtCreateLineHandler
 DtCreateLineHandler ()
 Default Constructor.
virtual ~DtCreateLineHandler ()
 Destructor.
- Public Member Functions inherited from DtCreateControlObjectHandler
 DtCreateControlObjectHandler ()
 Default Constructor.
virtual ~DtCreateControlObjectHandler ()
 Destructor.
virtual QWidgetcreateDialog (QWidget *parent)
 Creates the dialog associated with this handler (if there is one)
virtual void setCreationObject (DtEntityMapperKey obj, int frc)
 Set the object you are creating.
virtual void setVertices (const QVector< DtPoint > &pnt)
 Sets the vertices used for creation.
virtual void setName (const QString &name)
- Public Member Functions inherited from DtCreationHandler
 DtCreationHandler ()
 Default Constructor.
virtual ~DtCreationHandler ()
 Destructor.
virtual void removeTempSymbol (DtTMMapArea *area)
virtual void setEditMode (bool b)
virtual void setModelData (DtModelData *d)
virtual void setShowDialog (DtShowDialogType type)
- Public Member Functions inherited from DtEventHandler
 DtEventHandler ()
 Default Constructor.
virtual ~DtEventHandler ()
 Destructor.
virtual void setEventController (DtEventController *)
virtual void setInitialSelection (const QVector< DtModelKey > &d)
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 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
- 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 void initDialog (QWidget *w)
 Initializes dialog with default values.
virtual QWidgetcreateWidgetFor (const DtEntityMapperKey &key, QWidget *parent)
 Override to create terrain line dialog if in terrain selection mode.
virtual void done ()
 Override to show all remaining hidden symbols.
virtual DtSymbolcreateTempSymbol (DtTMMapArea *area)
 Override to hide all current terrain edges.
- Protected Member Functions inherited from DtCreateLineHandler
virtual void initDialogConnections ()
 Uses myEventDlg pointer to init connections.
virtual void setWorkingName ()
 Sets the working name of the temp symbol.
virtual DtSymbolcreateSymbol (DtTMMapArea *area)
 Subclasses need to create temp symbol.
virtual bool finishOnCreate () const
 Return true if want to finish on create by default. Default is false.
virtual void initFreehandMode ()
 If symbol being created is in freehand mode, hide dialog and set freehand mode.
virtual bool mouseEvent (DtTMMapArea *area, QMouseEvent *evnt, const DtPoint &pnt)
 Override to check if in freehand mode, and, if so, when the mouse move event comes through, add a point.
virtual void freehandDraw (const DtPoint &pnt, bool end=false)
 Called to add the point to the line for freehand draw mode.
virtual QString workingTitle () const
 Override this method to return a different working point name than "working line".
virtual const char * eventSignalName ()
virtual void setEmitCreateSignal (bool)
 Emits signal when create, not actually do the creation. Default is false.
- Protected Member Functions inherited from DtCreateControlObjectHandler
virtual void additionalTempSymbolModifications (QPolygon &pts)
 Additional modifications to be made to the temp symbol by subclasses.
virtual void initCreateConnections ()
 Connections that are initialized when in create mode.
virtual void initEditConnections ()
 Connections that are are made when editing.
virtual void pointSelected (const DtPoint &p)
virtual void activate ()
 Called when this event handler first becomes active.
virtual void deactivate ()
 Called when we are decativated, acts as a cancel on the current event.
virtual void stop (const DtPoint &pnt)
virtual void getVertices (QVector< DtPoint > &modelPoints) const
virtual bool canPublish () const
virtual bool isPublished () const
virtual void setCaption (QWidget *w)
 Sets the caption for the dialog based on mode and type.
virtual QString defaultName () const
 Default name of any item of a particular type.
virtual void sendUserComplete (bool finish=false)
 Sends user complete message if show dialog type is Never.
virtual bool userDefinedAction (DtUserDefinedType iAction, void *usr)
virtual bool complete () const
 Returns true if the item is complete by the number of points.
virtual void disconnectDialogConnections ()
virtual void disconnectEditConnections ()
virtual void disconnectCreateConnections ()
virtual int publishedEditTimeout () const
 250 ms default, then, calls done to hide copied symbol
virtual QPixmap createCursor ()
 Creates/restores the override cusror to display that the handler is in creation mode.
virtual void dialogDestroyedEvent ()
 Called when dialog is destroyed.
- Protected Member Functions inherited from DtCreationHandler
virtual void cancel ()=0
 Handle the cancelling of this object creation.
virtual bool enterEvent (DtTMMapArea *area, QEvent *evnt)
 Handles when the mouse enters a particular map area.
virtual void switchActiveMap (DtTMMapArea *area)
 Switches to the new active map and also sets up mouse tracking by turning off from old and activating on new.
virtual void trackMouseFor (DtTMMapArea *area, bool enable)
 Enables/disables mouse tracking for requested area.
virtual void showDialog (bool b)
 Override to show dialog only is dialog show type is WhenStartCreate, else show dialog when the appropriate conditions are met.
virtual void createComplete (bool finalPointSelected)
 Called at end of creation, will let the controller know we are done.
virtual void restoreCursor ()
virtual bool keyboardEvent (DtTMMapArea *area, QKeyEvent *evnt)
 Add escape key cancel.

Protected Attributes

DtSymbolList myHiddenSymbols
 When creating a route, the route might be comprised of many symbols.
- Protected Attributes inherited from DtCreateLineHandler
bool myFreehand
bool myInFreehandDraw
- Protected Attributes inherited from DtCreateControlObjectHandler
QVector< DtPoint > myPointList
QString myObjectName
QString myLabelName
bool myFinalPointSelected
DtSymbolmyHideSymbol
DtOverlaySymbolDescriptormyDescription
bool myDeleteDescription
bool myFirstClick
DtArchivableObjectmyUserData
 Set by the dialogs, this will be passed to create and edit routines for modification.
- Protected Attributes inherited from DtCreationHandler
DtEntityMapperKey myCurrentObjectType
int myCurrentForceType
DtSymbolmyTempSymbol
DtTMMapAreamyActiveMap
bool myEditNotCreate
bool myStopped
bool myInvalid
DtModelDatamyModelData
DtShowDialogType myShowDialogType
DtTerrainModelDatamyCreatingFromTerrainData
 If non-NULL, creating this point from the supplied model data.
bool myDeactivating
bool myEmitCreateSignal
bool myCursorSet
Qt::KeyboardModifiers myKeyboardModifiers
- Protected Attributes inherited from DtEventHandler
QWidgetmyEventDlg
DtEventControllermyEventController
bool mySuspended
- Protected Attributes inherited from DtArchivableObject
DtArchivermyArchiver

Additional Inherited Members

- Signals inherited from DtCreateControlObjectHandler
void selectedPoint (const DtPoint &p)
void userComplete (bool finish)
 Emitted when the user never wants to show the dialog, will tell the dialog that is hidden that the user has complete the operation.
- Static Protected Attributes inherited from DtCreateControlObjectHandler
static QList
< DtDialogCreatorInfo * > 
myDialogCreators
 Dialog creators.
static QString theDefaultNameLabel

Detailed Description

This handler will know how to initialize itself from a selected terrain edge (or edges)

Constructor & Destructor Documentation

DtTerrainCreateLineHandler::DtTerrainCreateLineHandler ( )

Default Constructor.

virtual DtTerrainCreateLineHandler::~DtTerrainCreateLineHandler ( )
virtual

Destructor.

Member Function Documentation

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

Static creator.

Reimplemented from DtCreateLineHandler.

virtual void DtTerrainCreateLineHandler::clearHideSymbol ( const DtSymbol s)
virtualslot
virtual void DtTerrainCreateLineHandler::initDialog ( QWidget w)
protectedvirtual

Initializes dialog with default values.

Reimplemented from DtCreateLineHandler.

virtual QWidget* DtTerrainCreateLineHandler::createWidgetFor ( const DtEntityMapperKey key,
QWidget parent 
)
protectedvirtual

Override to create terrain line dialog if in terrain selection mode.

Reimplemented from DtCreateControlObjectHandler.

virtual void DtTerrainCreateLineHandler::done ( )
protectedvirtual

Override to show all remaining hidden symbols.

Reimplemented from DtCreateControlObjectHandler.

virtual DtSymbol* DtTerrainCreateLineHandler::createTempSymbol ( DtTMMapArea area)
protectedvirtual

Override to hide all current terrain edges.

Reimplemented from DtCreateControlObjectHandler.

Member Data Documentation

DtSymbolList DtTerrainCreateLineHandler::myHiddenSymbols
protected

When creating a route, the route might be comprised of many symbols.

This list will contain all the symbols hidden when the create dialog is brought up


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)