![]() |
VR-Forces 5.0.1 Developer's Guide
|
Class for handling light point updates and checks also is the update callback for the instanced light point geometry.

Public Member Functions | |
| DtInstancedLightPointUpdate (const osgSim::LightPoint &lp, osgSim::LightPointNode *lpn, osg::Geometry *geom, DtDe &de) | |
| bool | isShadowCamera (osg::RenderInfo &renderInfo) const |
| virtual bool | isSmallFeature (const osg::Matrixf &drawableMatrix, osg::ref_ptr< osg::Camera > camera, float lightMinPixelSize) |
| virtual bool | processSector (const osg::Matrixd &drawableMatrix) |
| virtual bool | update (double frameTime, osg::Drawable *drw, double lastShaderReload) |
| virtual void | setDaylightControlled (bool b) |
| virtual bool | daylightControlled () |
| virtual osgSim::LightPointNode *const | lightPointNode () const |
Private Attributes | |
| osg::ref_ptr < osgSim::LightPointNode > | myLightPointNode |
| osgSim::LightPoint | myLightPoint |
| double | myLastSimTime |
| bool | myDaylightControlled |
| 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< osg::Uniform > | myLightPointSizeUniform |
| osg::ref_ptr < DtVirtualProgramDepthOnlyCallback > | myDepthOnlyCallback |
| bool | myIsVisible |
| DtDe & | myDe |
| double | myLastShaderReload |
| osg::ref_ptr< osg::Depth > | myDepth |
| makVrv::DtInstancedLightPointUpdate::DtInstancedLightPointUpdate | ( | const osgSim::LightPoint & | lp, |
| osgSim::LightPointNode * | lpn, | ||
| osg::Geometry * | geom, | ||
| DtDe & | de | ||
| ) |
Constructor: stores the lightpoint and lightpointnode associated with this object there is one of these updates for each light point on instanced geometry.
| 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 |
Check to see if this instance of the drawable is smaller than the small feature culling pixel size.
|
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 |
Update callback for the geometry. Handles blinking lights and sets up the arrays for the geometry.
|
virtual |
Set whether the light point visibility is controlled by daylight level.
|
virtual |
Get whether light point visibility is controlled by daylight level.
|
virtual |
The light point node has values that apply to all instances of a given lightpoint node.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |