![]() |
VR-Forces 5.0.2 Developer's Guide
|
The DtWindRotTickable rotates along X (like a fan blade) depending on the speed of the wind.

Public Member Functions | |
| DtWindRotTickable (DtDe &de, DtElementID elementId, DtUniqueID sceneObjectId, DtUniqueID uniqueId, unsigned int nodeTypeIndex, DtOsgArticulatedModel *osgArticulatedModel) | |
| virtual | ~DtWindRotTickable () |
| virtual void | update (DtTime tNow) |
| virtual bool | needsUpdate (DtTime tNow) |
| virtual void | configure (osg::Node *n, const rapidjson::Value &windJsonData) |
| virtual void | modelToBeDestroyed (DtModel *model) |
Public Member Functions inherited from makVrv::DtDynamicFeatureTickable | |
| virtual | ~DtDynamicFeatureTickable () |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual bool | updateIfNeeded (DtTime tNow) |
| virtual | ~DtTickable () |
| virtual void | setIsThreadSafe (bool safe) |
| virtual bool | isThreadSafe () const |
| virtual void | setTickableListState (TickableListState safeList) |
| virtual TickableListState | tickableListState () const |
| virtual void | setUpdatePeriod (unsigned int period) |
| virtual unsigned int | updatePeriod () const |
| virtual bool | lodSystemEnabled () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Attributes | |
| static const char * | theWindRotFeatureName |
| static const char * | theTagDelayBeforeRot |
| static const char * | theTagDegPerKPH |
Protected Member Functions | |
| virtual void | disconnectFromModel () |
| virtual float | computeInitialOrientation (void) const |
| virtual void | setVelocity (float radianSpeed) |
Protected Member Functions inherited from makVrv::DtDynamicFeatureTickable | |
| DtDynamicFeatureTickable (DtDe &de, DtElementID elementId, DtUniqueID sceneObjectId, DtUniqueID uniqueId, unsigned int nodeTypeIndex) | |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| DtTickable () | |
| virtual void | slot_managerAboutToBeDeleted () |
Protected Attributes | |
| const DtDisplayUnitsConverter & | myConverter |
| osgSim::DOFTransform * | myWindRotNode |
| float | myWindSpeedTreshold |
| float | myDegPerKPH |
| float | myLastWindSpeedKmPerHr = -1 |
| DtOsgArticulatedModel * | myOsgArticulatedModel |
| bool | myInitialRotationSet = false |
| bool | myRotating = false |
Protected Attributes inherited from makVrv::DtDynamicFeatureTickable | |
| DtDe & | myDe |
| DtElementID | myElementId |
| DtUniqueID | mySceneObjectId |
| unsigned int | myNodeTypeIndex |
| DtUniqueID | myUniqueId |
| std::string | myFeatureName |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| DtSignalConnectionManager | myConnections |
| unsigned int | myFrameCounter |
| unsigned int | myFrameToUpdate |
| unsigned int | myUpdatePeriod |
| DtTime | myLastUpdateTime |
| bool | myIsThreadSafe |
| TickableListState | myTickableListState |
Static Protected Attributes | |
| static const int | theAnimationFlags |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTickable | |
| enum | TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList } |
| makVrv::DtWindRotTickable::DtWindRotTickable | ( | DtDe & | de, |
| DtElementID | elementId, | ||
| DtUniqueID | sceneObjectId, | ||
| DtUniqueID | uniqueId, | ||
| unsigned int | nodeTypeIndex, | ||
| DtOsgArticulatedModel * | osgArticulatedModel | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Update the wind rotation for the node based on the environment.
Implements makVrv::DtTickable.
The check function called by DtTickableManager to verify if an update is required.
If this function returns true, the DtTickableManager will then call update().
| [in] | tNow | is the current time-stamp. |
| true | if this object needs to be ticked. |
| false | otherwise. |
Reimplemented from makVrv::DtTickable.
|
virtual |
Configure node based on json data.
|
virtual |
listen to the model to be destroyed signal
|
protectedvirtual |
internal function to disconnect from the model
|
protectedvirtual |
add in some offset, so that different entities (e.g. wind turbines) don't look in sync
|
protectedvirtual |
internal
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
static |
Strings to get the different parts of the meta file Use these instead of hardcoded strings.
|
protected |
To convert the wind speed to display units (km/h)
|
protected |
The node affected by the update rotation calculations.
|
protected |
To constrain the rotation with respect to wind.
|
protected |
|
protected |
last speed, the update executed
|
protected |
|
protected |
whether the initial orientation was set
|
protected |
whether rotating
|
staticprotected |