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

Root transform for a group of instances. More...

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

Public Member Functions

virtual ~DtInstanceNode ()
 DTOR. More...
 
 DtInstanceNode (const DtInstanceNode &ob, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy CTOR. More...
 
virtual osg::Object * clone (const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY) const
 Clone this object. More...
 
virtual void traverse (osg::NodeVisitor &nv)
 Needed to run material and alpha callbacks. More...
 
virtual bool computeWorldToLocalMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
 Transform to position relative to camera. More...
 
virtual bool computeLocalToWorldMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
 Transform to position relative to camera. More...
 
virtual DtInstanceManagerinstanceManager ()
 needed for update callback More...
 

Protected Member Functions

 DtInstanceNode (DtInstanceManager &instanceManager)
 CTOR. More...
 

Protected Attributes

osg::Vec3d myLastEye
 
DtInstanceManagermyInstanceManager
 

Private Member Functions

 DtInstanceNode ()
 Default Constructor. More...
 
DtInstanceNodeoperator= (const DtInstanceNode &other)
 Assignment Operator Not implemented – Assignment Not Allowed. More...
 

Friends

class DtInstanceNodeCreator
 friend creator class so that it is the only thing that will create a DtInstanceNode More...
 

Detailed Description

Root transform for a group of instances.

Transforms position to camera position so that instance spatial data can be camera-relative (i.e. fit in a float32)

Constructor & Destructor Documentation

makVrv::DtInstanceNode::DtInstanceNode ( DtInstanceManager instanceManager)
protected

CTOR.

virtual makVrv::DtInstanceNode::~DtInstanceNode ( )
virtual

DTOR.

makVrv::DtInstanceNode::DtInstanceNode ( )
private

Default Constructor.

makVrv::DtInstanceNode::DtInstanceNode ( const DtInstanceNode ob,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy CTOR.

Member Function Documentation

DtInstanceNode& makVrv::DtInstanceNode::operator= ( const DtInstanceNode other)
private

Assignment Operator Not implemented – Assignment Not Allowed.

virtual osg::Object* makVrv::DtInstanceNode::clone ( const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY) const
virtual

Clone this object.

virtual void makVrv::DtInstanceNode::traverse ( osg::NodeVisitor &  nv)
virtual

Needed to run material and alpha callbacks.

virtual bool makVrv::DtInstanceNode::computeWorldToLocalMatrix ( osg::Matrix &  matrix,
osg::NodeVisitor *  nv 
) const
virtual

Transform to position relative to camera.

Used here to strip out the translation portion of the view matrix to allow camera relative rendering of instances

virtual bool makVrv::DtInstanceNode::computeLocalToWorldMatrix ( osg::Matrix &  matrix,
osg::NodeVisitor *  nv 
) const
virtual

Transform to position relative to camera.

virtual DtInstanceManager& makVrv::DtInstanceNode::instanceManager ( )
inlinevirtual

needed for update callback

Friends And Related Function Documentation

friend class DtInstanceNodeCreator
friend

friend creator class so that it is the only thing that will create a DtInstanceNode

Member Data Documentation

osg::Vec3d makVrv::DtInstanceNode::myLastEye
protected
DtInstanceManager& makVrv::DtInstanceNode::myInstanceManager
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)