![]() |
VR-Forces 4.2 Class Documentation
|
This handler creates entities. More...

Public Slots | |
| virtual bool | mouseEvent (DtTMMapArea *area, QMouseEvent *evnt, const DtPoint &pnt) |
| virtual void | stop (const DtPoint &p) |
| virtual void | updateTempSymbol ()=0 |
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 | 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 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 () |
Signals | |
| void | creationSignal (const DtString &name, const DtEntityMapperKey &type, const DtList &vertices, const DtString &label, int appearance, int force, bool projection, bool closedFigure, DtReal heading, bool createSubObjects, DtSymbol *tempSymbol) |
| Both signals are emitted if myEmitCreateSignal is true. | |
| void | editSignal (const DtString &name, const DtEntityMapperKey &type, const DtList &vertices, const DtString &label, int appearance, int force, DtReal heading, DtSymbol *tempSymbol) |
Signals inherited from DtEventHandler | |
| void | closedDialog () |
Public Member Functions | |
| DtCreationHandler () | |
| Default Constructor. | |
| virtual | ~DtCreationHandler () |
| Destructor. | |
| virtual void | setCreationObject (DtEntityMapperKey obj, int frc) |
| Set the object you are creating. | |
| virtual void | activate () |
| Called when this event handler first becomes active. | |
| virtual DtSymbol * | createTempSymbol (DtTMMapArea *area) |
| Creates and removes the symbol that will follow the cursor on creation. | |
| virtual void | removeTempSymbol (DtTMMapArea *area) |
| virtual void | setEditMode (bool b) |
| virtual void | setModelData (DtModelData *d) |
| virtual void | setShowDialog (DtShowDialogType type) |
| virtual void | setEmitCreateSignal (bool) |
| Emits signal when create, not actually do the creation. Default is false. | |
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 * | createDialog (QWidget *w) |
| Creates the dialog associated with this handler (if there is one) | |
| 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 |
| 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 |
| 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. | |
Protected Member Functions | |
| virtual DtSymbol * | createSymbol (DtTMMapArea *area)=0 |
| Subclasses need to create temp symbol. | |
| virtual void | pointSelected (const DtPoint &p)=0 |
| 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 | deactivate () |
| Called when we are decativated, acts as a cancel on the current event. | |
| 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 QPixmap | createCursor () |
| Creates/restores the override cusror to display that the handler is in creation mode. | |
| virtual void | restoreCursor () |
| virtual bool | keyboardEvent (DtTMMapArea *area, QKeyEvent *evnt) |
| Add escape key cancel. | |
Protected Attributes | |
| DtEntityMapperKey | myCurrentObjectType |
| int | myCurrentForceType |
| DtSymbol * | myTempSymbol |
| DtTMMapArea * | myActiveMap |
| bool | myEditNotCreate |
| bool | myStopped |
| bool | myInvalid |
| DtModelData * | myModelData |
| DtShowDialogType | myShowDialogType |
| DtTerrainModelData * | myCreatingFromTerrainData |
| 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 | |
| QWidget * | myEventDlg |
| DtEventController * | myEventController |
| bool | mySuspended |
Protected Attributes inherited from DtArchivableObject | |
| DtArchiver * | myArchiver |
This handler creates entities.
| DtCreationHandler::DtCreationHandler | ( | ) |
Default Constructor.
|
virtual |
Destructor.
|
virtual |
Set the object you are creating.
Reimplemented in DtCreateControlObjectHandler.
|
virtual |
Called when this event handler first becomes active.
Reimplemented from DtEventHandler.
Reimplemented in DtCreateControlObjectHandler, and DtTerrainCreatePointHandler.
|
virtual |
Creates and removes the symbol that will follow the cursor on creation.
Reimplemented in DtCreateControlObjectHandler, and DtTerrainCreateLineHandler.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Emits signal when create, not actually do the creation. Default is false.
Reimplemented in DtCreateLineHandler, and DtCreatePointHandler.
References myEmitCreateSignal.
|
virtualslot |
Reimplemented in DtCreateLineHandler.
|
virtualslot |
Reimplemented in DtCreateControlObjectHandler.
|
pure virtualslot |
|
signal |
Both signals are emitted if myEmitCreateSignal is true.
|
signal |
|
protectedpure virtual |
Subclasses need to create temp symbol.
Implemented in DtCreateControlObjectHandler, DtCreateLineHandler, and DtCreatePointHandler.
|
protectedpure virtual |
Implemented in DtCreateControlObjectHandler, and DtCreatePointHandler.
|
protectedpure virtual |
Handle the cancelling of this object creation.
|
protectedvirtual |
Handles when the mouse enters a particular map area.
If the area is different than the current active map, we need to change where the temp symbol is displayed
Reimplemented from DtEventHandler.
|
protectedvirtual |
Switches to the new active map and also sets up mouse tracking by turning off from old and activating on new.
|
protectedvirtual |
Enables/disables mouse tracking for requested area.
|
protectedvirtual |
Called when we are decativated, acts as a cancel on the current event.
Reimplemented from DtEventHandler.
Reimplemented in DtCreateControlObjectHandler.
|
protectedvirtual |
Override to show dialog only is dialog show type is WhenStartCreate, else show dialog when the appropriate conditions are met.
Reimplemented from DtEventHandler.
|
protectedvirtual |
Called at end of creation, will let the controller know we are done.
|
protectedvirtual |
Creates/restores the override cusror to display that the handler is in creation mode.
Reimplemented in DtCreateControlObjectHandler.
|
protectedvirtual |
|
protectedvirtual |
Add escape key cancel.
Reimplemented from DtEventHandler.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
If non-NULL, creating this point from the supplied model data.
|
protected |
|
protected |
Referenced by setEmitCreateSignal().
|
protected |
|
protected |