VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions

Instances of DtSmoothPosWithDr are used to provide the mechanism to smooth position and dead-reckon position. More...

+ Inheritance diagram for DtSmoothPosWithDr:
+ Collaboration diagram for DtSmoothPosWithDr:

Public Member Functions

 DtSmoothPosWithDr (DtDeadReckoner *dr, DtTime smoothT)
 Constructor.
virtual ~DtSmoothPosWithDr ()
 Destructor.
- Public Member Functions inherited from DtSmoothPos
 DtSmoothPos (void *usr, DtTime smoothT, const DtVector &pos, const DtVector32 &vel, const DtVector32 &acc)
 Constructors.
 DtSmoothPos (void *usr, DtTime smoothT)
 WARNING: not fully constructed until input() & tick() are called.
virtual ~DtSmoothPos ()
 DtSmoothPos (const DtSmoothPos &)
 Copy Constructor.
DtSmoothPosoperator= (const DtSmoothPos &)
 Assignment Operator.
void input (const DtVector &pos, const DtVector32 &vel, const DtVector32 &acc, DtTime simTime, int freeze=0)
void tick (DtTime simTime)
const DtVectorposition () const
const DtVector32velocity () 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
virtual void reset ()
 This resets the smoother parameters.

Protected Member Functions

virtual void dfltAction (DtTime simTime, void *usr, DtVector32 &vs, DtVector &ps)
 The default action is to dead-reckon.
- Protected Member Functions inherited from DtSmoothPos
void init (void *u, DtTime t)
void setT1data ()

Additional Inherited Members

- Static Public Member Functions inherited from DtSmoothPos
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 Attributes inherited from DtSmoothPos
int myFrozen
DtTime myT0
DtTime myT1
DtTime myT2
DtTime myLastT
DtTime myLocalTau
DtTime myLocalHtau
DtTime myLocalTauInv
DtTimemyTau
DtTimemyHtau
DtTimemyTauInv
DtVector ps
DtVector p0
DtVector dp
DtVector p1
DtVector32 vs
DtVector32 v0
DtVector32 v1
DtVector32 dv
DtVector32 a1
DtVector32 a2
DtVector32 ap
int myEnable
int myNeedT1Data
int myNeedT2Data
void * myUsr
- Static Protected Attributes inherited from DtSmoothPos
static DtTime theDfltTau
static DtTime theDfltHtau
static DtTime theDfltTauInv
static bool theMasterSmoothEnable

Detailed Description

Instances of DtSmoothPosWithDr are used to provide the mechanism to smooth position and dead-reckon position.

It derives from DtSmoothPos and provides the method dfltAction, which is called once the smooth period has elapsed. It is used by DtOldSmoother.

Constructor & Destructor Documentation

DtSmoothPosWithDr::DtSmoothPosWithDr ( DtDeadReckoner dr,
DtTime  smoothT 
)

Constructor.

Parameters
smoothTSpecifies the smooth period
virtual DtSmoothPosWithDr::~DtSmoothPosWithDr ( )
virtual

Destructor.

Member Function Documentation

virtual void DtSmoothPosWithDr::dfltAction ( DtTime  simTime,
void *  usr,
DtVector32 vs,
DtVector ps 
)
protectedvirtual

The default action is to dead-reckon.

Implements DtSmoothPos.


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

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)