VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static 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

 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 DtExtEntityStateRepositorycreate ()

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.

Constructor & Destructor Documentation

MyEntityStateRep::MyEntityStateRep ( )
inline

Referenced by clone(), and create().

MyEntityStateRep::MyEntityStateRep ( const MyEntityStateRep o)
inline

Member Function Documentation

void MyEntityStateRep::setMass ( float  mass)
inlinevirtual

References myMass.

float MyEntityStateRep::mass ( ) const
inlinevirtual

References myMass.

Referenced by printData().

void MyEntityStateRep::printData ( ) const
inlinevirtual

References mass().

DtExtEntityStateRepository * MyEntityStateRep::create ( )
inlinestatic

References MyEntityStateRep().

DtStateRepository * MyEntityStateRep::clone ( bool  copy = false) const
inlinevirtual

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

Member Data Documentation

float MyEntityStateRep::myMass
protected

Referenced by mass(), and setMass().


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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)