VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtWindDirTickable Class Reference

The DtWindDirTickable updates a transform node to rotate into the direction of the wind.

Inheritance diagram for makVrv::DtWindDirTickable:
Inheritance graph
[legend]

Public Member Functions

 DtWindDirTickable (DtDe &de, DtElementID elementId, DtUniqueID sceneObjectId, DtUniqueID uniqueId, unsigned int nodeTypeIndex, DtOsgArticulatedModel *osgArticulatedModel)
 
virtual ~DtWindDirTickable ()
 
virtual void update (DtTime tNow)
 
virtual bool needsUpdate (DtTime tNow)
 
virtual void configure (osg::Node *node, 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 chartheWindDirFeatureName
 
static const chartheTagRotOffsetDeg
 
static const chartheTagRotDir
 
static const chartheRotDirCW
 

Protected Member Functions

virtual void disconnectFromModel ()
 
- 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

float myLastWindDir
 
osgSim::DOFTransform * myWindDirNode
 
DtSkyObjectManagermySkyObjectManager
 
float myRotOffset
 
float myRotDir
 
DtOsgArticulatedModelmyOsgArticulatedModel
 
- Protected Attributes inherited from makVrv::DtDynamicFeatureTickable
DtDemyDe
 
DtElementID myElementId
 
DtUniqueID mySceneObjectId
 
unsigned int myNodeTypeIndex
 
DtUniqueID myUniqueId
 
std::string myFeatureName
 
- Protected Attributes inherited from makVrv::DtTickable
DtTickableManagerInterfacemyManager
 
DtSignalConnectionManager myConnections
 
unsigned int myFrameCounter
 
unsigned int myFrameToUpdate
 
unsigned int myUpdatePeriod
 
DtTime myLastUpdateTime
 
bool myIsThreadSafe
 
TickableListState myTickableListState
 

Additional Inherited Members

- Public Types inherited from makVrv::DtTickable
enum  TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList }
 

Constructor & Destructor Documentation

makVrv::DtWindDirTickable::DtWindDirTickable ( DtDe de,
DtElementID  elementId,
DtUniqueID  sceneObjectId,
DtUniqueID  uniqueId,
unsigned int  nodeTypeIndex,
DtOsgArticulatedModel osgArticulatedModel 
)

CTOR.

virtual makVrv::DtWindDirTickable::~DtWindDirTickable ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtWindDirTickable::update ( DtTime  tNow)
virtual

Update the wind direction.

Implements makVrv::DtTickable.

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]tNowis the current time-stamp.
Return values
trueif this object needs to be ticked.
falseotherwise.

Reimplemented from makVrv::DtTickable.

virtual void makVrv::DtWindDirTickable::configure ( osg::Node *  node,
const rapidjson::Value &  windJsonData 
)
virtual

Configure node based on json data.

virtual void makVrv::DtWindDirTickable::modelToBeDestroyed ( DtModel model)
virtual

listen to the model to be destroyed signal

virtual void makVrv::DtWindDirTickable::disconnectFromModel ( )
protectedvirtual

internal function to disconnect from the model

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.

DtSkyObjectManager& makVrv::DtWindDirTickable::mySkyObjectManager
protected

To find the sky object.

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.

DtOsgArticulatedModel* makVrv::DtWindDirTickable::myOsgArticulatedModel
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)