![]() |
VR-Forces Development_Version Class Documentation
|
DtTacticalGraphicOverlayManager objects hold the state (visible or not) of tactical graphics overlays. More...

Classes | |
| class | DtTacticalGraphicOverlayMember |
| DtOverlayItem Holds information about the tactical graphics managed by the Tactical Graphic Overlay Manager. More... | |
Public Types | |
| typedef std::list < DtTacticalGraphicOverlay * > | DtTacticalGraphicOverlayList |
| typedef std::vector < DtElementEntry::ElementType > | TacticalGraphicTypeVector |
Public Member Functions | |
| 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 void | setTacticalGraphicVisible (const DtUniqueID &id, bool flag) |
| Updates the visibility status of a tactical graphic inside the manager. | |
| 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 void | deleteOverlay (const std::string &name) |
| Removes the overlay with the given name from the manager. | |
| 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 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. | |
Static Public Member Functions | |
| static DtTacticalGraphicOverlayManager & | instance (DtDe &de) |
| static void | registerInstance (DtDe &de, DtTacticalGraphicOverlayManager *mgr) |
Public Attributes | |
| 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< DtUniqueID, DtTacticalGraphicOverlayMember > | DtTacticalGraphicOverlayObjectMap |
| typedef std::list < DtOverlayFilter * > | DtTacticalGraphicOverlayFilterList |
Protected Member Functions | |
| virtual void | slot_onElementsAdded (const DtElementData::ElementList &elements) |
| Called by signal whenever elements are added. | |
| virtual void | slot_onElementAttributesChanged (const DtElementData::EntryAttributesList &attributes) |
| Called by signal whenever element attributes change. | |
| 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. | |
DtTacticalGraphicOverlayManager objects hold the state (visible or not) of tactical graphics overlays.
| typedef std::list<DtTacticalGraphicOverlay*> makVrv::DtTacticalGraphicOverlayManager::DtTacticalGraphicOverlayList |
| typedef std::vector<DtElementEntry::ElementType> makVrv::DtTacticalGraphicOverlayManager::TacticalGraphicTypeVector |
|
protected |
|
protected |
|
virtual |
Destructor.
|
protected |
Constructor.
|
static |
|
static |
|
virtual |
Adds a tactical graphic with the given id and name.
emits signal_tacticalGraphicAdded
|
virtual |
Returns the name of the tactical graphic associated with the id if no graphic is found, returns 0.
|
virtual |
Removes the tactical graphic with the given id from the manager emits signal_tacticalGraphicRemoved if graphic is found/removed.
|
virtual |
Renames the tactical graphic with the given id to the new name inside the manager emits signal_tacticalGraphicRenamed if graphic is found/renamed.
|
virtual |
Renames the tactical graphic's overlay to the new name inside the manager emits signal_tacticalGraphicOverlayRenamed if successful (id found and overlay renamed)
|
virtual |
Updates the visibility status of a tactical graphic inside the manager.
Reimplemented in makVrf::DtVrfTacticalGraphicOverlayManager.
|
virtual |
Creates a new overlay with a default name.
|
virtual |
Creates a new overlay with the given name.
Name must be not empty. emits signal_overlayAdded if overlay is successfully added inside the manager.
|
virtual |
Removes the overlay with the given name from the manager.
emits signal_overlayDeleted if overlay is successfully removed
|
virtual |
Renames the overlay with the oldName to newName emits signal_overlayRenamed if overlay is successfully renamed.
|
virtual |
Finds the overlay associated with the given name.
|
virtual |
Returns the list of overlays currently registered in the manager.
|
virtual |
Set/Get the visible status of the given overlay.
|
virtual |
|
virtual |
Set/Get the visible status of the given overlay.
|
virtual |
|
virtual |
Set/Get the lock status of the given overlay.
A locked overlay means that the tactical graphics inside it cannot be edited/moved
|
virtual |
|
virtual |
Set/Get the overlay marked as 'current overlay' inside the manager.
|
virtual |
|
virtual |
Sets the types valid to be placed on an overlay layer.
|
virtual |
Returns current tactical graphic types.
|
virtual |
Returns true if this particular element can be placed on an overlay layer.
|
protectedvirtual |
Called by signal whenever elements are added.
|
protectedvirtual |
Called by signal whenever element attributes change.
Reimplemented in makVrf::DtVrfTacticalGraphicOverlayManager.
|
protectedvirtual |
Called by signal whenever elements are removed.
|
protectedvirtual |
| boost::signal<void (const DtUniqueID&, const std::string&)> makVrv::DtTacticalGraphicOverlayManager::signal_tacticalGraphicAdded |
| boost::signal<void (const DtUniqueID&, const std::string&)> makVrv::DtTacticalGraphicOverlayManager::signal_tacticalGraphicRenamed |
| boost::signal<void (const DtUniqueID&, const std::string&)> makVrv::DtTacticalGraphicOverlayManager::signal_tacticalGraphicOverlayRenamed |
| boost::signal<void (const DtUniqueID&)> makVrv::DtTacticalGraphicOverlayManager::signal_tacticalGraphicRemoved |
| boost::signal<void (const DtUniqueID&, bool)> makVrv::DtTacticalGraphicOverlayManager::signal_tacticalGraphicVisibilityChanged |
| boost::signal<void (const std::string&)> makVrv::DtTacticalGraphicOverlayManager::signal_overlayAdded |
| boost::signal<void (const std::string&)> makVrv::DtTacticalGraphicOverlayManager::signal_overlayDeleted |
| boost::signal<void (const std::string&, bool)> makVrv::DtTacticalGraphicOverlayManager::signal_overlayFiltered |
| boost::signal<void (const std::string&, bool)> makVrv::DtTacticalGraphicOverlayManager::signal_overlayVisibilityChanged |
| boost::signal<void (const std::string&, const std::string&)> makVrv::DtTacticalGraphicOverlayManager::signal_overlayRenamed |
| boost::signal<void (const std::string&)> makVrv::DtTacticalGraphicOverlayManager::signal_currentOverlayChanged |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |