![]() |
VR-Forces 4.1 Class Documentation
|
This handler will know how to initialize itself from a selected terrain edge (or edges) More...

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 QWidget * | createDialog (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 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 | 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 |
| 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 Member Functions | |
| virtual void | initDialog (QWidget *w) |
| Initializes dialog with default values. | |
| virtual QWidget * | createWidgetFor (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 DtSymbol * | createTempSymbol (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 DtSymbol * | createSymbol (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. | |
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 |
This handler will know how to initialize itself from a selected terrain edge (or edges)
| DtTerrainCreateLineHandler::DtTerrainCreateLineHandler | ( | ) |
Default Constructor.
|
virtual |
Destructor.
|
static |
Static creator.
Reimplemented from DtCreateLineHandler.
|
virtualslot |
|
protectedvirtual |
Initializes dialog with default values.
Reimplemented from DtCreateLineHandler.
|
protectedvirtual |
Override to create terrain line dialog if in terrain selection mode.
Reimplemented from DtCreateControlObjectHandler.
|
protectedvirtual |
Override to show all remaining hidden symbols.
Reimplemented from DtCreateControlObjectHandler.
|
protectedvirtual |
Override to hide all current terrain edges.
Reimplemented from DtCreateControlObjectHandler.
|
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