![]() |
VR-Forces Developer's Guide
|
Collection of factory methods to produce functions for altering the state of an observer to match some specification (e.g. from a DtTetherVCPdu).
The functions map old stealth modes to new stealth modes.
Classes | |
| struct | RadiusArg |
| struct | Vec3d |
Public Types | |
| typedef boost::function< void(DtObserver &)> | ObserverAction |
Public Member Functions | |
| DtViewStateProcessor () | |
| ~DtViewStateProcessor () | |
| ObserverAction | makeAbsolute (double x, double y, double z, double psi, double theta, double phi, long ignoreFlags) |
| ObserverAction | makeTether (const DtUniqueID &targetId, double x, double y, double z, double psi, double theta, double phi, long ignoreFlags) |
| ObserverAction | makeMimic (const DtUniqueID &targetId, double x, double y, double z, double psi, double theta, double phi, long ignoreFlags) |
| ObserverAction | makeTrack (const DtUniqueID &targetId, double x, double y, double z, long ignoreFlags) |
| ObserverAction | makeTetherTrack (const DtUniqueID &tetherId, const DtUniqueID &trackId, double x, double y, double z, long ignoreFlags) |
| ObserverAction | makeMimicTrack (const DtUniqueID &mimicId, const DtUniqueID &trackId, double x, double y, double z, long ignoreFlags) |
| ObserverAction | makeFollow (const DtUniqueID &targetId, double x, double y, double z, long ignoreFlags) |
| ObserverAction | makeOrbit (const DtUniqueID &targetId, double azimuthRate, double attachX, double attachY, double attachZ, double offsetX, double offsetY, double offsetZ, long ignoreFlags) |
| ObserverAction | makeCompass (const DtUniqueID &targetId, double bodyHeading, double headingOffset, double pitch, double pitchOffset, double roll, double radius, long ignoreFlags) |
| ObserverAction | makeMove (double geocX, double geocY, double geocZ, double geocPsi, double geocTheta, double geocPhi, int move, int turn, bool reset, long ignoreFlags) |
Static Protected Member Functions | |
| static void | setAbsolute (double x, double y, double z, double psi, double theta, double phi, long ignoreFlags, DtObserver &obs) |
| static void | setTether (const DtUniqueID &targetId, const Vec3d &attachPos, double psi, double theta, double phi, long ignoreFlags, DtObserver &obs) |
| static void | setMimic (const DtUniqueID &targetId, const Vec3d &attachPos, double psi, double theta, double phi, long ignoreFlags, DtObserver &obs) |
| static void | setTrack (const DtUniqueID &targetId, double x, double y, double z, long ignoreFlags, DtObserver &obs) |
| static void | setTetherTrack (const DtUniqueID &tetherId, const DtUniqueID &trackId, double x, double y, double z, long ignoreFlags, DtObserver &obs) |
| static void | setMimicTrack (const DtUniqueID &mimicId, const DtUniqueID &trackId, double x, double y, double z, long ignoreFlags, DtObserver &obs) |
| static void | setFollow (const DtUniqueID &targetId, double x, double y, double z, long ignoreFlags, DtObserver &obs) |
| static void | setOrbit (const DtUniqueID &targetId, double azimuthRate, const Vec3d &attachPos, const Vec3d &offset, long ignoreFlags, DtObserver &obs) |
| static void | setCompass (const DtUniqueID &targetId, const RadiusArg &pos, double headingOffset, double pitchOffset, double roll, long ignoreFlags, DtObserver &obs) |
| static void | setMove (const Vec3d &geocPos, const Vec3d &geocOrient, int move, int turn, bool reset, long ignoreFlags, DtObserver &obs) |
| typedef boost::function<void (DtObserver&)> makVrv::DtViewStateProcessor::ObserverAction |
| makVrv::DtViewStateProcessor::DtViewStateProcessor | ( | ) |
CTOR.
| makVrv::DtViewStateProcessor::~DtViewStateProcessor | ( | ) |
DTOR.
| ObserverAction makVrv::DtViewStateProcessor::makeAbsolute | ( | double | x, |
| double | y, | ||
| double | z, | ||
| double | psi, | ||
| double | theta, | ||
| double | phi, | ||
| long | ignoreFlags | ||
| ) |
Create function that sets observer mode to absolute.
| ObserverAction makVrv::DtViewStateProcessor::makeTether | ( | const DtUniqueID & | targetId, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| double | psi, | ||
| double | theta, | ||
| double | phi, | ||
| long | ignoreFlags | ||
| ) |
Create function that sets observer mode to tether.
| ObserverAction makVrv::DtViewStateProcessor::makeMimic | ( | const DtUniqueID & | targetId, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| double | psi, | ||
| double | theta, | ||
| double | phi, | ||
| long | ignoreFlags | ||
| ) |
Create function that sets observer mode to mimic.
| ObserverAction makVrv::DtViewStateProcessor::makeTrack | ( | const DtUniqueID & | targetId, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| long | ignoreFlags | ||
| ) |
Create function that sets observer mode to track.
| ObserverAction makVrv::DtViewStateProcessor::makeTetherTrack | ( | const DtUniqueID & | tetherId, |
| const DtUniqueID & | trackId, | ||
| double | x, | ||
| double | y, | ||
| double | z, | ||
| long | ignoreFlags | ||
| ) |
Create function that sets observer mode to tether track.
| ObserverAction makVrv::DtViewStateProcessor::makeMimicTrack | ( | const DtUniqueID & | mimicId, |
| const DtUniqueID & | trackId, | ||
| double | x, | ||
| double | y, | ||
| double | z, | ||
| long | ignoreFlags | ||
| ) |
Create function that sets observer mode to mimic track.
| ObserverAction makVrv::DtViewStateProcessor::makeFollow | ( | const DtUniqueID & | targetId, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| long | ignoreFlags | ||
| ) |
Create function that sets observer mode to follow.
| ObserverAction makVrv::DtViewStateProcessor::makeOrbit | ( | const DtUniqueID & | targetId, |
| double | azimuthRate, | ||
| double | attachX, | ||
| double | attachY, | ||
| double | attachZ, | ||
| double | offsetX, | ||
| double | offsetY, | ||
| double | offsetZ, | ||
| long | ignoreFlags | ||
| ) |
Create function that sets observer mode to orbit.
| ObserverAction makVrv::DtViewStateProcessor::makeCompass | ( | const DtUniqueID & | targetId, |
| double | bodyHeading, | ||
| double | headingOffset, | ||
| double | pitch, | ||
| double | pitchOffset, | ||
| double | roll, | ||
| double | radius, | ||
| long | ignoreFlags | ||
| ) |
Create function that sets observer mode to compass.
| ObserverAction makVrv::DtViewStateProcessor::makeMove | ( | double | geocX, |
| double | geocY, | ||
| double | geocZ, | ||
| double | geocPsi, | ||
| double | geocTheta, | ||
| double | geocPhi, | ||
| int | move, | ||
| int | turn, | ||
| bool | reset, | ||
| long | ignoreFlags | ||
| ) |
Create function that moves the observer.
|
staticprotected |
Setup absolute mode.
|
staticprotected |
Setup tether mode.
| psi | double x, double y, double z, |
|
staticprotected |
Setup mimic mode.
|
staticprotected |
Setup track mode.
|
staticprotected |
Setup tether track mode.
|
staticprotected |
Setup mimic track mode.
|
staticprotected |
Setup follow mode.
|
staticprotected |
Setup orbit mode Attach coords are location in cig of the entity to orbit around, and offset coords are an offset vector in topo to position the observer at.
|
staticprotected |
Setup compass mode.
|
staticprotected |
Setup move.