VR-Vantage API Documentation
DtEllipseUpdater.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtEllipseUpdater.h,v $ $Revision: 1.19 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCore/vrvCore.h>
17 #include <matrix/vlTaitBryan.h>
18 
19 #include <matrix/vlVector.h>
20 
21 namespace makVrv
22 {
27  {
28  public:
29 
31  DtEllipseUpdater(makVrv::DtDe& de, makVrv::DtUniqueID id, bool suppressTick = false );
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 
48  protected:
49 
50  virtual bool computeGroundClampingHit(const DtVector& up,
51  const DtVector& unclampedPosition, DtVector& hitLocation, DtVector& hitNormal);
52 
54  virtual DtTaitBryan computeOrientation( const DtVector& pos,
55  double topoHeading) const;
56 
57  protected:
58  DtVector myOrigin;
59  DtVector myClampedOrigin;
60 
62 
64  bool myClamped;
65  };
66 }
67 


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)