The DtWindSwitchTickable class is responsible for switching nodes based on the current wind speed.
More...
Public Member Functions |
| | DtWindSwitchTickable (DtDe &de, DtElementID elementId, DtUniqueID sceneObjectId, DtUniqueID uniqueId, bool useInstancing, unsigned int nodeTypeIndex) |
| | CTOR.
|
| virtual | ~DtWindSwitchTickable () |
| | DTOR.
|
| virtual void | update (DtTime tNow) |
| | Update the switch node based on the wind speed.
|
| virtual bool | needsUpdate (DtTime tNow) |
| | The check function called by DtTickableManager to verify if an update is required.
|
| virtual void | configure (osg::Node *n, const rapidjson::Value &windJsonData) |
| | Configure the meta file tickable object.
|
| unsigned int | getSwitchIndexForSpeed (double windSpeed) |
| | Get the switch index based on the wind speed (km/h)
|
| | DtDynamicFeatureTickable (DtDe &de, DtElementID elementId, DtUniqueID sceneObjectId, DtUniqueID uniqueId, bool useInstancing, unsigned int nodeTypeIndex) |
| | CTOR.
|
| virtual | ~DtDynamicFeatureTickable () |
| | DTOR.
|
| virtual | ~DtTickable () |
| | Virtual DTOR.
|
| virtual void | setUpdatePeriod (unsigned int period) |
| | Specify how often (in # of frames) this tickable should call update.
|
| virtual unsigned int | updatePeriod () const |
| | Specify how often (in # of frames) this tickable should call update.
|
| | DtVirtualBaseClass () |
| | Do nothing constructor.
|
| virtual | ~DtVirtualBaseClass () |
| | Virtual do nothing destructor.
|
Static Public Attributes |
|
| static const char * | theWindSwitchFeatureName |
| | Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
| static const char * | theTagWindSpeeds |
| | Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
| static const char * | theTagSwitchIndices |
| | Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
Detailed Description
The DtWindSwitchTickable class is responsible for switching nodes based on the current wind speed.
Constructor & Destructor Documentation
| virtual makVrv::DtWindSwitchTickable::~DtWindSwitchTickable |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual void makVrv::DtWindSwitchTickable::update |
( |
DtTime |
tNow | ) |
|
|
virtual |
| virtual bool makVrv::DtWindSwitchTickable::needsUpdate |
( |
DtTime |
tNow | ) |
|
|
virtual |
The check function called by DtTickableManager to verify if an update is required.
If this function returns true, the DtTickableManager will then call update().
- Parameters
-
| [in] | tNow | is the current time-stamp. |
- Return values
-
| true | if this object needs to be ticked. |
| false | otherwise. |
Reimplemented from makVrv::DtTickable.
| virtual void makVrv::DtWindSwitchTickable::configure |
( |
osg::Node * |
n, |
|
|
const rapidjson::Value & |
windJsonData |
|
) |
| |
|
virtual |
Configure the meta file tickable object.
| unsigned int makVrv::DtWindSwitchTickable::getSwitchIndexForSpeed |
( |
double |
windSpeed | ) |
|
Get the switch index based on the wind speed (km/h)
Member Data Documentation
| const char* makVrv::DtWindSwitchTickable::theWindSwitchFeatureName |
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
| const char* makVrv::DtWindSwitchTickable::theTagWindSpeeds |
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
| const char* makVrv::DtWindSwitchTickable::theTagSwitchIndices |
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
| float makVrv::DtWindSwitchTickable::myLastWindSpeed |
|
protected |
To convert the wind speed to display units (km/h)
| osgSim::MultiSwitch* makVrv::DtWindSwitchTickable::myWindSwitchNode |
|
protected |
The actual node that contains switch states.
| std::vector<double> makVrv::DtWindSwitchTickable::myWindSpeeds |
|
protected |
| std::vector<int> makVrv::DtWindSwitchTickable::mySwitchIndices |
|
protected |
The documentation for this class was generated from the following file: