VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
makVrf::DtBullseyeManager Class Reference
Inheritance diagram for makVrf::DtBullseyeManager:
Inheritance graph
[legend]

Public Types

typedef std::map
< makVrv::DtElementID,
makVrv::DtStateView
< DtVrlinkSimulatedEnvironmentProcess > * > 
BullseyeObjects
 

Public Member Functions

 DtBullseyeManager (makVrv::DtDe &)
 CTOR. More...
 
virtual ~DtBullseyeManager ()
 DTOR. More...
 
const BullseyeObjectsbullseyeObjects () const
 
virtual void selectBullseye (makVrv::DtUniqueID)
 Sets the bullseye selected. A 0 ID will clear current selection. More...
 
makVrv::DtUniqueID selectedBullseye () const
 
virtual int selectedForce () const
 
virtual void setBullseyesEditable (bool)
 Sets whether or not bullseyes are editable. Default is true. More...
 
bool bullseyesEditable () const
 
virtual int forceFor (makVrv::DtUniqueID id) const
 Returns the force for the given bullseye. More...
 
virtual bool rangeAndBearingToSelectedBullseye (const DtVector &geocentricLocation, double &range, double &bearning) const
 Returns the range (in meters) and the bearing (in radians) to the bullseye of type force from the given geocentric location. More...
 
virtual bool rangeAndBearingToBullseye (makVrv::DtUniqueID id, const DtVector &geocentricLocation, double &range, double &bearning) const
 
virtual bool rangeAndBearingToBullseye (makVrv::DtUniqueID id, makVrv::DtUniqueID, double &range, double &bearning) const
 Returns the range (in meters) and the bearing (in radians) to the bullseye of type force from the given object's origin. More...
 
virtual bool rangeAndBearingToSelectedBullseye (makVrv::DtUniqueID, double &range, double &bearning) const
 
virtual makVrv::DtStateView
< DtVrlinkSimulatedEnvironmentProcess > * 
selectedBullseyeStateView () const
 The selected bullseye's state view. More...
 
virtual makVrv::DtStateView
< DtVrlinkSimulatedEnvironmentProcess > * 
bullseyeStateView (makVrv::DtUniqueID id) const
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

Static Public Member Functions

static DtBullseyeManagerinstance (makVrv::DtDe &de)
 Returns DtLocalWeatherManager of the manager. More...
 
static void registerInstance (makVrv::DtDe &, DtBullseyeManager *)
 Register a new manager instance. More...
 
