![]() |
VR-Forces 4.1 Class Documentation
|
This handler will allow users to click on knobs on line symbols to change the shape of those symbols. More...

Public Slots | |
| virtual void | done () |
| Called when done editing symbol (either from accept or cancel) | |
| virtual void | processAddPoint () |
| Add a point on the current selected line, at the current selected segment, at the last point selected on the line. | |
| virtual void | processAddPoint (DtTMMapArea *area, DtLineSymbol *line, const DtPoint &pnt) |
| virtual void | processDeletePoint () |
| Delete the currently selected point on the currently selected line. | |
| virtual bool | mouseEvent (DtTMMapArea *area, QMouseEvent *evnt, const DtPoint &pnt) |
| virtual bool | keyboardEvent (DtTMMapArea *area, QKeyEvent *evnt) |
| virtual bool | deleteSelectedPoint (DtTMMapArea *area) |
| Deletes the selected point of the line. | |
| virtual void | moveSelectedPointBy (DtTMMapArea *area, DtModelData *data, const DtPoint &delta) |
| Given the model data and map area, find the line symbol and selected point, and move it by the delta amount. | |
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 | 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 () |
Public Member Functions | |
| DtVertexEditorHandler () | |
| Default Constructor. | |
| virtual | ~DtVertexEditorHandler () |
| Destructor. | |
| virtual bool | canAddPointTo (DtTMMapArea *area, DtSymbol *symbol) |
| virtual bool | canDeletePoint (DtTMMapArea *area, DtSymbol *symbol) |
| Returns true as to whether or not the currently selected point can be deleted. | |
| virtual bool | canMovePoint (DtTMMapArea *area, DtSymbol *line) |
| Returns true if the point can be moved. | |
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 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 | 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 |
| 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 | moveSelectedPointTo (DtTMMapArea *area, const QPoint &pnt, const DtPoint &dbPoint) |
| Moves the selected point of the symbol being edited to the new location. | |
| virtual void | cancelMove () |
| Restores backup data. | |
| virtual void | acceptMove (const QPoint &pnt, const DtPoint &dbPoint) |
| Accepts move. | |
| virtual bool | completeMove (const QPoint &pnt, const DtPoint &dbPoint) |
| Called before any temp symbols are removed from the screen, use this routine to complete a move without removing any temp symbols. | |
| virtual DtSymbol * | getWorkingSymbol (DtTMMapArea *area, const DtPoint *atLocation=NULL) const |
| Returns the symbol we want to work with. | |
| virtual DtSymbol * | getWorkingSymbol (DtSymbol *symbol) const |
| virtual DtModelData * | getModelData (DtTMMapArea *area) const |
| virtual DtSymbol * | getEditingSymbol (DtTMMapArea *area, const DtPoint *atLocation=NULL) const |
| Returns the first symbol in the selected list of the supplied map area. | |
| virtual void | createTempSymbol (DtTMMapArea *area) |
| Creates and displays a temp symbol to edit. | |
| virtual void | removeTempSymbol (DtTMMapArea *area) |
| Creates and removes the symbol that will follow the cursor on creation. | |
| virtual DtSymbol * | createSymbol (DtTMMapArea *area) |
| Creates the symbol that will be used as a temp symbol. | |
| virtual bool | initializeEdit (DtTMMapArea *area) |
| Initializes internal symbols for editing. | |
| virtual void | addPointTo (DtLineSymbol *symbol, const QPoint &pos) |
| Returns true if a point can be added to the supplied symbol. | |
| virtual int | timeout () const |
| Return the amount of miliseconds to wait before removing temp symbol and replacing with working symbol. | |
| virtual void | modifyPoint (const DtModelData &data, DtPoint &pnt) |
| Override to modify the point before adding to model data. | |
| virtual void | clearTimer () |
Protected Attributes | |
| DtSymbol * | myTempSymbol |
| DtTMMapArea * | myActiveMap |
| DtSymbol * | myWorkingSymbol |
| DtModelData * | myModelData |
| bool | myAddingPoint |
| QTimer * | myAcceptTimer |
Protected Attributes inherited from DtEventHandler | |
| QWidget * | myEventDlg |
| DtEventController * | myEventController |
| bool | mySuspended |
Protected Attributes inherited from DtArchivableObject | |
| DtArchiver * | myArchiver |
Additional Inherited Members | |
Signals inherited from DtEventHandler | |
| void | closedDialog () |
This handler will allow users to click on knobs on line symbols to change the shape of those symbols.
Only one knob can be selected at any given time, so this handler will only work with the first item in the current selection
| DtVertexEditorHandler::DtVertexEditorHandler | ( | ) |
Default Constructor.
|
virtual |
Destructor.
|
virtual |
|
virtual |
Returns true as to whether or not the currently selected point can be deleted.
|
virtual |
Returns true if the point can be moved.
|
static |
Static creator.
|
virtualslot |
Called when done editing symbol (either from accept or cancel)
|
virtualslot |
Add a point on the current selected line, at the current selected segment, at the last point selected on the line.
|
virtualslot |
|
virtualslot |
Delete the currently selected point on the currently selected line.
|
virtualslot |
|
virtualslot |
|
virtualslot |
Deletes the selected point of the line.
|
virtualslot |
Given the model data and map area, find the line symbol and selected point, and move it by the delta amount.
|
protectedvirtual |
Moves the selected point of the symbol being edited to the new location.
|
protectedvirtual |
Restores backup data.
|
protectedvirtual |
Accepts move.
|
protectedvirtual |
Called before any temp symbols are removed from the screen, use this routine to complete a move without removing any temp symbols.
|
protectedvirtual |
Returns the symbol we want to work with.
If atLocation is not NULL and the map area does not have any symbols selected, asks the map area what would be selected under that point
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Returns the first symbol in the selected list of the supplied map area.
|
protectedvirtual |
Creates and displays a temp symbol to edit.
|
protectedvirtual |
Creates and removes the symbol that will follow the cursor on creation.
|
protectedvirtual |
Creates the symbol that will be used as a temp symbol.
|
protectedvirtual |
Initializes internal symbols for editing.
|
protectedvirtual |
Returns true if a point can be added to the supplied symbol.
|
protectedvirtual |
Return the amount of miliseconds to wait before removing temp symbol and replacing with working symbol.
|
protectedvirtual |
Override to modify the point before adding to model data.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |