VR-Link API Documentation for HLA 1.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
+ Inheritance diagram for DtSmoothPos:
+ Collaboration diagram for DtSmoothPos:

List of all members.

Public Member Functions

 DtSmoothPos (void *usr, DtTime smoothT, const DtVector &pos, const DtVector &vel, const DtVector &acc)
 Constructors.
 DtSmoothPos (void *usr, DtTime smoothT)
 WARNING: not fully constructed until input() & tick() are called.
virtual ~DtSmoothPos ()
void input (const DtVector &pos, const DtVector &vel, const DtVector &acc, DtTime simTime, int freeze=0)
void tick (DtTime simTime)
const DtVector & position () const
const DtVector & velocity () const
virtual void setSmoothEnable (int on)
 Set/Get the individual smoothing switch.
virtual int smoothEnable () const
virtual void setSmoothPeriod (DtTime t)
 Set/Get smoothPeriod.
virtual DtTime smoothPeriod () const

Static Public Member Functions

static void setDfltSmoothPeriod (DtTime t)
 Set/Get default smooth period.
static DtTime dfltSmoothPeriod ()
static void setMasterSmoothEnable (bool onOff)
 Set/Get the value of the "master" smoothing-enabled switch.
static bool masterSmoothEnable ()

Protected Member Functions

virtual void dfltAction (DtTime simTime, void *usr, DtVector &vs, DtVector &ps)=0
void init (void *u, DtTime t)
void setT1data ()

Protected Attributes

int myFrozen
DtTime myT0
DtTime myT1
DtTime myT2
DtTime myLastT
DtTime myLocalTau
DtTime myLocalHtau
DtTime myLocalTauInv
DtTime * myTau
DtTime * myHtau
DtTime * myTauInv
DtVector ps
DtVector vs
DtVector p0
DtVector v0
DtVector dp
DtVector dv
DtVector p1
DtVector v1
DtVector a1
DtVector a2
DtVector ap
int myEnable
int myNeedT1Data
int myNeedT2Data
void * myUsr

Static Protected Attributes

static DtTime theDfltTau
static DtTime theDfltHtau
static DtTime theDfltTauInv
static bool theMasterSmoothEnable

Private Member Functions

 DtSmoothPos (const DtSmoothPos &)
 Copy Constructor not implemented - do not copy.
DtSmoothPos & operator= (const DtSmoothPos &)
 Assignment Operator not implemented - to not copy.

Detailed Description

Deprecated:
This class is only used by DtOldSmoother which has been deprecated.

Constructor & Destructor Documentation

DtSmoothPos::DtSmoothPos ( void *  usr,
DtTime  smoothT,
const DtVector &  pos,
const DtVector &  vel,
const DtVector &  acc 
)

Constructors.

smoothT is the initial smoothPeriod. Use a value of -1 to indicate use of the default period.

DtSmoothPos::DtSmoothPos ( void *  usr,
DtTime  smoothT 
)

WARNING: not fully constructed until input() & tick() are called.

virtual DtSmoothPos::~DtSmoothPos ( ) [inline, virtual]
DtSmoothPos::DtSmoothPos ( const DtSmoothPos &  ) [private]

Copy Constructor not implemented - do not copy.


Member Function Documentation

virtual void DtSmoothPos::dfltAction ( DtTime  simTime,
void *  usr,
DtVector &  vs,
DtVector &  ps 
) [protected, pure virtual]

Implemented in DtSmoothPosWithDr.

void DtSmoothPos::init ( void *  u,
DtTime  t 
) [protected]
void DtSmoothPos::input ( const DtVector &  pos,
const DtVector &  vel,
const DtVector &  acc,
DtTime  simTime,
int  freeze = 0 
)
static bool DtSmoothPos::masterSmoothEnable ( ) [static]
DtSmoothPos& DtSmoothPos::operator= ( const DtSmoothPos &  ) [private]

Assignment Operator not implemented - to not copy.

const DtVector& DtSmoothPos::position ( ) const [inline]
static void DtSmoothPos::setDfltSmoothPeriod ( DtTime  t) [static]

Set/Get default smooth period.

static void DtSmoothPos::setMasterSmoothEnable ( bool  onOff) [static]

Set/Get the value of the "master" smoothing-enabled switch.

virtual void DtSmoothPos::setSmoothEnable ( int  on) [virtual]

Set/Get the individual smoothing switch.

In order for smoothing to be enabled, the "master" smoothing-enabled switch must be on, AND the individual smoothing switch (accessed through these functions), must be on.

virtual void DtSmoothPos::setSmoothPeriod ( DtTime  t) [virtual]

Set/Get smoothPeriod.

If set to -1, smooth period reverts to the current default smooth period.

void DtSmoothPos::setT1data ( ) [protected]
virtual int DtSmoothPos::smoothEnable ( ) const [virtual]
DtTime DtSmoothPos::smoothPeriod ( ) const [inline, virtual]

References myTau.

void DtSmoothPos::tick ( DtTime  simTime)
const DtVector& DtSmoothPos::velocity ( ) const [inline]

Member Data Documentation

int DtSmoothPos::myEnable [protected]
int DtSmoothPos::myFrozen [protected]
int DtSmoothPos::myNeedT1Data [protected]
int DtSmoothPos::myNeedT2Data [protected]
DtTime* DtSmoothPos::myTau [protected]

Referenced by smoothPeriod().

void* DtSmoothPos::myUsr [protected]
DtTime DtSmoothPos::theDfltHtau [static, protected]
DtTime DtSmoothPos::theDfltTau [static, protected]
DtTime DtSmoothPos::theDfltTauInv [static, protected]
bool DtSmoothPos::theMasterSmoothEnable [static, protected]

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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)