DI-Guy SDK Documentation  13.7.1
diguyOsgParticleTransform Class Reference

Helper class for doing local camera rendering for particle system. More...

Inheritance diagram for diguyOsgParticleTransform:

Public Member Functions

 diguyOsgParticleTransform ()
 
 ~diguyOsgParticleTransform ()
 DTOR. More...
 
 diguyOsgParticleTransform (const diguyOsgParticleTransform &ob, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy CTOR. More...
 
virtual osg::Object * clone (const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Clone this object. 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...
 

Public Attributes

osg::Vec3d myCameraPosition
 

Detailed Description

Helper class for doing local camera rendering for particle system.

Constructor & Destructor Documentation

diguyOsgParticleTransform::diguyOsgParticleTransform ( )
diguyOsgParticleTransform::~diguyOsgParticleTransform ( )

DTOR.

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

Copy CTOR.

Member Function Documentation

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

Clone this object.

bool diguyOsgParticleTransform::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

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

Transform to position relative to camera.

Member Data Documentation

osg::Vec3d diguyOsgParticleTransform::myCameraPosition
mutable

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