![]() |
VR-Forces 5.0.2 Developer's Guide
|
The bullseye manager is responsible for maintaining information related to all bullseye (tactical graphic) objects in the scene. The manager is used by GUI element and visual classes that rely on bullseye information, e.g. the map information overlay in PVD mode.
Bullseye information is added to the manager whenever bullseye elements are discovered in DtElementData. Likewise, information is removed when bullseye elements are removed from DtElementData. The manager caches the current display names for all the bullseyes it manages. The bullseye elements must define the following element data attributes to be discovered by this manager:

Public Member Functions | |
| DtBullseyeManager (DtDe &) | |
| virtual | ~DtBullseyeManager () |
| std::string | bullseyeName (const DtElementID &elementId) const |
| DtElementID | bullseyElementId (const std::string &name) const |
| void | setActiveBullsye (const DtElementID &bullseyeElementId) |
| DtElementID | activeBullseye () const |
| std::string | activeBullseyeName () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtBullseyeManager & | instance (DtDe &de) |
| static void | registerInstance (DtDe &, DtBullseyeManager *) |
Public Attributes | |
| boost::signals2::signal< void(const std::string &name)> | signal_selectedBullseyeChanged |
| boost::signals2::signal< void(const std::string &name)> | signal_bullseyeAdded |
| boost::signals2::signal< void(const std::string &name)> | signal_bullseyeRemoved |
| boost::signals2::signal< void(const std::string &oldName, const std::string &newName)> | signal_bullseyeUpdated |
Protected Member Functions | |
| void | addBullseye (const DtElementID &bullseyeElementId, const std::string &bullseyeDisplayName, bool makeActiveBullseyeIfNone=true) |
| void | removeBullseye (const DtElementID &bullseyeElementId) |
| virtual void | slot_elementsInitialized (const DtElementData::ElementIdList &elements) |
| virtual void | slot_elementsRemoved (const DtElementData::ElementIdList &elements) |
| virtual void | slot_attributesChanged (const DtElementAttributeManager::EntryAttributesList &list) |
| virtual bool | isBullseyeToManage (const DtElementID &potentialBullseyeElementId, std::string &displayName) const |
Protected Attributes | |
| DtDe & | myDe |
| std::map< DtElementID, std::string > | myBullseyeObjectNames |
| DtElementID | mySelectedBullseyeId |
| DtSignalConnectionManager | myConnectionManager |
| makVrv::DtBullseyeManager::DtBullseyeManager | ( | DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
static |
Returns the DtBullseyeManager instance registered with the provided display engine.
|
static |
Register a new manager instance with the provided display engine.
| std::string makVrv::DtBullseyeManager::bullseyeName | ( | const DtElementID & | elementId | ) | const |
Get the display name of the bullseye with the provided element ID.
| DtElementID makVrv::DtBullseyeManager::bullseyElementId | ( | const std::string & | name | ) | const |
Get the element ID of the bullseye with the provided display name.
| void makVrv::DtBullseyeManager::setActiveBullsye | ( | const DtElementID & | bullseyeElementId | ) |
Set the active bullseye. The active bullseye is used by PVD visuals, e.g. map information overlay, to display information based on the bullseye that is marked as 'active'.
| DtElementID makVrv::DtBullseyeManager::activeBullseye | ( | ) | const |
Get the element ID of the active bullseye.
| std::string makVrv::DtBullseyeManager::activeBullseyeName | ( | ) | const |
Get the display name of the active bullseye.
|
protected |
Add bullseye information to be maintained by the manager. By default, if there is not an 'active' bullseye already specified, the added bullseye will be made the 'active' bullseye.
|
protected |
Remove bullseye information to be maintained by the manager.
|
protectedvirtual |
Slot when elements are initialized and be ready to be displayed.
|
protectedvirtual |
Slot when elements are removed.
|
protectedvirtual |
Slot when the attributes of the elements are changed.
|
protectedvirtual |
The bullseye elements must define the following element data attributes to be discovered by this manager:
| boost::signals2::signal<void(const std::string& name)> makVrv::DtBullseyeManager::signal_selectedBullseyeChanged |
Signal sent when the selected bullseye changed.
| boost::signals2::signal<void(const std::string& name)> makVrv::DtBullseyeManager::signal_bullseyeAdded |
Signal sent when a bullseye is added.
| boost::signals2::signal<void(const std::string& name)> makVrv::DtBullseyeManager::signal_bullseyeRemoved |
Signal sent when a bullseye is removed.
| boost::signals2::signal<void(const std::string& oldName, const std::string& newName)> makVrv::DtBullseyeManager::signal_bullseyeUpdated |
Signal sent when a bullseye's display name has changed.
|
protected |
|
protected |
|
protected |
|
protected |