VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtWindRotTickable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCore/vrvCore.h>
12 #include <rapidjson/document.h>
15 #include <osgSim/DOFTransform>
16 
17 namespace makVrv
18 {
19  class DtDisplayUnitsConverter;
20 
26  {
27  public:
28 
30  DtWindRotTickable(DtDe& de, DtElementID elementId, DtUniqueID sceneObjectId,
31  DtUniqueID uniqueId, bool useInstancing, unsigned int nodeTypeIndex);
32 
34  virtual ~DtWindRotTickable();
35 
37  virtual void update( DtTime tNow );
38 
47  virtual bool needsUpdate( DtTime tNow );
48 
50  virtual void configure(osg::Node* n, const rapidjson::Value& windJsonData);
51 
52  public:
53  // @{
56  static const char* theWindRotFeatureName;
57  static const char* theTagDelayBeforeRot;
58  static const char* theTagDegPerKPH;
59  // @}
60 
61  protected:
64 
67 
70 
72  osgSim::DOFTransform* myWindRotNode;
73 
76  float myDegPerKPH;
77 
80  };
81 
85  {
86 
87  public:
88 
91 
93  virtual ~DtWindRotTickableCreator();
94 
96  virtual DtWindRotTickable* create(DtDe& de, osg::Node* node,
97  const rapidjson::Value& jsonObject, const std::string& modelDefName,
98  const DtElementID elementId, const DtUniqueID sceneObjectId,
99  const DtUniqueID uniqueId, const bool useInstancing,
100  const unsigned int nodeTypeIndex);
101 
102  };
103 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)