VR-Forces 4.10 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 <matrix/vlVector.h>
17 
18 class DtTaitBryan;
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtModel;
24 
29  // during the manager 'tick' update.
32  {
33  public:
34 
38 
39  DtWakeUpdater( DtDe& de, DtUniqueID id );
40 
42  virtual ~DtWakeUpdater();
43 
48  virtual void update( DtTime tNow ) = 0;
49 
52  virtual DtTime lastUpdateTime() const;
53 
56  virtual void setWakeModel( DtModel* wakeModel );
57 
59  inline DtUniqueID uniqueId() const
60  {
61  return myUniqueId;
62  }
63 
69  virtual void setPosition(const DtVector& pos) {}
70 
76  virtual void setOrientation(const DtTaitBryan& ori) {}
77 
79  virtual void setIsAmphibious( bool isAmphibious ) {}
80 
81  virtual void setLODDistance( double distance );
82 
85  virtual void setFrozen(bool froze);
86 
87  protected:
88 
91 
94 
97 
100 
102 
104  };
105 }
DtTime myLastUpdateTime
The last time stamp when the update() was called.
Definition: DtWakeUpdater.h:99
An abstract base class for objects that require updates.
Definition: DtTickable.h:26
DtDe & myDe
The display engine.
Definition: DtWakeUpdater.h:90
DtUniqueID myUniqueId
This distributed object&#39;s unique identifier.
Definition: DtWakeUpdater.h:93
double myLODDistance
Definition: DtWakeUpdater.h:101
DtUniqueID uniqueId() const
Returns the distributed object id of this updater.
Definition: DtWakeUpdater.h:59
virtual void setOrientation(const DtTaitBryan &ori)
Manually set the current orientation.
Definition: DtWakeUpdater.h:76
Abstract wake object updater interface.
Definition: DtWakeUpdater.h:31
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:103
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
virtual void setPosition(const DtVector &pos)
Manually set the current position.
Definition: DtWakeUpdater.h:69
Contains the declaration for makVrv::DtTickable.
DtModel * myWakeModel
A pointer to the current wake model being updated.
Definition: DtWakeUpdater.h:96
A model which owns a single model instance.
Definition: DtModel.h:55
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:79
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)