VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEnvironmentalPointKinStateVisualizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
11 
12 #pragma once
13 
15 #include <vrvCore/DtSceneObject.h>
16 #include <matrix/vlVector.h>
18 
19 namespace makVrv
20 {
21  class DtModelAgent;
22  class DtGroundClampingUpdaterAgent;
23  class DtEmbarkationUpdaterAgent;
24 
30  {
31  public:
32 
35  DtStateListener& listener, int modelSet);
36 
39 
41  virtual void setOriginAndOffset(const DtVector& origin,
42  const DtVector& offset);
43 
46  const DtVector& offset() const;
47 
49  const DtVector& origin() const;
50 
52  virtual void setVisualizerDefinition(const DtVisualizerDefinition& visDef);
53 
56  virtual DtTaitBryan level();
57 
58  DtEnvironmentalStateListener& environmentalStateListener()
59  {
60  return *myEnvironmentalListener;
61  }
62 
63  DtGroundClampingUpdaterAgent* updaterAgent()
64  {
65  return myUpdater;
66  }
67 
69  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
70 
72  static const DtStateVisualizer::TypeInfo& theTypeInfo();
73 
75  virtual void setRelativeLocation(const DtVector&);
76 
78  virtual void setCanBeAttached(bool);
79 
81  virtual void startAttached();
82 
84  virtual void endAttached();
85 
87  virtual void setGroundClamp(bool);
88 
91  virtual void setAttached(DtUniqueID);
92 
93  protected:
94 
96  virtual void startGroundClamping();
97  virtual void stopGroundClamping();
98 
99  virtual void createModelAgents();
100  virtual void destroyModelAgents();
101  virtual void setModelDefinitionForAgents();
102 
103  virtual void resetSpatial();
104 
105  protected:
106  DtModelAgent* myModelAgent;
107  DtGroundClampingUpdaterAgent* myUpdater;
111 
112  // Same as myListener, but casted for convenience
116  DtEmbarkationUpdaterAgent* myAttachedUpdaterAgent;
118 
120  };
121 
126 }

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)