VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtBullseyeManager Class Reference

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:

See Also
DtElementData
DtElementAttributes
DtBullseyeSelectionWidgetInterface
DtBullseyeSelectionWidget
DtBullseyeSelectionLogic
DtMapMouseCursorPositionFromBullseyeSectionOverlay
Inheritance diagram for makVrv::DtBullseyeManager:
Inheritance graph
[legend]

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 DtBullseyeManagerinstance (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

DtDemyDe
 
std::map< DtElementID,
std::string > 
myBullseyeObjectNames
 
DtElementID mySelectedBullseyeId
 
DtSignalConnectionManager myConnectionManager
 

Constructor & Destructor Documentation

makVrv::DtBullseyeManager::DtBullseyeManager ( DtDe )

CTOR.

virtual makVrv::DtBullseyeManager::~DtBullseyeManager ( )
virtual

DTOR.

Member Function Documentation

static DtBullseyeManager& makVrv::DtBullseyeManager::instance ( DtDe de)
static

Returns the DtBullseyeManager instance registered with the provided display engine.

static void makVrv::DtBullseyeManager::registerInstance ( DtDe ,
DtBullseyeManager  
)
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.

void makVrv::DtBullseyeManager::addBullseye ( const DtElementID bullseyeElementId,
const std::string &  bullseyeDisplayName,
bool  makeActiveBullseyeIfNone = true 
)
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.

void makVrv::DtBullseyeManager::removeBullseye ( const DtElementID bullseyeElementId)
protected

Remove bullseye information to be maintained by the manager.

virtual void makVrv::DtBullseyeManager::slot_elementsInitialized ( const DtElementData::ElementIdList elements)
protectedvirtual

Slot when elements are initialized and be ready to be displayed.

virtual void makVrv::DtBullseyeManager::slot_elementsRemoved ( const DtElementData::ElementIdList elements)
protectedvirtual

Slot when elements are removed.

virtual void makVrv::DtBullseyeManager::slot_attributesChanged ( const DtElementAttributeManager::EntryAttributesList list)
protectedvirtual

Slot when the attributes of the elements are changed.

virtual bool makVrv::DtBullseyeManager::isBullseyeToManage ( const DtElementID potentialBullseyeElementId,
std::string &  displayName 
) const
protectedvirtual

The bullseye elements must define the following element data attributes to be discovered by this manager:

  • DisplayName
  • ConnectionObjectType
  • DriverType

Member Data Documentation

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.

DtDe& makVrv::DtBullseyeManager::myDe
protected
std::map<DtElementID, std::string> makVrv::DtBullseyeManager::myBullseyeObjectNames
protected
DtElementID makVrv::DtBullseyeManager::mySelectedBullseyeId
protected
DtSignalConnectionManager makVrv::DtBullseyeManager::myConnectionManager
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)