static double smartRange (double range, makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits &displayUnits, bool round=false)
 Given a distance and the source the distance is in, convert it to a smaller distance (i.e. More...
 

Public Attributes

boost::signals2::signal< void(makVrv::DtUniqueID)> signal_selectedBullseyeChanged
 Signal sent when the selected force changes. More...
 
boost::signals2::signal< void(makVrv::DtUniqueID)> signal_bullseyeAdded
 Signal sent when a bullseye of a particular force is added. More...
 
boost::signals2::signal< void(makVrv::DtUniqueID)> signal_bullseyeRemoved
 Signal sent when a bullseye of a particular force is removed. More...
 
boost::signals2::signal< void(makVrv::DtUniqueID)> signal_bullseyeUpdated
 Signal sent when a bullseye of a particular force is modified. More...
 
boost::signals2::signal< void(bool)> signal_bullseyesCreatableChanged
 Signal sent when editable has changed. More...
 
boost::signals2::signal< void(bool)> signal_bullseyesEditableChanged
 

Protected Types

typedef std::map
< makVrv::DtUniqueID,
makVrv::DtSignalConnectionManager * > 
BullseyeConnections
 

Protected Member Functions

virtual void initExistingBullseyeObjects ()
 Initializes environment by scanning for bullseye objects. More...
 
virtual void addIfBullseyeObject (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *)
 Adds this item in if it is a local weather item (by matching object type) More...
 
virtual void slot_bullseyeObjectStateUpdated (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *)
 
virtual void bullseyeObjectAdded (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *)
 
virtual void bullseyeObjectRemoved (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *)
 
virtual void slot_spotReportOptionsChanged ()
 

Static Protected Member Functions

static double roundToMeter (double metersDistance, makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits &displayUnits, bool round=true, bool convertToHm=true)
 Rounds the current distance to a displayabe meter (or kilometer) representation. More...
 
static double roundToFeet (double metersDistance, makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits &displayUnits, bool round)
 Rounds using feet as measurement, however, will still return meters as a result. More...
 
static double roundToNauticalMiles (double metersDistance, makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits &displayUnits, bool round)
 Rounds using nauticalMiles as measurement, however, will still return meters as a result. More...
 

Protected Attributes

makVrv::DtDemyDe
 
BullseyeObjects myBullseyeObjects
 
makVrv::DtUniqueID mySelectedBullseye
 
makVrv::DtSignalConnectionManager myConnectionManager
 
BullseyeConnections myBullseyeConnections
 
bool myBullseyesEditable
 
bool myBullseyesCreatable
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtBullseyeManager::DtBullseyeManager ( makVrv::DtDe )

CTOR.

virtual makVrf::DtBullseyeManager::~DtBullseyeManager ( )
virtual

DTOR.

Member Function Documentation

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

Returns DtLocalWeatherManager of the manager.

static void makVrf::DtBullseyeManager::registerInstance ( makVrv::DtDe ,
DtBullseyeManager  
)
static

Register a new manager instance.

const BullseyeObjects& makVrf::DtBullseyeManager::bullseyeObjects ( ) const
inline
virtual void makVrf::DtBullseyeManager::selectBullseye ( makVrv::DtUniqueID  )
virtual

Sets the bullseye selected. A 0 ID will clear current selection.

makVrv::DtUniqueID makVrf::DtBullseyeManager::selectedBullseye ( ) const
inline
virtual int makVrf::DtBullseyeManager::selectedForce ( ) const
virtual
static double makVrf::DtBullseyeManager::smartRange ( double  range,
makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits displayUnits,
bool  round = false 
)
static

Given a distance and the source the distance is in, convert it to a smaller distance (i.e.

meters to kilomers) given some factors. Will return the distance converted to (if converted) in the supplied parameter. The initial range is considered to be meters. It will then be converted to whatever the current display distance units are, and, those units will be used to determine. If round is true will round to the closest display unit

virtual void makVrf::DtBullseyeManager::setBullseyesEditable ( bool  )
virtual

Sets whether or not bullseyes are editable. Default is true.

bool makVrf::DtBullseyeManager::bullseyesEditable ( ) const
inline
virtual int makVrf::DtBullseyeManager::forceFor ( makVrv::DtUniqueID  id) const
virtual

Returns the force for the given bullseye.

virtual bool makVrf::DtBullseyeManager::rangeAndBearingToSelectedBullseye ( const DtVector geocentricLocation,
double range,
double bearning 
) const
virtual

Returns the range (in meters) and the bearing (in radians) to the bullseye of type force from the given geocentric location.

Returns true if a bullseye of that force exists

virtual bool makVrf::DtBullseyeManager::rangeAndBearingToBullseye ( makVrv::DtUniqueID  id,
const DtVector geocentricLocation,
double range,
double bearning 
) const
virtual
virtual bool makVrf::DtBullseyeManager::rangeAndBearingToBullseye ( makVrv::DtUniqueID  id,
makVrv::DtUniqueID  ,
double range,
double bearning 
) const
virtual

Returns the range (in meters) and the bearing (in radians) to the bullseye of type force from the given object's origin.

Returns true if a bullseye of that force exists

virtual bool makVrf::DtBullseyeManager::rangeAndBearingToSelectedBullseye ( makVrv::DtUniqueID  ,
double range,
double bearning 
) const
virtual
virtual makVrv::DtStateView<DtVrlinkSimulatedEnvironmentProcess>* makVrf::DtBullseyeManager::selectedBullseyeStateView ( ) const
virtual

The selected bullseye's state view.

virtual makVrv::DtStateView<DtVrlinkSimulatedEnvironmentProcess>* makVrf::DtBullseyeManager::bullseyeStateView ( makVrv::DtUniqueID  id) const
virtual
static double makVrf::DtBullseyeManager::roundToMeter ( double  metersDistance,
makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits displayUnits,
bool  round = true,
bool  convertToHm = true 
)
staticprotected

Rounds the current distance to a displayabe meter (or kilometer) representation.

static double makVrf::DtBullseyeManager::roundToFeet ( double  metersDistance,
makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits displayUnits,
bool  round 
)
staticprotected

Rounds using feet as measurement, however, will still return meters as a result.

It is the label that is at issue in this calculation

static double makVrf::DtBullseyeManager::roundToNauticalMiles ( double  metersDistance,
makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits displayUnits,
bool  round 
)
staticprotected

Rounds using nauticalMiles as measurement, however, will still return meters as a result.

It is the label that is at issue in this calculation

virtual void makVrf::DtBullseyeManager::initExistingBullseyeObjects ( )
protectedvirtual

Initializes environment by scanning for bullseye objects.

virtual void makVrf::DtBullseyeManager::addIfBullseyeObject ( const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *  )
protectedvirtual

Adds this item in if it is a local weather item (by matching object type)

virtual void makVrf::DtBullseyeManager::slot_bullseyeObjectStateUpdated ( const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *  )
protectedvirtual
virtual void makVrf::DtBullseyeManager::bullseyeObjectAdded ( const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *  )
protectedvirtual
virtual void makVrf::DtBullseyeManager::bullseyeObjectRemoved ( const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *  )
protectedvirtual
virtual void makVrf::DtBullseyeManager::slot_spotReportOptionsChanged ( )
protectedvirtual

Member Data Documentation

boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtBullseyeManager::signal_selectedBullseyeChanged

Signal sent when the selected force changes.

boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtBullseyeManager::signal_bullseyeAdded

Signal sent when a bullseye of a particular force is added.

boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtBullseyeManager::signal_bullseyeRemoved

Signal sent when a bullseye of a particular force is removed.

boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtBullseyeManager::signal_bullseyeUpdated

Signal sent when a bullseye of a particular force is modified.

boost::signals2::signal<void (bool)> makVrf::DtBullseyeManager::signal_bullseyesCreatableChanged

Signal sent when editable has changed.

boost::signals2::signal<void (bool)> makVrf::DtBullseyeManager::signal_bullseyesEditableChanged
makVrv::DtDe& makVrf::DtBullseyeManager::myDe
protected
BullseyeObjects makVrf::DtBullseyeManager::myBullseyeObjects
protected
makVrv::DtUniqueID makVrf::DtBullseyeManager::mySelectedBullseye
protected
makVrv::DtSignalConnectionManager makVrf::DtBullseyeManager::myConnectionManager
protected
BullseyeConnections makVrf::DtBullseyeManager::myBullseyeConnections
protected
bool makVrf::DtBullseyeManager::myBullseyesEditable
protected
bool makVrf::DtBullseyeManager::myBullseyesCreatable
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)