![]() |
VR-Forces 5.0.3 Developer's Guide
|
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.

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 GroupIdMap & | groupIdMap () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtLightPointManager & | instance (DtDe &de) |
| static void | registerInstance (DtDe &de, DtLightPointManager *manager) |
| static const std::string & | theClassName () |
| static float | defaultLightPointRange () |
Protected Types | |
| typedef std::vector< DtColorValue > | ColorVector |
Protected Member Functions | |
| virtual | ~DtLightPointManager () |
| void | local_setGroupColor (const std::string &group, const DtColorValue &color) |
Protected Attributes | |
| DtSignalConnectionManager | mySignals |
| DtDe & | myDe |
| 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 |
| typedef std::pair<std::string, int> makVrv::DtLightPointManager::GroupIdPair |
| typedef std::map<std::string, int> makVrv::DtLightPointManager::GroupIdMap |
|
protected |
| makVrv::DtLightPointManager::DtLightPointManager | ( | DtDe & | de | ) |
Light point manager contructor used by instance() call to setup the singleton instance.
|
protectedvirtual |
DTOR.
|
static |
Get/create the DtLightPointManager instance. use de.registerInstance(DtLightPointManager::theClassName(),) to override the class instance.
|
static |
|
static |
Get the name used to register this class.
|
static |
default light point range for when the light point should disappear
|
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 |
Get the current value of the group color for the specified group string.
|
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 |
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 |
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 |
Get the current groupIdMap.
|
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.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |