The DtWindDirTickable updates a transform node to rotate into the direction of the wind.
More...
Public Member Functions |
| | DtWindDirTickable (DtDe &de, DtElementID elementId, DtUniqueID sceneObjectId, DtUniqueID uniqueId, bool useInstancing, unsigned int nodeTypeIndex) |
| | CTOR.
|
| virtual | ~DtWindDirTickable () |
| | DTOR.
|
| virtual void | update (DtTime tNow) |
| | Update the wind direction.
|
| 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.
|
| | DtVirtualBaseClass () |
| | Do nothing constructor.
|
| virtual | ~DtVirtualBaseClass () |
| | Virtual do nothing destructor.
|
Static Public Attributes |
|
| static const char * | theWindDirFeatureName |
| | Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
| static const char * | theTagRotOffsetDeg |
| | Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
| static const char * | theTagRotDir |
| | Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
| static const char * | theRotDirCW |
| | Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
Detailed Description
The DtWindDirTickable updates a transform node to rotate into the direction of the wind.
Constructor & Destructor Documentation
| virtual makVrv::DtWindDirTickable::~DtWindDirTickable |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual void makVrv::DtWindDirTickable::update |
( |
DtTime |
tNow | ) |
|
|
virtual |
| virtual bool makVrv::DtWindDirTickable::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. |
Implements makVrv::DtTickable.
| virtual void makVrv::DtWindDirTickable::configure |
( |
osg::Node * |
n, |
|
|
const rapidjson::Value & |
windJsonData |
|
) |
| |
|
virtual |
Configure node based on json data.
Member Data Documentation
| const char* makVrv::DtWindDirTickable::theWindDirFeatureName |
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
| const char* makVrv::DtWindDirTickable::theTagRotOffsetDeg |
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
| const char* makVrv::DtWindDirTickable::theTagRotDir |
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
| const char* makVrv::DtWindDirTickable::theRotDirCW |
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
| float makVrv::DtWindDirTickable::myLastWindDir |
|
protected |
Last update wind direction.
| osgSim::DOFTransform* makVrv::DtWindDirTickable::myWindDirNode |
|
protected |
Transform for the wind to act upon.
| float makVrv::DtWindDirTickable::myRotOffset |
|
protected |
The rotation offset to bring the model's rotation in line with the wind's direction.
| float makVrv::DtWindDirTickable::myRotDir |
|
protected |
Clockwise or counterclockwise rotation.
The documentation for this class was generated from the following file: