The DtWindRotTickable rotates along X (like a fan blade) depending on the speed of the wind.
More...
Public Member Functions |
| | DtWindRotTickable (DtDe &de, DtElementID elementId, DtUniqueID sceneObjectId, DtUniqueID uniqueId, bool useInstancing, unsigned int nodeTypeIndex) |
| | CTOR.
|
| virtual | ~DtWindRotTickable () |
| | DTOR.
|
| virtual void | update (DtTime tNow) |
| | Update the wind rotation for the node based on the environment.
|
| 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 node based on json data.
|
| | 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 * | theWindRotFeatureName |
| | Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
| static const char * | theTagDelayBeforeRot |
| | Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
| static const char * | theTagDegPerKPH |
| | Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
Detailed Description
The DtWindRotTickable rotates along X (like a fan blade) depending on the speed of the wind.
Constructor & Destructor Documentation
| virtual makVrv::DtWindRotTickable::~DtWindRotTickable |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual void makVrv::DtWindRotTickable::update |
( |
DtTime |
tNow | ) |
|
|
virtual |
Update the wind rotation for the node based on the environment.
Implements makVrv::DtTickable.
| virtual bool makVrv::DtWindRotTickable::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::DtWindRotTickable::configure |
( |
osg::Node * |
n, |
|
|
const rapidjson::Value & |
windJsonData |
|
) |
| |
|
virtual |
Configure node based on json data.
Member Data Documentation
| const char* makVrv::DtWindRotTickable::theWindRotFeatureName |
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
| const char* makVrv::DtWindRotTickable::theTagDelayBeforeRot |
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
| const char* makVrv::DtWindRotTickable::theTagDegPerKPH |
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
| float makVrv::DtWindRotTickable::myLastWindRot |
|
protected |
Last wind rotation amount.
| DtTime makVrv::DtWindRotTickable::myLastUpdateTime |
|
protected |
The last time update was called.
To convert the wind speed to display units (km/h)
| osgSim::DOFTransform* makVrv::DtWindRotTickable::myWindRotNode |
|
protected |
The node affected by the update rotation calculations.
| float makVrv::DtWindRotTickable::myDelayBeforeRot |
|
protected |
To constrain the rotation with respect to wind.
| float makVrv::DtWindRotTickable::myDegPerKPH |
|
protected |
| float makVrv::DtWindRotTickable::myCurrRotInRad |
|
protected |
The current radial position of the fan blades.
The documentation for this class was generated from the following file: