VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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. More...
 
 ~DtViewStateProcessor ()
 DTOR. More...
 
ObserverAction makeAbsolute (double x, double y, double z, double psi, double theta, double phi, long ignoreFlags)
 Create function that sets observer mode to absolute. More...
 
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. More...
 
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. More...
 
ObserverAction makeTrack (const DtUniqueID &targetId, double x, double y, double z, long ignoreFlags)
 Create function that sets observer mode to track. More...
 
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. More...
 
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. More...
 
ObserverAction makeFollow (const DtUniqueID &targetId, double x, double y, double z, long ignoreFlags)
 Create function that sets observer mode to follow. More...
 
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. More...
 
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. More...
 
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. More...
 

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

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,
const 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,
const 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,
const Vec3d attachPos,
const 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,
const RadiusArg pos,
double  headingOffset,
double  pitchOffset,
double  roll,
long  ignoreFlags,
DtObserver obs 
)
staticprotected

Setup compass mode.

static void makVrv::DtViewStateProcessor::setMove ( const Vec3d geocPos,
const Vec3d geocOrient,
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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)