VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAggregateStateInterceptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 
14 #include <vlutil/vlTime.h>
15 #include <vl/globalObjectDesignator.h>
16 
17 #include <matrix/vlVector.h>
18 #include <matrix/vlTaitBryan.h>
19 #include <vlpi/disEnums.h>
20 #include <vlpi/entityType.h>
21 
22 class DtStateRepository;
24 
25 namespace makVrv
26 {
27  namespace DT_PROTOCOL_NAMESPACE
28  {
29  class DtVrlinkAggregateStateListener;
30  class DtVrlinkConnection;
31 
36  template <typename StateRepClass>
38  {
39  public:
40 
44 
47 
50  virtual void setMarkingText(const char* text);
51 
52  private:
54  //\throws DtCorrutedState this class is not copyable.
56 
58  //\throws DtCorrutedState this class is not copyable.
60 
62  //\throws DtCorrutedState this class is not copyable.
63  virtual DtStateRepository* clone(bool copy = false) const;
64 
65 
67  virtual void setAggregateID(const DtEntityIdentifier& id);
68 
71  virtual void setAll(
72  const DtVector& loc,
73  const DtVector32& vel,
74  const DtTaitBryan& ori,
75  const DtVector32& acc,
76  const DtVector32& rotVel,
77  DtTime t);
78 
81  virtual void setLocation(const DtVector & location, DtTime aTime);
82 
84  virtual void setVelocity(const DtVector32 & Velocity, DtTime aTime);
85 
87  virtual void setAcceleration(const DtVector32 & Acceleration, DtTime aTime);
88 
90  virtual void setOrientation(const DtTaitBryan& orient, DtTime aTime);
91 
93  virtual void setRotationalVelocity(const DtVector32 & BodyRates, DtTime aTime);
94 
96  virtual void setAlgorithm(DtDeadReckonTypes alg);
97 
103  virtual void setHostGlobalId( const DtGlobalObjectDesignator& id );
104 
105  virtual void clearHostGlobalId();
106 
108  virtual void setRelativeLocation(const DtVector & location, DtTime aTime);
109 
112  virtual void setRelativeVelocity(const DtVector32 & Velocity, DtTime aTime);
113 
116  virtual void setRelativeAcceleration(const DtVector32 & Acceleration,
117  DtTime aTime);
118 
120  virtual void setRelativeOrientation(const DtTaitBryan& orient,
121  DtTime aTime);
122 
124  virtual void setRelativeRotationalVelocity(const DtVector32 & BodyRates,
125  DtTime aTime);
126 
128  virtual void setRelativeFrozen(bool onOff);
129 
131  virtual void setRelativeAlgorithm(DtDeadReckonTypes alg);
132 
134  virtual void setRelativePosition( const DtVector & newVal );
135 
137  virtual void setDimensions(const DtVector32& dims);
138 
140  virtual void setForceId(DtForceType);
141 
142  public:
143 
144  protected:
146  };
147  }
148 }
DtVrlinkAggregateStateListener * myListener
Definition: DtAggregateStateInterceptor.h:145
virtual void setLocation(const DtVector &location, DtTime aTime)
Set the location of the center of mass in geocentric world coordinates at aTime.
virtual void setAll(const DtVector &loc, const DtVector32 &vel, const DtTaitBryan &ori, const DtVector32 &acc, const DtVector32 &rotVel, DtTime t)
Coherently set all DR parameters, thus avoiding DR computations associated with a partial set...
virtual void setRelativeAlgorithm(DtDeadReckonTypes alg)
Set the dead reckoning algorithm.
virtual void setAcceleration(const DtVector32 &Acceleration, DtTime aTime)
Sets the acceleration at aTime.
virtual void setDimensions(const DtVector32 &dims)
Set and signal dimension changed.
The state interface intercepts state calls and translates them into.
Definition: DtAggregateStateInterceptor.h:37
virtual void setRelativeAcceleration(const DtVector32 &Acceleration, DtTime aTime)
Set the relative acceleration of the entity with respect to the host at aTime.
virtual void setOrientation(const DtTaitBryan &orient, DtTime aTime)
Set the orientation at aTime.
virtual void setVelocity(const DtVector32 &Velocity, DtTime aTime)
Set the velocity in meters per second at aTime.
virtual void setAlgorithm(DtDeadReckonTypes alg)
Set the dead reckoning algorithm.
virtual void setAggregateID(const DtEntityIdentifier &id)
Set the aggregate ID.
virtual void setRelativeLocation(const DtVector &location, DtTime aTime)
Set the location of the center of mass in world coordinates at the given time.
Contains makVrv::DtVirtualBaseClass class.
virtual void setRelativeRotationalVelocity(const DtVector32 &BodyRates, DtTime aTime)
Set the relative rotational velocity.
virtual void setMarkingText(const char *text)
Set the marking text attribute.
virtual void setRelativePosition(const DtVector &newVal)
Set the relative position on the host.
DtAggregateStateInterceptor & operator=(const DtAggregateStateInterceptor &orig)
assignment operator
#define DT_PROTOCOL_NAMESPACE
Make VR-Vantage VRLink code export with library #ifdef DL_DLL_IGCONVRLINK #undef DL_DLL_IGCONVRLINK #...
Definition: export.h:32
virtual DtStateRepository * clone(bool copy=false) const
Return a copy/empty object of the same type as this.
virtual void setRelativeOrientation(const DtTaitBryan &orient, DtTime aTime)
Set the relative orientation of the entity with respect to the host.
virtual void setHostGlobalId(const DtGlobalObjectDesignator &id)
Sets the globalId of the attached host.
DtAggregateStateInterceptor(DtVrlinkAggregateStateListener *listener)
default constructor Interceptor takes ownership of the listener.
virtual void setForceId(DtForceType)
Set and signal force change.
virtual void setRelativeFrozen(bool onOff)
Set relative frozen.
virtual void setRelativeVelocity(const DtVector32 &Velocity, DtTime aTime)
Set the relative velocity of the entity in meters per second with respect to the host at aTime...
virtual void setRotationalVelocity(const DtVector32 &BodyRates, DtTime aTime)
Set the rotational velocity of an entity at aTime.

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)