![]() |
VR-Link API Documentation for DIS
|
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 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 |
Protected Member Functions | |
| virtual void | dfltAction (DtTime simTime, void *usr, DtVector &vs, DtVector &ps) |
| The default action is to dead-reckon. | |
Protected Member Functions inherited from DtSmoothPos | |
| void | init (void *u, DtTime t) |
| void | setT1data () |
Private Member Functions | |
| DtSmoothPosWithDr (const DtSmoothPosWithDr &orig) | |
| Copy constructor – Not Implemented. | |
| DtSmoothPosWithDr & | operator= (const DtSmoothPosWithDr &orig) |
| Assignment operator – Not Implemented. | |
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 |
| 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 inherited from DtSmoothPos | |
| static DtTime | theDfltTau |
| static DtTime | theDfltHtau |
| static DtTime | theDfltTauInv |
| static bool | theMasterSmoothEnable |
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.
| DtSmoothPosWithDr::DtSmoothPosWithDr | ( | DtDeadReckoner * | dr, |
| DtTime | smoothT | ||
| ) |
Constructor.
| smoothT | Specifies the smooth period |
|
virtual |
Destructor.
|
private |
Copy constructor – Not Implemented.
|
protectedvirtual |
The default action is to dead-reckon.
Implements DtSmoothPos.
|
private |
Assignment operator – Not Implemented.