The DtWindSwitchTickable class is responsible for switching nodes based on the current wind speed.
More...
|
| | DtWindSwitchTickable (DtDe &de, DtElementID elementId, DtUniqueID sceneObjectId, DtUniqueID uniqueId, unsigned int nodeTypeIndex, DtOsgArticulatedModel *osgArticulatedModel) |
| | CTOR. More...
|
| |
| virtual | ~DtWindSwitchTickable () |
| | DTOR. More...
|
| |
| virtual void | update (DtTime tNow) |
| | Update the switch node based on the wind speed. More...
|
| |
| virtual bool | needsUpdate (DtTime tNow) |
| | The check function called by DtTickableManager to verify if an update is required. More...
|
| |
| virtual void | configure (osg::Node *n, DtOsgArticulatedModel *osgArticulatedModel, const rapidjson::Value &windJsonData) |
| | Configure the meta file tickable object. More...
|
| |
| unsigned int | getSwitchIndexForSpeed (double windSpeedMperS) |
| | Get the switch index based on the wind speed (m/s) More...
|
| |
| virtual void | modelToBeDestroyed (DtModel *model) |
| | listen to the model to be destroyed signal More...
|
| |
| virtual | ~DtDynamicFeatureTickable () |
| | DTOR. More...
|
| |
| virtual bool | updateIfNeeded (DtTime tNow) |
| | Calls needsUpdate(), and then calls update() if needsUpdate() is true. More...
|
| |
| virtual | ~DtTickable () |
| | Virtual DTOR. More...
|
| |
| virtual void | setIsThreadSafe (bool safe) |
| | Get/set whether this tickable can be updated in parallel with other tickables. More...
|
| |
| virtual bool | isThreadSafe () const |
| |
| virtual void | setTickableListState (TickableListState safeList) |
| | Track which tickable list (if any) this tickable is on Since the tickable constructor puts ALL tickables on the main (unThreadSafe) to start we need a way to check which list a tickable is on (and this way we can request removals from the correct list instead of having to call DtTickableManager::removeTickableObject(), which tries both lists). More...
|
| |
| virtual TickableListState | tickableListState () const |
| |
| virtual void | setUpdatePeriod (unsigned int period) |
| | Specify how often (in # of frames) this tickable should call update. More...
|
| |
| virtual unsigned int | updatePeriod () const |
| |
| virtual bool | lodSystemEnabled () const |
| | is the update LOD system enabled, overridden by subclasses More...
|
| |
| | DtVirtualBaseClass () |
| | Do nothing constructor. More...
|
| |
| virtual | ~DtVirtualBaseClass () |
| | Virtual do nothing destructor. More...
|
| |
The DtWindSwitchTickable class is responsible for switching nodes based on the current wind speed.
| virtual makVrv::DtWindSwitchTickable::~DtWindSwitchTickable |
( |
| ) |
|
|
virtual |
| 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, |
|
|
DtOsgArticulatedModel * |
osgArticulatedModel, |
|
|
const rapidjson::Value & |
windJsonData |
|
) |
| |
|
virtual |
Configure the meta file tickable object.
| unsigned int makVrv::DtWindSwitchTickable::getSwitchIndexForSpeed |
( |
double |
windSpeedMperS | ) |
|
Get the switch index based on the wind speed (m/s)
| virtual void makVrv::DtWindSwitchTickable::modelToBeDestroyed |
( |
DtModel * |
model | ) |
|
|
virtual |
listen to the model to be destroyed signal
| virtual void makVrv::DtWindSwitchTickable::disconnectFromModel |
( |
| ) |
|
|
protectedvirtual |
internal function to disconnect from the model
| 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 |
| const char* makVrv::DtWindSwitchTickable::theTagSwitchIndices |
|
static |
| 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: