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

Class for handling light point updates and checks also is the update callback for the instanced light point geometry. More...

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

Public Member Functions

 DtInstancedLightPointUpdate (osgSim::LightPoint lp, osg::ref_ptr< osgSim::LightPointNode > lpn)
 Constructor: stores the lightpoint and lightpointnode associated with this object there is one of these updates for each light point on instanced geometry.
bool isShadowCamera (osg::RenderInfo renderInfo) const
 checks to see if this render info is for a shadow camera. This is used to not draw instanced light points when it is a shadow camera
virtual bool isSmallFeature (osg::Matrixf drawableMatrix, osg::ref_ptr< osg::Camera > camera)
 Check to see if this instance of the drawable is smaller than the small feature culling pixel size.
virtual bool processSector (osg::Matrixd drawableMatrix)
 Check to see if the camera location is such that this light point should be drawn based on the light point's sector.
virtual void update (osg::NodeVisitor *nv, osg::Drawable *drw)
 Update callback for the geometry. Handles blinking lights and sets up the arrays for the geometry.

Private Attributes

osg::ref_ptr
< osgSim::LightPointNode > 
myLightPointNode
osgSim::LightPoint myLightPoint
double myLastSimTime
osg::ref_ptr
< osg::DrawElementsUInt > 
myGeomPrimitiveSet
osg::ref_ptr< osg::Vec3Array > myGeomVertexArray
osg::ref_ptr< osg::Vec4Array > myGeomColorArray
osg::ref_ptr< osg::BlendFunc > myGeomBlendFunc
osg::ref_ptr
< DtVirtualProgramDepthOnlyCallback
myDepthOnlyCallback

Detailed Description

Class for handling light point updates and checks also is the update callback for the instanced light point geometry.

Constructor & Destructor Documentation

makVrv::DtInstancedLightPointUpdate::DtInstancedLightPointUpdate ( osgSim::LightPoint  lp,
osg::ref_ptr< osgSim::LightPointNode >  lpn 
)

Constructor: stores the lightpoint and lightpointnode associated with this object there is one of these updates for each light point on instanced geometry.

Member Function Documentation

bool makVrv::DtInstancedLightPointUpdate::isShadowCamera ( osg::RenderInfo  renderInfo) const

checks to see if this render info is for a shadow camera. This is used to not draw instanced light points when it is a shadow camera

virtual bool makVrv::DtInstancedLightPointUpdate::isSmallFeature ( osg::Matrixf  drawableMatrix,
osg::ref_ptr< osg::Camera >  camera 
)
virtual

Check to see if this instance of the drawable is smaller than the small feature culling pixel size.

virtual bool makVrv::DtInstancedLightPointUpdate::processSector ( osg::Matrixd  drawableMatrix)
virtual

Check to see if the camera location is such that this light point should be drawn based on the light point's sector.

virtual void makVrv::DtInstancedLightPointUpdate::update ( osg::NodeVisitor *  nv,
osg::Drawable *  drw 
)
virtual

Update callback for the geometry. Handles blinking lights and sets up the arrays for the geometry.

Member Data Documentation

osg::ref_ptr<osgSim::LightPointNode> makVrv::DtInstancedLightPointUpdate::myLightPointNode
private
osgSim::LightPoint makVrv::DtInstancedLightPointUpdate::myLightPoint
private
double makVrv::DtInstancedLightPointUpdate::myLastSimTime
private
osg::ref_ptr<osg::DrawElementsUInt> makVrv::DtInstancedLightPointUpdate::myGeomPrimitiveSet
private
osg::ref_ptr<osg::Vec3Array> makVrv::DtInstancedLightPointUpdate::myGeomVertexArray
private
osg::ref_ptr<osg::Vec4Array> makVrv::DtInstancedLightPointUpdate::myGeomColorArray
private
osg::ref_ptr<osg::BlendFunc> makVrv::DtInstancedLightPointUpdate::myGeomBlendFunc
private
osg::ref_ptr<DtVirtualProgramDepthOnlyCallback> makVrv::DtInstancedLightPointUpdate::myDepthOnlyCallback
private

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)