![]() |
VR-Forces 4.6.1 Class Documentation
|
Override tactical graphic manager to support aggregate/entities on palette. More...

Public Types | |
| enum | OverlayFlags { DisableRename = 0x00000001, DisableSelection = 0x00000002, DisableMove = 0x00000004, IsPersistent = 0x00000008 } |
Public Types inherited from makVrv::DtTacticalGraphicOverlayManager | |
| typedef std::list < DtTacticalGraphicOverlay * > | DtTacticalGraphicOverlayList |
| typedef std::vector < DtElementEntry::ElementType > | TacticalGraphicTypeVector |
Public Member Functions | |
| DtVrfTacticalGraphicOverlayManager (makVrv::DtDe &) | |
| CTOR. | |
| virtual | ~DtVrfTacticalGraphicOverlayManager () |
| DTOR. | |
| virtual void | slot_onElementAttributesChanged (const makVrv::DtElementData::EntryAttributesList &attributes) |
| Called by signal whenever element attributes change. | |
| virtual void | setTacticalGraphicVisible (const makVrv::DtUniqueID &id, bool flag) |
| Updates the visibility status of a tactical graphic inside the manager – except if this is a stealth object. | |
| virtual void | setCanRenameOverlay (const std::string &, bool) |
| Set various flags that can define attributes of an overlay. | |
| virtual bool | canRenameOverlay (const std::string &) |
| virtual void | setCanSelectOverlay (const std::string &, bool) |
| virtual bool | canSelectOverlay (const std::string &) |
| virtual void | setCanMoveFromOverlay (const std::string &, bool) |
| virtual bool | canMoveFromOverlay (const std::string &) |
| virtual void | setIsPersistentOverlay (const std::string &, bool) |
| virtual bool | isPersistentOverlay (const std::string &) |
| virtual void | deleteOverlay (const std::string &name) |
| Removes the overlay with the given name from the manager. | |
| virtual void | renameVrfOverlay (const std::string &oldName, const std::string &newName) |
| Renames overlay on the network from the old to the new name. | |
| virtual void | renameOverlay (const std::string &oldName, const std::string &newName) |
| Renames the overlay with the oldName to newName emits signal_overlayRenamed if overlay is successfully renamed. | |
| virtual void | hideOverlay (const std::string &overlay) |
| Create this overlay but hide it on the overlay tab and overlay list widget. Will still be available on the edit dialogs. | |
| virtual bool | overlayHidden (const std::string &) const |
| virtual void | showOverlay (const std::string &overlay) |
| Show the overlay again. | |
Public Member Functions inherited from makVrv::DtTacticalGraphicOverlayManager | |
| virtual | ~DtTacticalGraphicOverlayManager () |
| Destructor. | |
| virtual void | addTacticalGraphic (const DtUniqueID &id, const std::string &name) |
| Adds a tactical graphic with the given id and name. | |
| virtual const std::string * | tacticalGraphicName (const DtUniqueID &id) const |
| Returns the name of the tactical graphic associated with the id if no graphic is found, returns 0. | |
| virtual void | removeTacticalGraphic (const DtUniqueID &id) |
| Removes the tactical graphic with the given id from the manager emits signal_tacticalGraphicRemoved if graphic is found/removed. | |
| virtual void | renameTacticalGraphic (const DtUniqueID &id, const std::string &newName) |
| Renames the tactical graphic with the given id to the new name inside the manager emits signal_tacticalGraphicRenamed if graphic is found/renamed. | |
| virtual void | renameTacticalGraphicOverlay (const DtUniqueID &id, const std::string &newName) |
| Renames the tactical graphic's overlay to the new name inside the manager emits signal_tacticalGraphicOverlayRenamed if successful (id found and overlay renamed) | |
| virtual std::string | newOverlay () |
| Creates a new overlay with a default name. | |
| virtual void | addOverlay (const std::string &name) |
| Creates a new overlay with the given name. | |
| virtual DtTacticalGraphicOverlay * | findOverlay (const std::string &name) const |
| Finds the overlay associated with the given name. | |
| virtual DtTacticalGraphicOverlayList | overlays () const |
| Returns the list of overlays currently registered in the manager. | |
| virtual bool | overlayVisible (const std::string &overlayName) const |
| Set/Get the visible status of the given overlay. | |
| virtual void | setOverlayVisible (const std::string &overlayName, bool flag) |
| virtual bool | overlayFiltered (const std::string &overlayName) const |
| Set/Get the visible status of the given overlay. | |
| virtual void | setOverlayFiltered (const std::string &overlayName, bool flag) |
| virtual bool | overlayLocked (const std::string &overlayName) const |
| Set/Get the lock status of the given overlay. | |
| virtual void | setOverlayLocked (const std::string &overlayName, bool flag) |
| virtual const DtTacticalGraphicOverlay * | currentOverlay () const |
| Set/Get the overlay marked as 'current overlay' inside the manager. | |
| virtual void | setCurrentOverlay (const std::string &name) |
| virtual void | setTacticalGraphicTypes (const TacticalGraphicTypeVector &) |
| Sets the types valid to be placed on an overlay layer. | |
| virtual const TacticalGraphicTypeVector & | tacticalGraphicTypes () const |
| Returns current tactical graphic types. | |
| virtual bool | isTacticalGraphic (const DtUniqueID &id) const |
| Returns true if this particular element can be placed on an overlay layer. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Public Attributes | |
| boost::signal< void(const std::string &, int)> | signal_flagsChanged |
| boost::signal< void(const std::string &, bool)> | signal_overlayHidden |
Public Attributes inherited from makVrv::DtTacticalGraphicOverlayManager | |
| boost::signal< void(const DtUniqueID &, const std::string &)> | signal_tacticalGraphicAdded |
| boost::signal< void(const DtUniqueID &, const std::string &)> | signal_tacticalGraphicRenamed |
| boost::signal< void(const DtUniqueID &, const std::string &)> | signal_tacticalGraphicOverlayRenamed |
| boost::signal< void(const DtUniqueID &)> | signal_tacticalGraphicRemoved |
| boost::signal< void(const DtUniqueID &, bool)> | signal_tacticalGraphicVisibilityChanged |
| boost::signal< void(const std::string &)> | signal_overlayAdded |
| boost::signal< void(const std::string &)> | signal_overlayDeleted |
| boost::signal< void(const std::string &, bool)> | signal_overlayFiltered |
| boost::signal< void(const std::string &, bool)> | signal_overlayVisibilityChanged |
| boost::signal< void(const std::string &, const std::string &)> | signal_overlayRenamed |
| boost::signal< void(const std::string &)> | signal_currentOverlayChanged |
Protected Types | |
| typedef std::map< std::string, int > | OverlayFlagsMap |
Protected Types inherited from makVrv::DtTacticalGraphicOverlayManager | |
| typedef std::map< DtUniqueID, DtTacticalGraphicOverlayMember > | DtTacticalGraphicOverlayObjectMap |
| typedef std::list < DtOverlayFilter * > | DtTacticalGraphicOverlayFilterList |
Protected Member Functions | |
| virtual void | objectAdded (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *p) |
| virtual void | setFlag (const std::string &s, OverlayFlags, bool) |
| virtual bool | testFlag (const std::string &s, OverlayFlags) const |
Protected Member Functions inherited from makVrv::DtTacticalGraphicOverlayManager | |
| virtual void | slot_onElementsAdded (const DtElementData::ElementList &elements) |
| Called by signal whenever elements are added. | |
| virtual void | slot_onElementsRemoved (const DtElementData::UniqueIdList &elementIds) |
| Called by signal whenever elements are removed. | |
| virtual void | addFilter (const std::string &name, DtOverlayFilter *filter, bool apply=false) |
| DtTacticalGraphicOverlayManager (DtDe &de) | |
| Constructor. | |
Protected Attributes | |
| std::string | myStealthType |
| DtVrfStateViewCollectionManager * | myStateViewCollectionManager |
| makVrv::DtSharedSettingsManager * | mySettingsManager |
| OverlayFlagsMap | myOverlayFlags |
| std::set< std::string > | myOverlaysHidden |
Protected Attributes inherited from makVrv::DtTacticalGraphicOverlayManager | |
| DtDe & | myDe |
| DtTacticalGraphicOverlayList | myOverlays |
| DtTacticalGraphicOverlayFilterList | myFilters |
| DtTacticalGraphicOverlayObjectMap | myTacticalGraphicNames |
| DtTacticalGraphicOverlay * | myCurrentOverlay |
| DtSignalConnectionManager | mySignals |
| TacticalGraphicTypeVector | myTacticalGraphicTypes |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtTacticalGraphicOverlayManager | |
| static DtTacticalGraphicOverlayManager & | instance (DtDe &de) |
| static void | registerInstance (DtDe &de, DtTacticalGraphicOverlayManager *mgr) |
Override tactical graphic manager to support aggregate/entities on palette.
|
protected |
| makVrf::DtVrfTacticalGraphicOverlayManager::DtVrfTacticalGraphicOverlayManager | ( | makVrv::DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Called by signal whenever element attributes change.
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
Updates the visibility status of a tactical graphic inside the manager – except if this is a stealth object.
That will be seen as visible only if the flag is true and other stealths are shown
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
Set various flags that can define attributes of an overlay.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Removes the overlay with the given name from the manager.
emits signal_overlayDeleted if overlay is successfully removed
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
Renames overlay on the network from the old to the new name.
|
virtual |
Renames the overlay with the oldName to newName emits signal_overlayRenamed if overlay is successfully renamed.
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
Create this overlay but hide it on the overlay tab and overlay list widget. Will still be available on the edit dialogs.
|
virtual |
|
virtual |
Show the overlay again.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| boost::signal<void (const std::string&, int)> makVrf::DtVrfTacticalGraphicOverlayManager::signal_flagsChanged |
| boost::signal<void (const std::string&, bool)> makVrf::DtVrfTacticalGraphicOverlayManager::signal_overlayHidden |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |