VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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>
14 #include <osgSim/DOFTransform>
15 
16 namespace makVrv
17 {
18  class DtDisplayUnitsConverter;
19  class DtSkyObjectManager;
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 
74  float myRotOffset;
75 
77  float myRotDir;
78  };
79 
83  {
84 
85  public:
86 
89 
91  virtual ~DtWindDirTickableCreator();
92 
94  virtual DtWindDirTickable* create(DtDe& de, osg::Node* node,
95  DtOsgArticulatedModel* osgArticulatedModel,
96  const rapidjson::Value& jsonObject, const std::string& modelDefName,
97  const DtElementID elementId, const DtUniqueID uniqueId,
98  const bool useInstancing, const unsigned int nodeTypeIndex);
99 
100  };
101 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)