![]() |
VR-Forces 4.0.4 Class Documentation
|
Because this example adds a concept that did not already exist in VR-Link's DtEntityStateRepository class, we create this subclass of DtEntityStateRepository that adds the concept of mass. More...

Public Member Functions | |
| MyEntityStateRep () | |
| MyEntityStateRep (const MyEntityStateRep &o) | |
| virtual void | setMass (float mass) |
| virtual float | mass () const |
| virtual void | printData () const |
| virtual DtStateRepository * | clone (bool copy=false) const |
| virtual void | setMass (float mass) |
| Set the mass. | |
| virtual float | mass () const |
| Return the mass. | |
| virtual void | printData () const |
| Virtual function override: print the state rep's data. | |
| virtual DtStateRepository * | clone (bool copy=false) const |
| Copy shallow (false) or deep (true). | |
Static Public Member Functions | |
| static DtExtEntityStateRepository * | create () |
Protected Attributes | |
| float | myMass |
Because this example adds a concept that did not already exist in VR-Link's DtEntityStateRepository class, we create this subclass of DtEntityStateRepository that adds the concept of mass.
This class is identical to the State Rep in the addAttr example.
| MyEntityStateRep::MyEntityStateRep | ( | ) | [inline] |
| MyEntityStateRep::MyEntityStateRep | ( | const MyEntityStateRep & | o | ) | [inline] |
| void MyEntityStateRep::setMass | ( | float | mass | ) | [inline, virtual] |
References myMass.
| float MyEntityStateRep::mass | ( | ) | const [inline, virtual] |
References myMass.
Referenced by printData().
| void MyEntityStateRep::printData | ( | ) | const [inline, virtual] |
References mass().
| DtExtEntityStateRepository * MyEntityStateRep::create | ( | ) | [inline, static] |
Reimplemented from DtExtEntityStateRepository.
References MyEntityStateRep().
| DtStateRepository * MyEntityStateRep::clone | ( | bool | copy = false | ) | const [inline, virtual] |
Reimplemented from DtExtEntityStateRepository.
References MyEntityStateRep().
| virtual void MyEntityStateRep::setMass | ( | float | mass | ) | [virtual] |
Set the mass.
| virtual float MyEntityStateRep::mass | ( | ) | const [virtual] |
Return the mass.
| virtual void MyEntityStateRep::printData | ( | ) | const [virtual] |
Virtual function override: print the state rep's data.
| virtual DtStateRepository* MyEntityStateRep::clone | ( | bool | copy = false | ) | const [virtual] |
Copy shallow (false) or deep (true).
Reimplemented from DtExtEntityStateRepository.
float MyEntityStateRep::myMass [protected] |