VR-Forces 4.0.4 Class Documentation
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends
makVrv::DtCuboidModelInstance Class Reference

Model instance to draw a cuboid. More...

Inheritance diagram for makVrv::DtCuboidModelInstance:
Inheritance graph
[legend]

List of all members.

Classes

struct  CuboidParameters

Public Member Functions

virtual ~DtCuboidModelInstance ()
 DTOR.
virtual void setDimensions (double x, double y, double z)
 Set the dimensions of the cube.
virtual void setColor (float r, float g, float b, float a)
 Set the color of the cube.
virtual bool realize (DtModelDefinition &definition)
 Attempt to realize a definition.
virtual void addToConnector (DtOsgSceneConnector *connector)
 Tell the model instance to add itself to the provided node.
virtual bool removeFromConnector (DtOsgSceneConnector *connector)
 Tell the model instance to remove itself from the provided node.
virtual void setVisible (bool isVisible)
 no-op

Static Public Attributes

static const CuboidParameters defaultParameters
 Default values for the cuboid parameters.

Protected Member Functions

 DtCuboidModelInstance (DtDe &de)
 CTOR.
virtual void build (const CuboidParameters &parameters)
 Build the cuboid geometry from a parameter set.

Protected Attributes

CuboidParameters myParameters
 The current parameter set.
osg::ref_ptr< osg::Geode > myGeode

Friends

class DtCuboidModelInstanceCreator

Detailed Description

Model instance to draw a cuboid.


Constructor & Destructor Documentation

DTOR.

CTOR.


Member Function Documentation

virtual void makVrv::DtCuboidModelInstance::setDimensions ( double  x,
double  y,
double  z 
) [virtual]

Set the dimensions of the cube.

virtual void makVrv::DtCuboidModelInstance::setColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Set the color of the cube.

virtual bool makVrv::DtCuboidModelInstance::realize ( DtModelDefinition definition) [virtual]

Attempt to realize a definition.

If the model instance can't realize the definition it should return false.

Reimplemented from makVrv::DtModelInstance.

virtual void makVrv::DtCuboidModelInstance::addToConnector ( DtOsgSceneConnector connector) [virtual]

Tell the model instance to add itself to the provided node.

Reimplemented from makVrv::DtOsgModelInstance.

Tell the model instance to remove itself from the provided node.

Reimplemented from makVrv::DtOsgModelInstance.

virtual void makVrv::DtCuboidModelInstance::setVisible ( bool  isVisible) [inline, virtual]

no-op

Implements makVrv::DtModelInstance.

virtual void makVrv::DtCuboidModelInstance::build ( const CuboidParameters parameters) [protected, virtual]

Build the cuboid geometry from a parameter set.


Friends And Related Function Documentation

friend class DtCuboidModelInstanceCreator [friend]

Member Data Documentation

Default values for the cuboid parameters.

The current parameter set.

osg::ref_ptr<osg::Geode> makVrv::DtCuboidModelInstance::myGeode [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)