VR-Forces Developer's Guide
 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) 2023 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 void setWakeModel( DtModel* wakeModel );
53 
55  inline DtUniqueID uniqueId() const
56  {
57  return myUniqueId;
58  }
59 
65  virtual void setPosition(const DtVector& pos) {}
66 
72  virtual void setOrientation(const DtTaitBryan& ori) {}
73 
75  virtual void setIsAmphibious( bool isAmphibious ) {}
76 
77  virtual void setLODDistance( double distance );
78 
81  virtual void setFrozen(bool froze);
82 
86  virtual void setMaxRenderAngle( double angle );
87 
89  virtual void setSpeedRenderCuttof( double cutoff );
90  protected:
91 
94 
97 
100 
104 
106  };
107 }
double myMaxRenderAngle
Definition: DtWakeUpdater.h:101
An abstract base class for objects that require updates. This object automatically adds itself to a D...
Definition: DtTickable.h:26
DtDe & myDe
The display engine.
Definition: DtWakeUpdater.h:93
DtUniqueID myUniqueId
This distributed object&#39;s unique identifier.
Definition: DtWakeUpdater.h:96
double myLODDistance
Definition: DtWakeUpdater.h:103
DtUniqueID uniqueId() const
Returns the distributed object id of this updater.
Definition: DtWakeUpdater.h:55
virtual void setOrientation(const DtTaitBryan &ori)
Manually set the current orientation.
Definition: DtWakeUpdater.h:72
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. Coordinates are in local database coordinates The coordinat...
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
double mySpeedRenderCuttoff
Definition: DtWakeUpdater.h:102
bool myFrozenFlag
Definition: DtWakeUpdater.h:105
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
virtual void setPosition(const DtVector &pos)
Manually set the current position.
Definition: DtWakeUpdater.h:65
Contains the declaration for makVrv::DtTickable.
DtModel * myWakeModel
A pointer to the current wake model being updated.
Definition: DtWakeUpdater.h:99
A model which owns a single model instance. A DtModel is a managing container for a single DtModelIns...
Definition: DtModel.h:56
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
virtual void setIsAmphibious(bool isAmphibious)
Set whether the wake needs to check to see if its over land.
Definition: DtWakeUpdater.h:75
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)