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...
|
| virtual void | setMass (float mass) |
| | Set the mass. More...
|
| |
| virtual float | mass () const |
| | Return the mass. More...
|
| |
| virtual void | printData () const |
| | Virtual function override: print the state rep's data. More...
|
| |
| virtual DtStateRepository * | clone (bool copy=false) const |
| | Copy shallow (false) or deep (true). More...
|
| |
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.
| virtual void MyEntityStateRep::setMass |
( |
float |
mass | ) |
|
|
virtual |
| virtual float MyEntityStateRep::mass |
( |
| ) |
const |
|
virtual |
| 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).
| float MyEntityStateRep::myMass |
|
protected |
The documentation for this class was generated from the following file: