VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgSimpleModelInstance Class Reference

A simple OSG model instance. More...

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

List of all members.

Public Member Functions

 DtOsgSimpleModelInstance (DtDe &de)
 CTOR.
 DtOsgSimpleModelInstance (DtDe &de, osg::Node *rootNode)
 CTOR.
virtual ~DtOsgSimpleModelInstance ()
 DTOR.
virtual bool realize (DtModelDefinition &definition)
 Attempt to realize a definition.
virtual bool groundClampable ()
 Set whether the model is always oriented up.
virtual bool alwaysUpright ()
 Set whether the model is always oriented up.
virtual void setVisible (bool isVisible)
 no-op
virtual void setVisibleViaSwitch (bool isVisible)
 Set whether the model is visible or not.

Protected Member Functions

osg::ref_ptr< osg::Node > loadNodeFile (DtModelDefinition &definition)
 Load a node from a file, or from the cache if possible.

Protected Attributes

bool myGroundClampable
bool myAlwaysUpright
float myScale

Detailed Description

A simple OSG model instance.


Constructor & Destructor Documentation

CTOR.

CTOR.

DTOR.


Member Function Documentation

Attempt to realize a definition.

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

Reimplemented from makVrv::DtModelInstance.

Set whether the model is always oriented up.

Set whether the model is always oriented up.

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

no-op

Implements makVrv::DtModelInstance.

virtual void makVrv::DtOsgSimpleModelInstance::setVisibleViaSwitch ( bool  isVisible) [inline, virtual]

Set whether the model is visible or not.

Reimplemented from makVrv::DtOsgModelInstance.

osg::ref_ptr<osg::Node> makVrv::DtOsgSimpleModelInstance::loadNodeFile ( DtModelDefinition definition) [protected]

Load a node from a file, or from the cache if possible.


Member Data Documentation


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)