15 #include <matrix/vlVector.h>
16 #include <rapidjson/document.h>
17 #include <osgSim/MultiSwitch>
21 class DtDisplayUnitsConverter;
34 DtUniqueID uniqueId,
bool useInstancing,
unsigned int nodeTypeIndex);
43 virtual void update(
DtTime tNow );
45 void SetWindNodeSwitch(
double windSpeed);
55 virtual bool needsUpdate(
DtTime tNow );
61 unsigned int getSwitchIndexForSpeed(
double windSpeed);
117 const bool useInstancing,
const unsigned int nodeTypeIndex);
static const char * theShipFlagSwitchFeatureName
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtShipFlagSwitchTickable.h:67
DtDynamicFeatureTickable is a tickable with extra information from .meta files for parameters for upd...
Definition: DtDynamicFeatureTickable.h:25
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv::DtDynamicFeatureTickable class.
An articulated model manipulator for controlling an articulated model.
Definition: DtOsgArticulatedModel.h:56
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:26
Definition: DtDoubleSmoother.h:18
std::vector< double > myWindSpeeds
Windspeeds.
Definition: DtShipFlagSwitchTickable.h:95
IMGUI_API void Value(const char *prefix, bool b)
DtSceneObject * mySceneObject
The scene object.
Definition: DtShipFlagSwitchTickable.h:74
DtTime myLastTime
Last update time.
Definition: DtShipFlagSwitchTickable.h:83
Utility class for doing global unit conversion.
Definition: DtDisplayUnitsSettingsManager.h:59
float myLastWindSpeed
Last update wind speed.
Definition: DtShipFlagSwitchTickable.h:77
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
The DtShipFlagSwitchTickable class is responsible for switching nodes based on the current wind speed...
Definition: DtShipFlagSwitchTickable.h:27
DtDoubleSmoother myFlagSpeedSmoother
Moving average of last 10 ship speeds.
Definition: DtShipFlagSwitchTickable.h:86
DtDisplayUnitsConverter & myConverter
To convert the wind speed to display units (km/h)
Definition: DtShipFlagSwitchTickable.h:89
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:41
static const char * theTagWindSpeeds
Definition: DtShipFlagSwitchTickable.h:68
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
osgSim::MultiSwitch * myWindSwitchNode
The actual node that contains switch states.
Definition: DtShipFlagSwitchTickable.h:92
Contains the declaration for makVrv::DtDoubleSmoother.
DtVector myLastPos
Last position.
Definition: DtShipFlagSwitchTickable.h:80
std::vector< int > mySwitchIndices
Definition: DtShipFlagSwitchTickable.h:96
static const char * theTagSwitchIndices
Definition: DtShipFlagSwitchTickable.h:69
DtShipFlagSwitchTickableCreator class.
Definition: DtShipFlagSwitchTickable.h:101
Contains DLL export macros.