VR-Vantage 2.3 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
MyEntityStateRep Class Reference

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:
Inheritance graph
[legend]

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 DtStateRepositoryclone (bool copy=false) const
 Copy shallow (false) or deep (true).

Protected Attributes

float myMass

Detailed Description

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.

Member Function Documentation

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).

Member Data Documentation

float MyEntityStateRep::myMass
protected

The documentation for this class was generated from the following file:


Copyright © 2005-2018 VT MAK. All Rights Reserved (www.mak.com)