VR-Forces Development_Version 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>
14 #include <osgSim/DOFTransform>
15 
16 namespace makVrv
17 {
18  class DtDisplayUnitsConverter;
19 
25  {
26  public:
27 
29  DtWindDirTickable(DtDe& de, DtElementID elementId, DtUniqueID sceneObjectId,
30  DtUniqueID uniqueId, bool useInstancing, unsigned int nodeTypeIndex);
31 
33  virtual ~DtWindDirTickable();
34 
36  virtual void update( DtTime tNow );
37 
46  virtual bool needsUpdate( DtTime tNow );
47 
49  virtual void configure(osg::Node* n, const rapidjson::Value& windJsonData);
50 
51  public:
52  // @{
55  static const char* theWindDirFeatureName;
56  static const char* theTagRotOffsetDeg;
57  static const char* theTagRotDir;
58  static const char* theRotDirCW;
59  // @}
60 
61  protected:
64 
66  osgSim::DOFTransform* myWindDirNode;
67 
70  float myRotOffset;
71 
73  float myRotDir;
74  };
75 
79  {
80 
81  public:
82 
85 
87  virtual ~DtWindDirTickableCreator();
88 
90  virtual DtWindDirTickable* create(DtDe& de, osg::Node* node,
91  const rapidjson::Value& jsonObject, const std::string& modelDefName,
92  const DtElementID elementId, const DtUniqueID sceneObjectId,
93  const DtUniqueID uniqueId, const bool useInstancing,
94  const unsigned int nodeTypeIndex);
95 
96  };
97 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)