VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Static Protected Member Functions
makVrv::DtViewStateProcessor Class Reference

Collection of factory methods to produce functions for altering the state of an observer to match some specification (e.g. More...

Classes

struct  RadiusArg
 Args to modes that define relative position of observer by radius and angles. More...
struct  Vec3d

Public Types

typedef boost::function< void(DtObserver &)> ObserverAction

Public Member Functions

 DtViewStateProcessor ()
 CTOR.
 ~DtViewStateProcessor ()
 DTOR.
ObserverAction makeAbsolute (double x, double y, double z, double psi, double theta, double phi, long ignoreFlags)
 Create function that sets observer mode to absolute.
ObserverAction 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 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 makeTrack (const DtUniqueID &targetId, double x, double y, double z, long ignoreFlags)
 Create function that sets observer mode to track.
ObserverAction 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 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 makeFollow (const DtUniqueID &targetId, double x, double y, double z, long ignoreFlags)
 Create function that sets observer mode to follow.
ObserverAction 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 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 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.

Static Protected Member Functions

static void setAbsolute (double x, double y, double z, double psi, double theta, double phi, long ignoreFlags, DtObserver &obs)
 Setup absolute mode.
static void setTether (const DtUniqueID &targetId, Vec3d attachPos, double psi, double theta, double phi, long ignoreFlags, DtObserver &obs)
 Setup tether mode.
static void setMimic (const DtUniqueID &targetId, Vec3d attachPos, double psi, double theta, double phi, long ignoreFlags, DtObserver &obs)
 Setup mimic mode.
static void setTrack (const DtUniqueID &targetId, double x, double y, double z, long ignoreFlags, DtObserver &obs)
 Setup track mode.
static void setTetherTrack (const DtUniqueID &tetherId, const DtUniqueID &trackId, double x, double y, double z, long ignoreFlags, DtObserver &obs)
 Setup tether track mode.
static void setMimicTrack (const DtUniqueID &mimicId, const DtUniqueID &trackId, double x, double y, double z, long ignoreFlags, DtObserver &obs)
 Setup mimic track mode.
static void setFollow (const DtUniqueID &targetId, double x, double y, double z, long ignoreFlags, DtObserver &obs)
 Setup follow mode.
static void setOrbit (const DtUniqueID &targetId, double azimuthRate, Vec3d attachPos, Vec3d offset, long ignoreFlags, DtObserver &obs)
 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.
static void setCompass (const DtUniqueID &targetId, RadiusArg pos, double headingOffset, double pitchOffset, double roll, long ignoreFlags, DtObserver &obs)
 Setup compass mode.
static void setMove (Vec3d geocPos, Vec3d geocTb, int move, int turn, bool reset, long ignoreFlags, DtObserver &obs)
 Setup move.

Detailed Description

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.

Member Typedef Documentation

typedef boost::function<void (DtObserver&)> makVrv::DtViewStateProcessor::ObserverAction

Constructor & Destructor Documentation

makVrv::DtViewStateProcessor::DtViewStateProcessor ( )

CTOR.

makVrv::DtViewStateProcessor::~DtViewStateProcessor ( )

DTOR.

Member Function Documentation

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.

static void makVrv::DtViewStateProcessor::setAbsolute ( double  x,
double  y,
double  z,
double  psi,
double  theta,
double  phi,
long  ignoreFlags,
DtObserver obs 
)
staticprotected

Setup absolute mode.

static void makVrv::DtViewStateProcessor::setTether ( const DtUniqueID targetId,
Vec3d  attachPos,
double  psi,
double  theta,
double  phi,
long  ignoreFlags,
DtObserver obs 
)
staticprotected

Setup tether mode.

Parameters
psidouble x, double y, double z,
static void makVrv::DtViewStateProcessor::setMimic ( const DtUniqueID targetId,
Vec3d  attachPos,
double  psi,
double  theta,
double  phi,
long  ignoreFlags,
DtObserver obs 
)
staticprotected

Setup mimic mode.

static void makVrv::DtViewStateProcessor::setTrack ( const DtUniqueID targetId,
double  x,
double  y,
double  z,
long  ignoreFlags,
DtObserver obs 
)
staticprotected

Setup track mode.

static void makVrv::DtViewStateProcessor::setTetherTrack ( const DtUniqueID tetherId,
const DtUniqueID trackId,
double  x,
double  y,
double  z,
long  ignoreFlags,
DtObserver obs 
)
staticprotected

Setup tether track mode.

static void makVrv::DtViewStateProcessor::setMimicTrack ( const DtUniqueID mimicId,
const DtUniqueID trackId,
double  x,
double  y,
double  z,
long  ignoreFlags,
DtObserver obs 
)
staticprotected

Setup mimic track mode.

static void makVrv::DtViewStateProcessor::setFollow ( const DtUniqueID targetId,
double  x,
double  y,
double  z,
long  ignoreFlags,
DtObserver obs 
)
staticprotected

Setup follow mode.

static void makVrv::DtViewStateProcessor::setOrbit ( const DtUniqueID targetId,
double  azimuthRate,
Vec3d  attachPos,
Vec3d  offset,
long  ignoreFlags,
DtObserver obs 
)
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.

static void makVrv::DtViewStateProcessor::setCompass ( const DtUniqueID targetId,
RadiusArg  pos,
double  headingOffset,
double  pitchOffset,
double  roll,
long  ignoreFlags,
DtObserver obs 
)
staticprotected

Setup compass mode.

static void makVrv::DtViewStateProcessor::setMove ( Vec3d  geocPos,
Vec3d  geocTb,
int  move,
int  turn,
bool  reset,
long  ignoreFlags,
DtObserver obs 
)
staticprotected

Setup move.


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)