VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
MyObject Class Reference

Declaration of a custom object that manages a model and its properties. More...

Public Member Functions

 MyObject (makVrv::DtDe &de, makVrv::DtUniqueID id)
 CTOR. More...
 
virtual ~MyObject ()
 DTOR. More...
 
void createModel ()
 Create an OpenSceneGraph geometry. More...
 
void setRotationAngle (double rotationAngleInDegrees)
 Set the rotation angle which gets called every tick. More...
 

Protected Attributes

makVrv::DtDemyDe
 
osg::ref_ptr
< osg::PositionAttitudeTransform > 
myPat
 

Detailed Description

Declaration of a custom object that manages a model and its properties.

This object is intended to be controlled by the agent, MyObjectAgent.

Examples

Constructor & Destructor Documentation

MyObject::MyObject ( makVrv::DtDe de,
makVrv::DtUniqueID  id 
)

CTOR.

DtDe and DtUniqueId are not used by this class.

virtual MyObject::~MyObject ( )
virtual

DTOR.

Member Function Documentation

void MyObject::createModel ( )

Create an OpenSceneGraph geometry.

The geometry is added to the core VRV DtOsgRenderer class to handle the rendering part.

void MyObject::setRotationAngle ( double  rotationAngleInDegrees)

Set the rotation angle which gets called every tick.

Member Data Documentation

makVrv::DtDe& MyObject::myDe
protected
osg::ref_ptr<osg::PositionAttitudeTransform> MyObject::myPat
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)