VR-Forces 5.0.3 Developer's Guide
 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 | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends
makVrv::DtLightPointManager Class Reference

DtLightPointManager core base class for DtOsgLightPointManger (which does most of the work for light points) this class handles the light point group creation and current state along with distribution of state changest to the slave RDE's.

Inheritance diagram for makVrv::DtLightPointManager:
Inheritance graph
[legend]

Public Types

typedef std::pair< std::string,
int
GroupIdPair
 
typedef std::map< std::string,
int
GroupIdMap
 

Public Member Functions

 DtLightPointManager (DtDe &de)
 
virtual bool groupExists (const std::string &group) const
 
virtual DtColorValue groupColor (const std::string &group)
 
virtual int groupId (const std::string &group)
 
virtual int lightPointMaxCode ()
 
void setGroupColor (const std::string &group, float colorR, float colorG, float colorB, float colorA)
 
virtual void setGroupColor (const std::string &group, const DtColorValue &color)
 
virtual const GroupIdMapgroupIdMap ()
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtLightPointManagerinstance (DtDe &de)
 
static void registerInstance (DtDe &de, DtLightPointManager *manager)
 
static const std::string & theClassName ()
 
static float defaultLightPointRange ()
 

Protected Types

typedef std::vector< DtColorValueColorVector
 

Protected Member Functions

virtual ~DtLightPointManager ()
 
void local_setGroupColor (const std::string &group, const DtColorValue &color)
 

Protected Attributes

DtSignalConnectionManager mySignals
 
DtDemyDe
 
DtLightPointTable myLightsTable
 
GroupIdMap myGroupIds
 
ColorVector myGroupColors
 
int myLastUpdateLightPointMaxCode
 

Static Protected Attributes

static const std::string theLightFilename
 
static const std::string theLightTunningFilename
 
static const std::string theLightDefaultValuesXmlFilename
 
static const std::string theLightDefaultValuesCsvFilename
 

Friends

class DtDeSharedState
 

Member Typedef Documentation

typedef std::pair<std::string, int> makVrv::DtLightPointManager::GroupIdPair
typedef std::map<std::string, int> makVrv::DtLightPointManager::GroupIdMap

Constructor & Destructor Documentation

makVrv::DtLightPointManager::DtLightPointManager ( DtDe de)

Light point manager contructor used by instance() call to setup the singleton instance.

virtual makVrv::DtLightPointManager::~DtLightPointManager ( )
protectedvirtual

DTOR.

Member Function Documentation

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

Get/create the DtLightPointManager instance. use de.registerInstance(DtLightPointManager::theClassName(),) to override the class instance.

static void makVrv::DtLightPointManager::registerInstance ( DtDe de,
DtLightPointManager manager 
)
static
static const std::string& makVrv::DtLightPointManager::theClassName ( )
static

Get the name used to register this class.

static float makVrv::DtLightPointManager::defaultLightPointRange ( )
static

default light point range for when the light point should disappear

virtual bool makVrv::DtLightPointManager::groupExists ( const std::string &  group) const
virtual

Get whether or not the manager has seen the specified group yet. If not, a default GroupColor value will be set for runway lights (by the manager creating them) as they are paged in.

virtual DtColorValue makVrv::DtLightPointManager::groupColor ( const std::string &  group)
virtual

Get the current value of the group color for the specified group string.

virtual int makVrv::DtLightPointManager::groupId ( const std::string &  group)
virtual

get the groupId assigned to the specified group string used by the light point nodes and light point groups to associate a node or type to a group in the shader. These groups are controlled using the setGroupColor by passing the same string.

virtual int makVrv::DtLightPointManager::lightPointMaxCode ( )
virtual

get the lights table max code so we can know how many digits to render in the debug rendering of the light point code

void makVrv::DtLightPointManager::setGroupColor ( const std::string &  group,
float  colorR,
float  colorG,
float  colorB,
float  colorA 
)

Set the current value of the group color for the specified group string should only be called on a master display engine and distributes the color to the slaves.

virtual void makVrv::DtLightPointManager::setGroupColor ( const std::string &  group,
const DtColorValue color 
)
virtual

Set the current value of the group color for the specified group string should only be called on a master display engine and distributes the color to the slaves.

virtual const GroupIdMap& makVrv::DtLightPointManager::groupIdMap ( )
virtual

Get the current groupIdMap.

void makVrv::DtLightPointManager::local_setGroupColor ( const std::string &  group,
const DtColorValue color 
)
protected

Set the current value of the group color for the specified group string called indirectly by setGroupColor and is used by the DtDeSharedState to modify the color for a group.

Friends And Related Function Documentation

friend class DtDeSharedState
friend

Member Data Documentation

DtSignalConnectionManager makVrv::DtLightPointManager::mySignals
protected
DtDe& makVrv::DtLightPointManager::myDe
protected
DtLightPointTable makVrv::DtLightPointManager::myLightsTable
protected
GroupIdMap makVrv::DtLightPointManager::myGroupIds
protected
ColorVector makVrv::DtLightPointManager::myGroupColors
protected
int makVrv::DtLightPointManager::myLastUpdateLightPointMaxCode
protected
const std::string makVrv::DtLightPointManager::theLightFilename
staticprotected
const std::string makVrv::DtLightPointManager::theLightTunningFilename
staticprotected
const std::string makVrv::DtLightPointManager::theLightDefaultValuesXmlFilename
staticprotected
const std::string makVrv::DtLightPointManager::theLightDefaultValuesCsvFilename
staticprotected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)