![]() |
VR-Forces 4.1.1 Class Documentation
|

Public Slots | |
| virtual void | zoomIn () |
| virtual void | zoomOut () |
| virtual void | resetToGlobalView () |
| virtual void | panNorth () |
| virtual void | panNortheast () |
| virtual void | panEast () |
| virtual void | panSoutheast () |
| virtual void | panSouth () |
| virtual void | panSouthwest () |
| virtual void | panWest () |
| virtual void | panNorthwest () |
| virtual void | setShowBoundingBoxes (bool) |
| virtual void | setSnapToGrid (bool) |
Public Slots inherited from DtTMMapArea | |
| virtual void | zoomIn () |
| Zooms in tdb view, emits tdbViewChanged, and updates. | |
| virtual void | zoomOut () |
| Zooms out tdb view, emits tdbViewChanged, and updates. | |
| virtual void | drawRubberBands (QPainter *p) |
| virtual void | clearSelection (bool signal=true) |
| virtual void | changeSelection (const QVector< DtModelKey > &d) |
| virtual bool | addSelection (const QVector< DtModelKey > &d) |
| Adds these keys to the selection list if they are not there already. | |
| virtual bool | removeSelection (const QVector< DtModelKey > &d) |
| Removes these keys from the selection list if they are in it. | |
| virtual void | setRightClickMaintainSelection (bool b) |
| virtual bool | rightClickMaintainSelection () |
| virtual void | forcePersistentSymbol (DtSymbol *s) |
| virtual void | stopForcePersistentSymbol (DtSymbol *s) |
| virtual void | catchViewportChange (const DtTMViewportExtents *v) |
| virtual bool | dragStart () |
| Called when a drag/drop operation is about to start. | |
| virtual void | dragComplete () |
| Called when a drag/drop operation is complete, regardless of the success of the operation. | |
| virtual void | setFreezeSelection (bool) |
| Sets whether or not to freeze current selection regardless of any type of change made. | |
| bool | freezeSelection () const |
Public Slots inherited from DtTMArea | |
| virtual void | loadDatabaseFile (const QString &) |
| virtual bool | updateAllSymbols () |
| Go through the list of symbols that we have marked for update and update them. | |
| virtual void | updateBackground () |
| virtual void | resizeMapArea () |
| virtual DtSymbol * | addSymbol (const DtModelData &data, bool force=false) |
| virtual void | removeSymbol (const DtModelKey &data, bool force=false) |
| virtual void | setDrawOrderSymbols (bool b) |
| Set to true to draw order symbols on the next tick. | |
| virtual void | signalDrawOrderSymbols () |
| Signals to draw order the symbols on the next tick. | |
| virtual void | drawOrderSymbols () |
| Draw order symbols if at least one first/last draw by having lens area draw order symbols. | |
Signals | |
| void | edit () |
| void | expand () |
| void | collapse () |
| void | setFormation () |
| void | formationModified () |
Signals inherited from DtTMMapArea | |
| void | leftDoubleClick () |
| void | symbolsSelected (DtSymbolList *) |
| void | selectionChanged (const QVector< DtModelKey > &) |
| void | selectionUpdated (const QVector< DtModelKey > &) |
| void | databasePointSelected (const DtPoint &) |
| void | nullSelected () |
| void | rightMouseContext (DtSymbolList *, QPoint) |
| void | middleMouseContext (DtSymbolList *, QPoint) |
| void | mouseSignal (QMouseEvent *, const DtPoint &) |
| Sent whenever a mouse event happens. | |
| void | keyboardSignal (QKeyEvent *) |
| Sent whenever a key event happens. | |
| void | focusEventSignal (QEvent *) |
| Sent whenever a you leave the focus area. | |
| void | enterEventSignal (QEvent *) |
| void | leaveEventSignal (QEvent *) |
| void | activateMap (DtTMMapArea *) |
| void | dropEventSignal (QDropEvent *) |
| void | dragEnterEventSignal (QDragEnterEvent *) |
| void | dragLeaveEventSignal (QDragLeaveEvent *) |
| void | dragMoveEventSignal (QDragMoveEvent *) |
| void | selectionInProgress (DtSymbolSelector &symbolSelector) |
| Sent whenever a selection is in process (i.e. before mouse is released) | |
| void | selectedModelDataUpdated () |
| Sent whenever the selected model data is updated. | |
| void | aboutToDraw (QPainter *map) |
| Sent when the lens area is about to draw. | |
| void | selectionModeChanged (int iNewMode) |
| Sent when the selection mode has changed. | |
| void | frozenChanged (bool) |
| Emitted when frozen selection changes. | |
Signals inherited from DtTMArea | |
| void | viewportExtentsSet (const DtTMViewportExtents *v) |
| Called after setTdbView. | |
| void | viewportExtentsChanged (const DtTMViewportExtents *v) |
| Called after internally changing tdb view. | |
| void | newDatabaseFile (const QString &) |
| void | removingSymbol (const DtModelKey &data) |
| Called when removing, adding or modifying a symbol. | |
| void | addingSymbol (const DtModelKey &data) |
| void | modifyingSymbol (const DtModelKey &data) |
| void | resized () |
| Sent when this area has resized. | |
| void | modelDataMarkedForUpdated (const DtModelData &d) |
| void | modelDataRemovedFromUpdate (const DtModelData &) |
Public Member Functions | |
| DtFormationEditor (QWidget *p) | |
| virtual | ~DtFormationEditor () |
| virtual bool | init (const DtTMFactory *, const DtString &subObjName) |
| virtual void | setSubordinatesList (DtVrfObjectParameters *, DtVrfSubObjectParameterList *) |
| Sets up subordinate list and creates hierarchy. | |
| virtual void | setForceId (DtForceType id) |
| Sets internal variable and all existing model data to force type (as well as marking all the data for update) | |
| virtual void | setFormation (const QString &) |
| Sets the formation. If formation table is also set, redisplays the entities in new formation. | |
| virtual void | setFormationTable (DtFormationTable *) |
| Sets the formation table. Will reset the entities if there is a formation set. | |
| virtual void | setExpanded (const DtModelKey &key, bool expand) |
| Expands/collapses items. | |
| virtual void | expandPath (const QStringList &, bool expand) |
| Expands out the path. | |
| virtual void | selectPath (const QString &) |
| Selects the item at the end of the path. View must be expanded to see it. | |
| virtual QString | selectionPath (const DtModelKey &) const |
| Returns a path to the specified key. | |
| virtual QString | selectionPath () const |
| Returns path to current selection. | |
| virtual DtObjectType | selectedObjectType () const |
| virtual DtFormationModelData * | rootNode () const |
| virtual DtFormationModelData * | selectedModelData () const |
| virtual void | markAllForUpdate () |
| virtual void | removeFormationEntry (DtFormationEntry *) |
| Removes the formation entry and updates the display. | |
| virtual DtExtent | extent () const |
| Returns the root node extent. | |
| virtual int | promotionIdAt (int) const |
| Returns the promotion id at the given index of child of the root node. | |
| virtual void | repositionInFormation (int iFrom, int iTo) |
| virtual void | replaceObjectInFormation (int iPos) |
| virtual void | addObjectTypeAtPosition (DtVrfSubObjectParameterEntry *entry, int pos, bool addAtPos=true) |
| Adds a new item to be edited at the specified position. | |
| virtual int | nestingLevel () const |
| Returns the expansion level being displayed. | |
| virtual void | setNestingLevel (int) |
| virtual bool | canExpand () const |
| Returns true if there is more to be expanded from any subordinate. | |
| virtual void | collapseAllOneLevel () |
| virtual void | expandAllOneLevel () |
| virtual void | toggleBoundingBoxes () |
| virtual void | toggleSnapToGrid () |
| bool | snapToGrid () const |
| bool | showBoundingBoxes () const |
| virtual void | setScaleFactor (double) |
| virtual double | scaleFactor () const |
Public Member Functions inherited from DtTMMapArea | |
| DtTMMapArea (QWidget *parent=0, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtTMMapArea () |
| virtual bool | init (const DtTMFactory *f) |
| Initializer. MUST BE CALLED. | |
| virtual void | setSelectorType (DtSymbolSelector::DtSelectorType type) |
| virtual DtSymbolSelector & | symbolSelector () |
| virtual DtSymbolList & | selectedSymbols () |
| virtual const QVector < DtModelKey > & | selectedModelKeys () const |
| Returns mySelectedModelKeys. | |
| virtual QVector< DtModelKey > & | selectedModelKeys () |
| virtual bool | leftButtonClicked () |
| virtual double | getDatabaseHeight (double x, double y) const |
| virtual bool | tick () |
| Check to see if need to draw order. | |
| virtual void | setActivateMap () |
| Activate the map. | |
| virtual void | updateSelectedModelData () |
| virtual void | setResetLabelPositions (bool b) |
| Signal to tell the symbol updater to reset label positions (or not) on next tick. | |
| virtual void | clear () |
| Clears out selected symbols and drawn symbols. | |
| virtual void | removeFromPersistentData (const QString &key) |
| virtual void | applyOptions (DtSymbol *s) |
| This routine will ask the symbol updater to apply the options for the supplied symbol. | |
| DtObjectSelector * | objectSelector () |
| virtual bool | startNullSelectionMode (bool showHandCursor=false) |
| Routines that will allow certain valid selections on the map area Start null selection mode. | |
| virtual bool | startNormalSelectionMode () |
| Start normal selection mode. | |
| virtual bool | startSymbolPointSelectionMode (int selectionMode, bool showHandCursor=false, bool reset=false, bool backup=true, bool force=false) |
| virtual bool | startSymbolRectangleSelectionMode (int selectionMode, bool showHandCursor=false, bool reset=false, bool backup=true, bool force=false) |
| virtual bool | startSelectionMode (int selectionMode, DtSymbolSelector::DtSelectorType type, bool showHandCursor=false, bool reset=false, bool backup=true, bool force=false) |
| General selection function. | |
| virtual void | swapModelKeys (QVector< DtModelKey > &orig, QVector< DtModelKey > &save, QVector< DtModelKey > &display) |
| virtual int | symbolSelectionMode () const |
| const DtPoint & | lastSelectedPoint () const |
| virtual void | removeSymbol (const DtModelData &data, bool force) |
| Removes the symbol from the map area and from any internal selected lists. | |
| virtual DtSymbolSelector * | setCurrentSelector (DtSymbolSelector *s) |
| Returns the current symbol selector after setting to new selector. | |
| virtual DtSymbolSelector * | currentSelector () |
| virtual void | setObjectSelectionMode (const DtFilter *f=NULL, bool swapKeys=false) |
| Selection modes. | |
| virtual bool | inObjectSelectionMode () const |
| Returns true if this area is in object selection mode. | |
| virtual DtSymbol * | symbolAtLocation (const DtPoint &pnt) const |
| Asks the object selector (if it exists) to return the symbol at the specified database location. | |
| virtual bool | event (QEvent *) |
| Only exposed for public access. | |
Public Member Functions inherited from DtTMArea | |
| DtTMArea (QWidget *parent=0, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtTMArea () |
| virtual void | setSymbolMapper (DtBaseSymbolMapper *mapper) |
| virtual DtBaseSymbolMapper * | getSymbolMapper () |
| virtual DtTMSymbolUpdater * | symbolUpdater () |
| virtual DtTMViewportExtents * | viewportExtents () const |
| Gets the current viewport extents. | |
| virtual DtViewDriver * | viewDriver () const |
| Gets the current view driver. | |
| virtual void | setViewDriver (DtViewDriver *v) |
| Sets the current view driver. | |
| virtual DtTMBackground * | background () const |
| Gets the current background. | |
| virtual void | setBackground (DtTMBackground *v) |
| Sets the current background. | |
| virtual void | setSymbolLensArea (DtSymbolLensArea *area) |
| virtual DtSymbolLensArea * | symbolLensArea () |
| virtual bool | isInitialized () |
| virtual DtModelDataDict & | ModelDataDict () |
| Returns the local list of Symbol Datas. | |
| virtual DtModelDataIter * | ModelDataIter () const |
| Returns the local list of Symbol Datas. | |
| virtual DtModelDataIter * | CombinedModelDataIter () const |
| Returns the combined list of global application and local model data. | |
| virtual void | setUpdateOnTick (bool b) |
| Set the fact that this area will also refresh its display on a tick. | |
| virtual void | markForUpdate (const QVector< DtModelKey > &, bool emitSignal=true) |
| Copy the model data from the supplied list to our internal update list that will be updated on the next call to updateAllSymbols. | |
| virtual void | markForUpdate (DtModelDataIter *iter, bool emitSignal=true) |
| virtual void | markForUpdate (const DtModelData &data, bool emitSignal=true) |
| virtual void | removeFromUpdate (DtModelDataIter *iter) |
| Call these to remove model datas for update. | |
| virtual void | removeFromUpdate (const DtModelData &data) |
| virtual void | removeDictionaryEntry (const DtModelKey &key) |
| Removes this entry from the local dictionary. | |
| virtual void | setUpdateBackgroundOnTick (bool b) |
| Set to true to call updateBackground on next tick. | |
| void | setNextTickIsRepaint (bool b) |
| Set to have the next update (if the area is updated in a tick) to be a repaint rather than an update. | |
| bool | nextTickIsRepaint () const |
| virtual bool | needsTick () const |
| Return true if this area needs to be ticked. | |
| virtual bool | needsUpdate () const |
| Return true if this area needs update because myUpdateData.count() is not zero. | |
| virtual DtSymbol * | addSymbol (const DtModelData &data, DtSymbol *symbol) |
| Adds a new symbol with the associated model data to the map area. | |
| virtual void | read (QTextStream &ts) |
| Archival operators. | |
| virtual void | write (QTextStream &ts) |
| virtual void | clearSymbols () |
| virtual void | setForceTickOnViewportChange (bool b) |
| Set this to true to force a tick when the viewport has changed (to speed drawing on map areas). | |
| virtual bool | forceTickOnViewportChange () const |
| virtual void | paint (QPainter *painter, bool paintBackground=true) |
| Draw to the supplied device. Draws the background (if specified) and the lens area. | |
| virtual void | redrawBackground () |
| virtual DtSymbol * | getSymbol (const DtModelKey &) const |
| Returns a symbol from the view driver for the given model key (if exists) | |
| void | setAlwaysResizeToGlobalView (bool) |
| If true, when map area is resized, always go back to global view. | |
| bool | alwaysResizeToGlobalView () const |
| void | setWindow (DtBaseWindow *) |
| DtBaseWindow * | window () const |
| virtual bool | needsDrawOrder () const |
| Return true/false depending on whether or not the area cares about draw ordering symbols. | |
| virtual void | insertIntoDrawOrder (DtSymbol *) |
| Insert symbol into lens area draw order. | |
Protected Slots | |
| virtual void | viewportExtentsChanged () |
| virtual void | mouseEvent (QMouseEvent *, const DtPoint &) |
| virtual void | keyboardEvent (QKeyEvent *) |
| virtual void | redoAggregateLayering () |
| virtual void | drawGridLines (QPainter *) |
| virtual void | postDraw (QPainter *) |
| virtual void | rightMouseContext (DtSymbolList *, QPoint) |
Protected Member Functions | |
| virtual void | showEvent (QShowEvent *) |
| virtual DtFormationSymbolFilter * | createFilter (DtTMArea *) |
| virtual DtFormationHierarchy * | createHierarchy () |
| virtual DtFormationModelData * | createFormationModelData (DtVrfSubObjectParameterList *, DtVrfSubObjectParameterEntry *) |
| virtual DtFormationSymbolMapper * | createSymbolMapper () |
| virtual DtFormationSymbolUpdater * | createSymbolUpdater () |
| virtual DtFormationGridLineDrawer * | createGridLineDrawer () |
| virtual DtFormationRightClickMenu * | createFormationRightClickMenu () |
| virtual void | createHierarchy (DtFormationModelData *) |
| virtual void | createHierarchy (DtFormationModelData *, DtVrfSubObjectParameterEntry *subEntry) |
| virtual void | setupFormation () |
| Does the work of laying out the entities and setting the canvas to the correct formation size. | |
| virtual DtFormationModelData * | dataFromPath (const QStringList &) const |
| virtual void | dragLeaveEvent (QDragLeaveEvent *e) |
| virtual void | dragMoveEvent (QDragMoveEvent *e) |
| virtual void | dragEnterEvent (QDragEnterEvent *e) |
| Drag/Drop code. | |
| virtual void | dropEvent (QDropEvent *e) |
| virtual bool | terrainLoaded () const |
| virtual void | resizeEvent (QResizeEvent *e) |
| Resize event. | |
| virtual void | removeModelDataEntry (DtFormationModelData *fmd) |
Protected Member Functions inherited from DtTMMapArea | |
| virtual void | setViewportExtents (const DtTMViewportExtents *v) |
| virtual void | modifySymbol (const DtModelData &data) |
| virtual bool | initViewDriver (const DtTMFactory *f) |
| virtual bool | initObjectSelector (const DtTMFactory *f) |
| virtual void | updateSymbolSelection (Qt::KeyboardModifiers keyState, Qt::MouseButtons mouseState, bool updateInternalSelection=true) |
| virtual void | updateSelectedSymbols (const QVector< DtModelKey > &selectedKeys) |
| virtual void | updatePersistentModelData () |
| virtual void | highlightNoSymbols () |
| virtual void | highlightSymbols (QVector< DtModelKey > *display=NULL) |
| virtual void | mousePressEvent (QMouseEvent *e) |
| Event overloads. | |
| virtual void | mouseReleaseEvent (QMouseEvent *e) |
| virtual void | mouseMoveEvent (QMouseEvent *e) |
| virtual void | mouseDoubleClickEvent (QMouseEvent *e) |
| virtual void | keyPressEvent (QKeyEvent *e) |
| virtual void | keyReleaseEvent (QKeyEvent *e) |
| virtual void | wheelEvent (QWheelEvent *e) |
| virtual void | focusOutEvent (QFocusEvent *e) |
| virtual void | leaveEvent (QEvent *e) |
| virtual void | enterEvent (QEvent *e) |
| virtual void | mouseSelect (QMouseEvent *e) |
| virtual void | mousePressSelect (QMouseEvent *e) |
Protected Member Functions inherited from DtTMArea | |
| DtTMArea (const DtTMArea &orig) | |
| Not implemented. | |
| DtTMArea & | operator= (const DtTMArea &rhs) |
| Not implemented. | |
| virtual bool | initViewportExtents (const DtTMFactory *f) |
| virtual bool | initLensArea (const DtTMFactory *f, bool useGL=false) |
| virtual bool | initBackground (const DtTMFactory *f) |
Additional Inherited Members | |
Static Public Member Functions inherited from DtTMMapArea | |
| static DtTMMapArea * | create (QWidget *parent, const Qt::WindowFlags &flags) |
| Returns a newly created instance of a DtTMMapArea. | |
| DtFormationEditor::DtFormationEditor | ( | QWidget * | p | ) |
|
virtual |
|
virtual |
|
virtual |
Sets up subordinate list and creates hierarchy.
|
virtual |
Sets internal variable and all existing model data to force type (as well as marking all the data for update)
|
virtual |
Sets the formation. If formation table is also set, redisplays the entities in new formation.
|
virtual |
Sets the formation table. Will reset the entities if there is a formation set.
|
virtual |
Expands/collapses items.
|
virtual |
Expands out the path.
String list is an index into the hierarchy at each level. The first item is always assumed to be the root
|
virtual |
Selects the item at the end of the path. View must be expanded to see it.
|
virtual |
Returns a path to the specified key.
|
virtual |
Returns path to current selection.
|
virtual |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
Removes the formation entry and updates the display.
|
virtual |
Returns the root node extent.
|
virtual |
Returns the promotion id at the given index of child of the root node.
|
virtual |
|
virtual |
|
virtual |
Adds a new item to be edited at the specified position.
|
virtual |
Returns the expansion level being displayed.
|
virtual |
|
virtual |
Returns true if there is more to be expanded from any subordinate.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
References myDragDropHandler, and DtFormationDragDropHandler::snapToGrid().
| bool DtFormationEditor::showBoundingBoxes | ( | ) | const |
|
virtual |
|
virtual |
|
protectedvirtual |
Reimplemented from DtTMArea.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Does the work of laying out the entities and setting the canvas to the correct formation size.
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from DtTMMapArea.
|
protectedvirtual |
Reimplemented from DtTMMapArea.
|
protectedvirtual |
Drag/Drop code.
Reimplemented from DtTMMapArea.
|
protectedvirtual |
Reimplemented from DtTMMapArea.
|
inlineprotectedvirtual |
Reimplemented from DtTMArea.
|
protectedvirtual |
Resize event.
Reimplemented from DtTMArea.
|
protectedvirtual |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by snapToGrid().
|
protected |
|
protected |