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

Public Member Functions | |
| DtOsgCullVisitor () | |
| 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. | |
Protected Member Functions | |
| virtual void | apply (osg::Transform &node) |
| check for scalable transform and scale as required | |
| virtual void | apply (osg::Group &group) |
| check for scalable group and scale bounding sphere as required | |
| 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. | |
Protected Attributes | |
| DtOsgCullVisitorParameters * | myInfoCopy |
| double | myAltitude |
| double | myMaximumMagnificationAngle |
| osg::Matrix | myWorldToWindowMatrix |
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
Copy constructor.
Virtual void.
| bool makVrv::DtOsgCullVisitor::orthoCulling | ( | ) | const |
Query whether this visitor is doing orthographic culling.
Query whether the coordinate system changed this frame (used to reset localToWorkd matrices)
| virtual float makVrv::DtOsgCullVisitor::getDistanceToScreenEdge | ( | const osg::Vec3 & | vec | ) | const [virtual] |
Get a projected distance from the screen edge (approximate) when orthoCulling.
| virtual float makVrv::DtOsgCullVisitor::altitude2D | ( | ) | const [virtual] |
Same as getDistanceToViewPoint() when ortho culling.
| const DtOsgCullVisitorParameters* makVrv::DtOsgCullVisitor::visitorParameters | ( | ) | const |
Get the cull visitor parameters.
| virtual void makVrv::DtOsgCullVisitor::apply | ( | osg::Transform & | node | ) | [protected, virtual] |
check for scalable transform and scale as required
| virtual void makVrv::DtOsgCullVisitor::apply | ( | osg::Group & | group | ) | [protected, virtual] |
check for scalable group and scale bounding sphere as required
| virtual float makVrv::DtOsgCullVisitor::getDistanceToViewPoint | ( | const osg::Vec3 & | vec, |
| bool | useLOD | ||
| ) | const [protected, virtual] |
Gets the distance to the view point with the given visual mode.
Will be used to page in LODs
| virtual bool makVrv::DtOsgCullVisitor::isCulled | ( | osg::Node & | node, |
| double | scaleFactor | ||
| ) | [protected, virtual] |
for nodes that need scaling, we call this instead of CullVisitor::isCulled
| DtOsgCullVisitorParameters* makVrv::DtOsgCullVisitor::getVisitorParameters | ( | ) | const [protected] |
Fetches the info from the visitor's renderInfo object.
| virtual osgUtil::CullVisitor* makVrv::DtOsgCullVisitor::clone | ( | ) | const [protected, virtual] |
Protected clone function.
double makVrv::DtOsgCullVisitor::myAltitude [protected] |
double makVrv::DtOsgCullVisitor::myMaximumMagnificationAngle [protected] |
osg::Matrix makVrv::DtOsgCullVisitor::myWorldToWindowMatrix [protected] |