![]() |
VR-Link API Documentation for HLA Evolved
|
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...
Inheritance diagram for MyEntityStateRep:
Collaboration diagram for MyEntityStateRep:Public Member Functions | |
| 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 DtEntityStateRepository * | create () |
| Create a MyEntityStateRep. Caller is responsible for deletion. | |
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.
| DtStateRepository * MyEntityStateRep::clone | ( | bool | copy = false | ) | const [inline, virtual] |
Copy shallow (false) or deep (true).
Reimplemented from DtEntityStateRepository.
| DtEntityStateRepository * MyEntityStateRep::create | ( | ) | [inline, static] |
Create a MyEntityStateRep. Caller is responsible for deletion.
Reimplemented from DtEntityStateRepository.
| float MyEntityStateRep::mass | ( | ) | const [inline, virtual] |
| void MyEntityStateRep::printData | ( | ) | const [inline, virtual] |
Virtual function override: print the state rep's data.
Reimplemented from DtEntityStateRepository.
References mass().
| void MyEntityStateRep::setMass | ( | float | mass | ) | [inline, virtual] |
Set the mass.
References myMass.
float MyEntityStateRep::myMass [protected] |