![]() |
VR-Link API Documentation for HLA 1.3
|
Inheritance diagram for DtSmoothPos:
Collaboration diagram for DtSmoothPos:Public Member Functions | |
| DtSmoothPos (void *usr, DtTime smoothT, const DtVector &pos, const DtVector32 &vel, const DtVector32 &acc) | |
| Constructors. More... | |
| DtSmoothPos (void *usr, DtTime smoothT) | |
| WARNING: not fully constructed until input() & tick() are called. More... | |
| virtual | ~DtSmoothPos () |
| DtSmoothPos (const DtSmoothPos &) | |
| Copy Constructor. More... | |
| DtSmoothPos & | operator= (const DtSmoothPos &) |
| Assignment Operator. More... | |
| void | input (const DtVector &pos, const DtVector32 &vel, const DtVector32 &acc, DtTime simTime, int freeze=0) |
| void | tick (DtTime simTime) |
| const DtVector & | position () const |
| const DtVector32 & | velocity () const |
| virtual void | setSmoothEnable (int on) |
| Set/Get the individual smoothing switch. More... | |
| virtual int | smoothEnable () const |
| virtual void | setSmoothPeriod (DtTime t) |
| Set/Get smoothPeriod. More... | |
| virtual DtTime | smoothPeriod () const |
| virtual void | reset () |
| This resets the smoother parameters. More... | |
Static Public Member Functions | |
| static void | setDfltSmoothPeriod (DtTime t) |
| Set/Get default smooth period. More... | |
| static DtTime | dfltSmoothPeriod () |
| static void | setMasterSmoothEnable (bool onOff) |
| Set/Get the value of the "master" smoothing-enabled switch. More... | |
| static bool | masterSmoothEnable () |
Protected Member Functions | |
| virtual void | dfltAction (DtTime simTime, void *usr, DtVector32 &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 | 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 | |
| static DtTime | theDfltTau |
| static DtTime | theDfltHtau |
| static DtTime | theDfltTauInv |
| static bool | theMasterSmoothEnable |
| DtSmoothPos::DtSmoothPos | ( | void * | usr, |
| DtTime | smoothT, | ||
| const DtVector & | pos, | ||
| const DtVector32 & | vel, | ||
| const DtVector32 & | 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 | ||
| ) |
|
inlinevirtual |
| DtSmoothPos::DtSmoothPos | ( | const DtSmoothPos & | ) |
Copy Constructor.
|
protectedpure virtual |
Implemented in DtSmoothPosWithDr.
|
static |
|
protected |
| void DtSmoothPos::input | ( | const DtVector & | pos, |
| const DtVector32 & | vel, | ||
| const DtVector32 & | acc, | ||
| DtTime | simTime, | ||
| int | freeze = 0 |
||
| ) |
|
static |
| DtSmoothPos& DtSmoothPos::operator= | ( | const DtSmoothPos & | ) |
Assignment Operator.
|
inline |
|
virtual |
This resets the smoother parameters.
This does not change the smoothing period or the last updated position.
|
static |
Set/Get default smooth period.
|
static |
Set/Get the value of the "master" smoothing-enabled switch.
|
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 |
Set/Get smoothPeriod.
If set to -1, smooth period reverts to the current default smooth period.
|
protected |
|
virtual |
| void DtSmoothPos::tick | ( | DtTime | simTime | ) |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by smoothPeriod().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |