![]() |
VR-Link API Documentation for HLA 1516
|
Because this example adds a concept that did not already exist in VR-Link's DtFireInteraction class, we create this subclass of DtFireInteraction that adds the concept of temperature. More...
Inheritance diagram for MyFireInteraction:
Collaboration diagram for MyFireInteraction:Public Member Functions | |
| virtual void | setTemperature (float temp) |
| Set the temperature. | |
| virtual float | temperature () const |
| The temperature. | |
| virtual void | printData () const |
| Virtual function override: print the interaction's data. | |
Static Public Member Functions | |
| static DtInteraction * | create () |
| Create a MyFireInteraction. Caller is responsible for deletion. | |
Protected Attributes | |
| float | myTemperature |
Because this example adds a concept that did not already exist in VR-Link's DtFireInteraction class, we create this subclass of DtFireInteraction that adds the concept of temperature.
| DtInteraction * MyFireInteraction::create | ( | ) | [inline, static] |
Create a MyFireInteraction. Caller is responsible for deletion.
Reimplemented from DtFireInteraction.
| void MyFireInteraction::printData | ( | ) | const [inline, virtual] |
Virtual function override: print the interaction's data.
Reimplemented from DtFireInteraction.
References temperature().
| void MyFireInteraction::setTemperature | ( | float | temp | ) | [inline, virtual] |
Set the temperature.
References myTemperature.
| float MyFireInteraction::temperature | ( | ) | const [inline, virtual] |
float MyFireInteraction::myTemperature [protected] |
Referenced by setTemperature(), and temperature().