VR-Link API Documentation for HLA 1.3
List of all members | 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:

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 ( )
inlinevirtual
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 
)
protectedpure virtual

Implemented in DtSmoothPosWithDr.

static DtTime DtSmoothPos::dfltSmoothPeriod ( )
static
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
inlinevirtual

References myTau.

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

Member Data Documentation

DtVector DtSmoothPos::a1
protected
DtVector DtSmoothPos::a2
protected
DtVector DtSmoothPos::ap
protected
DtVector DtSmoothPos::dp
protected
DtVector DtSmoothPos::dv
protected
int DtSmoothPos::myEnable
protected
int DtSmoothPos::myFrozen
protected
DtTime* DtSmoothPos::myHtau
protected
DtTime DtSmoothPos::myLastT
protected
DtTime DtSmoothPos::myLocalHtau
protected
DtTime DtSmoothPos::myLocalTau
protected
DtTime DtSmoothPos::myLocalTauInv
protected
int DtSmoothPos::myNeedT1Data
protected
int DtSmoothPos::myNeedT2Data
protected
DtTime DtSmoothPos::myT0
protected
DtTime DtSmoothPos::myT1
protected
DtTime DtSmoothPos::myT2
protected
DtTime* DtSmoothPos::myTau
protected

Referenced by smoothPeriod().

DtTime* DtSmoothPos::myTauInv
protected
void* DtSmoothPos::myUsr
protected
DtVector DtSmoothPos::p0
protected
DtVector DtSmoothPos::p1
protected
DtVector DtSmoothPos::ps
protected
DtTime DtSmoothPos::theDfltHtau
staticprotected
DtTime DtSmoothPos::theDfltTau
staticprotected
DtTime DtSmoothPos::theDfltTauInv
staticprotected
bool DtSmoothPos::theMasterSmoothEnable
staticprotected
DtVector DtSmoothPos::v0
protected
DtVector DtSmoothPos::v1
protected
DtVector DtSmoothPos::vs
protected

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

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)