VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtViewStateProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 #include <vrvCore/vrvCore.h>
11 #include <vrvCore/DtUniqueID.h>
12 #include <boost/function.hpp>
13 
14 namespace makVrv
15 {
16  class DtObserver;
17 
24  {
25  public:
26 
27  struct Vec3d { double x; double y; double z; };
28 
29  typedef boost::function<void (DtObserver&)> ObserverAction;
30 
33 
36 
38  ObserverAction makeAbsolute(double x, double y, double z,
39  double psi, double theta, double phi, long ignoreFlags );
40 
42  ObserverAction makeTether(const DtUniqueID& targetId,
43  double x, double y, double z,
44  double psi, double theta, double phi, long ignoreFlags);
45 
47  ObserverAction makeMimic(const DtUniqueID& targetId,
48  double x, double y, double z,
49  double psi, double theta, double phi, long ignoreFlags);
50 
52  ObserverAction makeTrack(const DtUniqueID& targetId,
53  double x, double y, double z, long ignoreFlags);
54 
56  ObserverAction makeTetherTrack(const DtUniqueID& tetherId,
57  const DtUniqueID& trackId, double x, double y, double z, long ignoreFlags);
58 
60  ObserverAction makeMimicTrack(const DtUniqueID& mimicId,
61  const DtUniqueID& trackId, double x, double y, double z, long ignoreFlags);
62 
64  ObserverAction makeFollow(const DtUniqueID& targetId,
65  double x, double y, double z, long ignoreFlags);
66 
68  ObserverAction makeOrbit(const DtUniqueID& targetId, double azimuthRate,
69  double attachX, double attachY, double attachZ,
70  double offsetX, double offsetY, double offsetZ, long ignoreFlags);
71 
73  ObserverAction makeCompass(const DtUniqueID& targetId, double bodyHeading,
74  double headingOffset, double pitch, double pitchOffset, double roll,
75  double radius, long ignoreFlags);
76 
78  ObserverAction makeMove( double geocX, double geocY, double geocZ,
79  double geocPsi, double geocTheta, double geocPhi, int move, int turn,
80  bool reset, long ignoreFlags );
81 
82  protected:
83 
85  static void setAbsolute(double x, double y, double z,
86  double psi, double theta, double phi, long ignoreFlags,
87  DtObserver& obs);
88 
97  static void setTether(const DtUniqueID& targetId,
98  const Vec3d& attachPos,
99  //double x, double y, double z,
100  double psi, double theta, double phi, long ignoreFlags,
101  DtObserver& obs);
102 
104  static void setMimic(const DtUniqueID& targetId,
105  const Vec3d& attachPos,
106  //double x, double y, double z,
107  double psi, double theta, double phi, long ignoreFlags,
108  DtObserver& obs);
109 
111  static void setTrack(const DtUniqueID& targetId,
112  double x, double y, double z, long ignoreFlags,
113  DtObserver& obs);
114 
116  static void setTetherTrack(
117  const DtUniqueID& tetherId, const DtUniqueID& trackId,
118  double x, double y, double z, long ignoreFlags,
119  DtObserver& obs);
120 
122  static void setMimicTrack(
123  const DtUniqueID& mimicId, const DtUniqueID& trackId,
124  double x, double y, double z, long ignoreFlags,
125  DtObserver& obs);
126 
128  static void setFollow(const DtUniqueID& targetId,
129  double x, double y, double z, long ignoreFlags,
130  DtObserver& obs);
131 
135  struct RadiusArg
136  {
137  double heading;
138  double pitch;
139  double radius;
140  };
141 
146  static void setOrbit(const DtUniqueID& targetId,
147  double azimuthRate, const Vec3d& attachPos, const Vec3d& offset, long ignoreFlags,
148  DtObserver& obs);
149 
151  static void setCompass(const DtUniqueID& targetId, const RadiusArg& pos,
152  double headingOffset, double pitchOffset, double roll, long ignoreFlags,
153  DtObserver& obs);
154 
156  static void setMove(const Vec3d& geocPos, const Vec3d& geocOrient, int move, int turn,
157  bool reset, long ignoreFlags, DtObserver& obs);
158 
159  };
160 }
Args to modes that define relative position of observer by radius and angles. Mainly exists to avoid ...
Definition: DtViewStateProcessor.h:135
boost::function< void(DtObserver &)> ObserverAction
Definition: DtViewStateProcessor.h:29
Definition: DtViewStateProcessor.h:27
double pitch
Definition: DtViewStateProcessor.h:138
A facade for a DtObserverObject.
Definition: DtObserver.h:38
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
double heading
Definition: DtViewStateProcessor.h:137
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Collection of factory methods to produce functions for altering the state of an observer to match som...
Definition: DtViewStateProcessor.h:23
Contains makVrv::DtUniqueID type.
double radius
Definition: DtViewStateProcessor.h:139
double z
Definition: DtViewStateProcessor.h:27
voidpf uLong offset
Definition: ioapi.h:42
Contains DLL export macros.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)