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

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

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

Public Member Functions

 DtInstanceNode (DtInstanceManager &instanceManager)
 CTOR.
 ~DtInstanceNode ()
 DTOR.
 DtInstanceNode (const DtInstanceNode &ob, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy CTOR.
virtual osg::Object * clone (const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Clone this object.
virtual bool computeWorldToLocalMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
 Transform to position relative to camera.
virtual bool computeLocalToWorldMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
 Transform to position relative to camera.

Protected Attributes

osg::Vec3d myLastEye
DtInstanceManagermyInstanceManager

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)

CTOR.

makVrv::DtInstanceNode::~DtInstanceNode ( )

DTOR.

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

Copy CTOR.

Member Function Documentation

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

Clone this object.

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.

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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)