VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtEllipseUpdater.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 
13 #include <vrvCore/vrvCore.h>
14 #include <vrvCore/DtSceneObject.h>
15 #include <vrvCore/DtTickable.h>
16 #include <vrvCore/DtUniqueID.h>
17 #include <matrix/vlTaitBryan.h>
18 
19 #include <matrix/vlVector.h>
20 
21 namespace makVrv
22 {
27  {
28  public:
29 
32 
34  virtual ~DtEllipseUpdater();
35 
37  virtual void update( double simTime );
38 
39  virtual void setOrientationDelta(double);
40 
42  virtual void setClamped(bool);
43 
46  virtual void setPosition(int, const DtVector&);
47 
50  virtual void setSceneObject( DtSceneObject* sceneObject );
51 
58  virtual bool needsUpdate( DtTime tNow );
59 
63  virtual void setUpdaterPosition( int vtx, const DtVector& pos );
64 
68  virtual void setUpdaterOrientation( int vtx, const DtTaitBryan& ori );
69 
72  virtual void setDynamicOrigin(bool);
73 
74  protected:
75 
76  virtual bool computeGroundClampingHit(const DtVector& up,
77  const DtVector& unclampedPosition, DtVector& hitLocation, DtVector& hitNormal);
78 
80  virtual DtTaitBryan computeOrientation(const DtVector& pos,
81  double topoHeading) const;
82 
85  virtual void slot_sceneObjectToBeDeleted( const DtUniqueID& id );
87 
88  private:
94  DtSceneObject::ObjectTransform& getOrCreateTransform( int vtx );
95 
96  protected:
99 
101 
103  bool myClamped;
104 
107 
110 
113 
119 
121 
122  DtTaitBryan myInitialOrientation;
123 
127  };
128 }
129 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)