![]() |
VR-Forces 4.10 Class Documentation
|
DtOsgCullVisitor will inspect the camera to see which visual mode is active. More...

Public Member Functions | |
| DtOsgCullVisitor (DtDe &de) | |
| CTOR. More... | |
| DtOsgCullVisitor (const DtOsgCullVisitor &) | |
| Copy constructor. More... | |
| void | initializeViewDependentSettings () |
| Virtual void. More... | |
| bool | orthoCulling () const |
| Query whether this visitor is doing orthographic culling. More... | |
| bool | coordinateSystemChanged () const |
| Query whether the coordinate system changed this frame (used to reset localToWorkd matrices) More... | |
| virtual float | getDistanceToScreenEdge (const osg::Vec3 &vec) const |
| Get a projected distance from the screen edge (approximate) when orthoCulling. More... | |
| virtual float | altitude2D () const |
| Same as getDistanceToViewPoint() when ortho culling. More... | |
| const DtOsgCullVisitorParameters * | visitorParameters () const |
| Get the cull visitor parameters. More... | |
| void | setInReflectionPass (bool bReflecting) |
| Indicate whether we are now in a reflection pass. More... | |
| bool | inReflectionPass (void) const |
| Query whether this visitor is in a reflection pass. More... | |
| const DtDe & | de (void) const |
| const accessor for DtDe. More... | |
| DtDe & | de (void) |
| const accessor for DtDe. More... | |
| virtual void | apply (osg::Transform &node) |
| check for scalable transform and scale as required More... | |
| virtual void | apply (osg::Node &node) |
| check for light point nodes so we can disable shaders on them More... | |
| virtual void | apply (osg::Group &group) |
| check for scalable group and scale bounding sphere as required More... | |
| virtual void | apply (osg::LightSource &lightSource) |
| check for emissive lights in models and make them global More... | |
| virtual void | apply (osg::Geode &geode) |
| sync shader uniforms to the state More... | |
| virtual void | apply (osg::Camera &node) |
| currently unused but can be used for profiling the camera apply More... | |
| virtual void | apply (osg::Billboard &node) |
| process the cull for billboards More... | |
| virtual void | apply (osg::PagedLOD &node) |
| used so we know when the cull visitor is below a paged lod in the scene graph this lets us apply the paged lod magnification scale factor only to things under paged lods More... | |
| virtual void | apply (osg::OcclusionQueryNode &node) |
| process and check the queries for a this query node. More... | |
| virtual bool | isCulled (osg::Node &node, double scaleFactor) |
| for nodes that need scaling, we call this instead of CullVisitor::isCulled More... | |
Protected Member Functions | |
| virtual | ~DtOsgCullVisitor () |
| destructor More... | |
| virtual float | getDistanceToViewPoint (const osg::Vec3 &vec, bool useLOD) const |
| Gets the distance to the view point with the given visual mode. More... | |
| virtual float | calculateFocusPointDistance (const osg::Vec3 &vec, bool useLOD, float magVal) const |
| utility function for calculating the distance based on focus points. More... | |
| DtOsgCullVisitorParameters * | getVisitorParameters () const |
| Fetches the info from the visitor's renderInfo object. More... | |
| virtual osgUtil::CullVisitor * | clone () const |
| Protected clone function. More... | |
| virtual void | reset () |
| reset the light manager and call osgUtil::CullVisitor::reset More... | |
| void | slot_StateSetChanged (const osg::StateSet *pStateSet) |
| connect to the state set changed signal so we can invalidate the uniforms. More... | |
Protected Attributes | |
| DtOsgCullVisitorParameters * | myInfoCopy |
| double | myAltitude2D |
| double | myAltitude3D |
| osg::Matrix | myWorldToWindowMatrix |
| DtDe & | myDe |
| boost::signalslib::connection | m_signalConnection |
| bool | myIsInReflectionPass |
| bool | myIsInTerrain |
DtOsgCullVisitor will inspect the camera to see which visual mode is active.
If the visual mode is a 2D display mode, it changes the way LODs are paged in by pixel size and zoom level, else uses a distance from eye-point check with no LOD scale
| makVrv::DtOsgCullVisitor::DtOsgCullVisitor | ( | DtDe & | de | ) |
CTOR.
| makVrv::DtOsgCullVisitor::DtOsgCullVisitor | ( | const DtOsgCullVisitor & | ) |
Copy constructor.
|
protectedvirtual |
destructor
| void makVrv::DtOsgCullVisitor::initializeViewDependentSettings | ( | ) |
Virtual void.
| bool makVrv::DtOsgCullVisitor::orthoCulling | ( | ) | const |
Query whether this visitor is doing orthographic culling.
| bool makVrv::DtOsgCullVisitor::coordinateSystemChanged | ( | ) | const |
Query whether the coordinate system changed this frame (used to reset localToWorkd matrices)
|
virtual |
Get a projected distance from the screen edge (approximate) when orthoCulling.
|
virtual |
Same as getDistanceToViewPoint() when ortho culling.
| const DtOsgCullVisitorParameters* makVrv::DtOsgCullVisitor::visitorParameters | ( | ) | const |
Get the cull visitor parameters.
|
inline |
Indicate whether we are now in a reflection pass.
|
inline |
Query whether this visitor is in a reflection pass.
| const DtDe& makVrv::DtOsgCullVisitor::de | ( | void | ) | const |
| DtDe& makVrv::DtOsgCullVisitor::de | ( | void | ) |
|
virtual |
check for scalable transform and scale as required
|
virtual |
check for light point nodes so we can disable shaders on them
|
virtual |
check for scalable group and scale bounding sphere as required
|
virtual |
check for emissive lights in models and make them global
|
virtual |
sync shader uniforms to the state
|
virtual |
currently unused but can be used for profiling the camera apply
|
virtual |
process the cull for billboards
|
virtual |
used so we know when the cull visitor is below a paged lod in the scene graph this lets us apply the paged lod magnification scale factor only to things under paged lods
|
virtual |
process and check the queries for a this query node.
for nodes that need scaling, we call this instead of CullVisitor::isCulled
|
protectedvirtual |
Gets the distance to the view point with the given visual mode.
Will be used to page in LODs
|
protectedvirtual |
utility function for calculating the distance based on focus points.
|
protected |
Fetches the info from the visitor's renderInfo object.
|
protectedvirtual |
Protected clone function.
|
protectedvirtual |
reset the light manager and call osgUtil::CullVisitor::reset
|
protected |
connect to the state set changed signal so we can invalidate the uniforms.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |