19 #include <matrix/vlVector.h>
20 #include <rapidjson/document.h>
21 #include <osgSim/MultiSwitch>
25 class DtDisplayUnitsConverter;
27 class DtOsgArticulatedModel;
29 class DtCoordinateSystem;
47 DtVector computeWindVec(
DtSceneObject* sceneObj,
float windDirRad);
50 virtual void update(
DtTime tNow );
52 void SetWindNodeSwitch(
double windSpeed);
62 virtual bool needsUpdate(
DtTime tNow );
68 unsigned int getSwitchIndexForSpeed(
double windSpeed);
71 virtual void modelToBeDestroyed(
DtModel* model);
82 virtual void disconnectFromModel();
85 virtual void slot_coordinateSystemChanged();
static const char * theShipFlagSwitchFeatureName
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtShipFlagSwitchTickable.h:76
DtTemplatedTickableCreator< DtShipFlagSwitchTickable, true > DtShipFlagSwitchTickableCreator
Definition: DtShipFlagSwitchTickable.h:125
DtDynamicFeatureTickable is a tickable with extra information from .meta files for parameters for upd...
Definition: DtDynamicFeatureTickable.h:24
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv::DtDynamicFeatureTickable class.
boost::signalslib::connection myModelToBeDestroyedConnection
Definition: DtShipFlagSwitchTickable.h:121
An articulated model manipulator for controlling an articulated model. Supports indirect rendering of...
Definition: DtOsgArticulatedModel.h:67
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
Definition: DtDoubleSmoother.h:18
DtOsgArticulatedModel * myOsgArticulatedModel
Definition: DtShipFlagSwitchTickable.h:113
std::vector< double > myWindSpeeds
Windspeeds.
Definition: DtShipFlagSwitchTickable.h:110
Definition: DtMetaObjectCreator.h:53
IMGUI_API void Value(const char *prefix, bool b)
DtSceneObject * mySceneObject
The scene object.
Definition: DtShipFlagSwitchTickable.h:89
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtTime myLastTime
Last update time.
Definition: DtShipFlagSwitchTickable.h:98
Utility class for doing global unit conversion. All conversions functions use the following naming co...
Definition: DtDisplayUnitsSettingsManager.h:62
float myLastWindSpeed
Last update wind speed.
Definition: DtShipFlagSwitchTickable.h:92
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
The DtShipFlagSwitchTickable class is responsible for switching nodes based on the current wind speed...
Definition: DtShipFlagSwitchTickable.h:34
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
DtDoubleSmoother myFlagSpeedSmoother
Moving average of last 10 ship speeds.
Definition: DtShipFlagSwitchTickable.h:101
DtSignalConnectionManager myConnections
Definition: DtShipFlagSwitchTickable.h:115
Base class to provide boost signal/slot management.
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:44
static const char * theTagWindSpeeds
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtShipFlagSwitchTickable.h:77
A model which owns a single model instance. A DtModel is a managing container for a single DtModelIns...
Definition: DtModel.h:56
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
osgSim::MultiSwitch * myWindSwitchNode
The actual node that contains switch states.
Definition: DtShipFlagSwitchTickable.h:107
Contains the declaration for makVrv::DtDoubleSmoother.
DtVector myLastPos
Last position.
Definition: DtShipFlagSwitchTickable.h:95
std::vector< int > mySwitchIndices
Definition: DtShipFlagSwitchTickable.h:111
static const char * theTagSwitchIndices
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtShipFlagSwitchTickable.h:78
Contains DLL export macros.
const DtDisplayUnitsConverter & myConverter
To convert the wind speed to display units (km/h)
Definition: DtShipFlagSwitchTickable.h:104