VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtWindDirTickable.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  DtWindDirTickable(DtDe& de, DtElementID elementId, DtUniqueID sceneObjectId,
31  DtUniqueID uniqueId, bool useInstancing, unsigned int nodeTypeIndex);
32 
34  virtual ~DtWindDirTickable();
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* theWindDirFeatureName;
57  static const char* theTagRotOffsetDeg;
58  static const char* theTagRotDir;
59  static const char* theRotDirCW;
60  // @}
61 
62  protected:
65 
67  osgSim::DOFTransform* myWindDirNode;
68 
71  float myRotOffset;
72 
74  float myRotDir;
75  };
76 
80  {
81 
82  public:
83 
86 
88  virtual ~DtWindDirTickableCreator();
89 
91  virtual DtWindDirTickable* create(DtDe& de, osg::Node* node,
92  const rapidjson::Value& jsonObject, const std::string& modelDefName,
93  const DtElementID elementId, const DtUniqueID sceneObjectId,
94  const DtUniqueID uniqueId, const bool useInstancing,
95  const unsigned int nodeTypeIndex);
96 
97  };
98 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)