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

Public Member Functions | |
| DtOsgCullVisitor (DtDe &de) | |
| CTOR. | |
| DtOsgCullVisitor (const DtOsgCullVisitor &) | |
| Copy constructor. | |
| void | initializeViewDependentSettings () |
| Virtual void. | |
| bool | orthoCulling () const |
| Query whether this visitor is doing orthographic culling. | |
| bool | coordinateSystemChanged () const |
| Query whether the coordinate system changed this frame (used to reset localToWorkd matrices) | |
| virtual float | getDistanceToScreenEdge (const osg::Vec3 &vec) const |
| Get a projected distance from the screen edge (approximate) when orthoCulling. | |
| virtual float | altitude2D () const |
| Same as getDistanceToViewPoint() when ortho culling. | |
| const DtOsgCullVisitorParameters * | visitorParameters () const |
| Get the cull visitor parameters. | |
| void | setInReflectionPass (bool bReflecting) |
| Indicate whether we are now in a reflection pass. | |
| bool | inReflectionPass (void) const |
| Query whether this visitor is in a reflection pass. | |
Protected Member Functions | |
| virtual void | apply (osg::Transform &node) |
| check for scalable transform and scale as required | |
| virtual void | apply (osg::Node &node) |
| check for light point nodes so we can disable shaders on them | |
| virtual void | apply (osg::Group &group) |
| check for scalable group and scale bounding sphere as required | |
| virtual void | apply (osg::LightSource &lightSource) |
| check for emissive lights in models and make them global | |
| virtual void | apply (osg::Geode &geode) |
| sync shader uniforms to the state | |
| virtual void | apply (osg::Camera &node) |
| virtual void | apply (osg::Billboard &node) |
| virtual void | apply (osg::PagedLOD &node) |
| virtual float | getDistanceToViewPoint (const osg::Vec3 &vec, bool useLOD) const |
| Gets the distance to the view point with the given visual mode. | |
| virtual bool | isCulled (osg::Node &node, double scaleFactor) |
| for nodes that need scaling, we call this instead of CullVisitor::isCulled | |
| DtOsgCullVisitorParameters * | getVisitorParameters () const |
| Fetches the info from the visitor's renderInfo object. | |
| virtual osgUtil::CullVisitor * | clone () const |
| Protected clone function. | |
| virtual void | reset () |
| virtual | ~DtOsgCullVisitor () |
| void | slot_StateSetChanged (const osg::StateSet *pStateSet) |
Protected Attributes | |
| DtOsgCullVisitorParameters * | myInfoCopy |
| double | myAltitude2D |
| double | myAltitude3D |
| double | myMaximumMagnificationAngle |
| osg::Matrix | myWorldToWindowMatrix |
| DtDe & | myDe |
| boost::BOOST_SIGNALS_NAMESPACE::connection | m_signalConnection |
| bool | myIsInReflectionPass |
| bool | myIsInPagedLod |
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 |
| 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.
|
protectedvirtual |
check for scalable transform and scale as required
|
protectedvirtual |
check for light point nodes so we can disable shaders on them
|
protectedvirtual |
check for scalable group and scale bounding sphere as required
|
protectedvirtual |
check for emissive lights in models and make them global
|
protectedvirtual |
sync shader uniforms to the state
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Gets the distance to the view point with the given visual mode.
Will be used to page in LODs
|
protectedvirtual |
for nodes that need scaling, we call this instead of CullVisitor::isCulled
|
protected |
Fetches the info from the visitor's renderInfo object.
|
protectedvirtual |
Protected clone function.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |