![]() |
VR-Link API Documentation for DIS
|
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. | |
| 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 | ||
| ) |
| virtual DtSmoothPos::~DtSmoothPos | ( | ) | [inline, virtual] |
| DtSmoothPos::DtSmoothPos | ( | const DtSmoothPos & | ) | [private] |
Copy Constructor not implemented - do not copy.
| virtual void DtSmoothPos::dfltAction | ( | DtTime | simTime, |
| void * | usr, | ||
| DtVector & | vs, | ||
| DtVector & | ps | ||
| ) | [protected, pure 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 [inline, virtual] |
References myTau.
| void DtSmoothPos::tick | ( | DtTime | simTime | ) |
| const DtVector& DtSmoothPos::velocity | ( | ) | const [inline] |
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 [static, protected] |
DtTime DtSmoothPos::theDfltTau [static, protected] |
DtTime DtSmoothPos::theDfltTauInv [static, protected] |
bool DtSmoothPos::theMasterSmoothEnable [static, protected] |
DtVector DtSmoothPos::v0 [protected] |
DtVector DtSmoothPos::v1 [protected] |
DtVector DtSmoothPos::vs [protected] |