VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtTritonWakeUpdater.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 #include <vrvTriton/vrvTriton.h>
13 
14 #include <vrvCore/DtWakeUpdater.h>
16 
17 #include <matrix/vlVector.h>
18 #include <matrix/vlTaitBryan.h>
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtTritonWakeModel;
24 
32  {
33  public:
38 
40  virtual ~DtTritonWakeUpdater();
41 
44  virtual void update( DtTime tNow );
45 
50  virtual bool needsUpdate( DtTime tNow );
51 
57  virtual void setPosition(const DtVector& pos);
58 
64  virtual void setOrientation(const DtTaitBryan& ori);
65 
67  virtual void setIsAmphibious( bool isAmphibious );
68 
69  protected:
70 
73  virtual DtTritonWakeModel* wakeModel() const;
74 
85  virtual DtVector calcWakeOriginAndSeaLevel( DtVector& currentPos,
86  const DtTaitBryan& orientation, double wakeOffset );
87 
90  virtual bool getCurrentShipKinematics(double t, DtVector& position,
91  DtVector& velocity, DtTaitBryan& orientation) const;
92 
93  protected:
96  DtDoubleSmoother myVelocityYSmoother, myVelocityZSmoother;
97 
98  // wake values used if a dead-reckoner does not exist.
103  DtTaitBryan myOrientation;
105  };
106 
107 }

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)