VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWakeUpdater.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 #include <vrvCore/DtTickable.h>
14 #include <vrvCore/DtUniqueID.h>
15 
16 #include <boost/signals.hpp>
17 
18 #include <matrix/vlVector.h>
19 
20 class DtTaitBryan;
21 
22 namespace makVrv
23 {
24  class DtDe;
25  class DtModel;
26 
31  // during the manager 'tick' update.
34  {
35  public:
36 
40 
41  DtWakeUpdater( DtDe& de, DtUniqueID id );
42 
44  virtual ~DtWakeUpdater();
45 
50  virtual void update( DtTime tNow ) = 0;
51 
54  virtual DtTime lastUpdateTime() const;
55 
58  virtual void setWakeModel( DtModel* wakeModel );
59 
61  inline DtUniqueID uniqueId() const
62  {
63  return myUniqueId;
64  }
65 
71  virtual void setPosition(const DtVector& pos) {}
72 
78  virtual void setOrientation(const DtTaitBryan& ori) {}
79 
81  virtual void setIsAmphibious( bool isAmphibious ) {}
82 
83  virtual void setLODDistance( double distance );
84 
87  virtual void setFrozen(bool froze);
88 
89  protected:
90 
93 
96 
99 
102 
104 
106  };
107 }
DtTime myLastUpdateTime
The last time stamp when the update() was called.
Definition: DtWakeUpdater.h:101
An abstract base class for objects that require updates.
Definition: DtTickable.h:26
DtDe & myDe
The display engine.
Definition: DtWakeUpdater.h:92
DtUniqueID myUniqueId
This distributed object&#39;s unique identifier.
Definition: DtWakeUpdater.h:95
double myLODDistance
Definition: DtWakeUpdater.h:103
DtUniqueID uniqueId() const
Returns the distributed object id of this updater.
Definition: DtWakeUpdater.h:61
virtual void setOrientation(const DtTaitBryan &ori)
Manually set the current orientation.
Definition: DtWakeUpdater.h:78
Abstract wake object updater interface.
Definition: DtWakeUpdater.h:33
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
bool myFrozenFlag
Definition: DtWakeUpdater.h:105
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
virtual void setPosition(const DtVector &pos)
Manually set the current position.
Definition: DtWakeUpdater.h:71
Contains the declaration for makVrv::DtTickable.
DtModel * myWakeModel
A pointer to the current wake model being updated.
Definition: DtWakeUpdater.h:98
A model which owns a single model instance.
Definition: DtModel.h:56
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual void setIsAmphibious(bool isAmphibious)
Set whether the wake needs to check to see if its over land.
Definition: DtWakeUpdater.h:81
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)