VR-Forces 4.0.4 Class Documentation
Public Member Functions
makVrv::DtSpeedTreeModelInstance Class Reference

A DtSpeedTreeModelInstance is a type of model instance that can get created for a DtTreeModel. More...

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

List of all members.

Public Member Functions

 DtSpeedTreeModelInstance (DtDe &de)
 CTOR.
virtual ~DtSpeedTreeModelInstance ()
 DTOR.
virtual bool realize (DtModelDefinition &definition)
 Attempt to realize a definition.
virtual osg::Node * rootNode ()
 Get the model instance's root node. This will always return null.
virtual void setVisible (bool isVisible)
 no-op

Detailed Description

A DtSpeedTreeModelInstance is a type of model instance that can get created for a DtTreeModel.

A DtSpeedTreeModelInstance exists to return a a null rootNode() and therefore let a DtSpeedTreeForest know to create a SpeedTree instead of a normal tree. DtTreeModels produce "normal" trees which are added to a DtOsgForest however, if the SpeedTree plugin is loaded, then a DtTreeModel creates a DtSpeedTreeModelInstance when a tree is added to a DtSpeedTreeForest. When the model instance is created a DtModelInstanceOwner emits a signal saying so.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

Attempt to realize a definition.

If the model instance can't realize the definition it should return false. This will return false if the definition doesn't contain a "speedTreeFilename" parameter;

Reimplemented from makVrv::DtModelInstance.

virtual osg::Node* makVrv::DtSpeedTreeModelInstance::rootNode ( ) [virtual]

Get the model instance's root node. This will always return null.

Reimplemented from makVrv::DtOsgModelInstance.

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

no-op

Implements makVrv::DtModelInstance.


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)