VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgCullVisitor Class Reference

DtOsgCullVisitor will inspect the camera to see which visual mode is active. More...

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

List of all members.

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 DtOsgCullVisitorParametersvisitorParameters () 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
DtOsgCullVisitorParametersgetVisitorParameters () const
 Fetches the info from the visitor's renderInfo object.
virtual osgUtil::CullVisitor * clone () const
 Protected clone function.

Protected Attributes

DtOsgCullVisitorParametersmyInfoCopy
double myAltitude
double myMaximumMagnificationAngle
osg::Matrix myWorldToWindowMatrix

Detailed Description

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


Constructor & Destructor Documentation

CTOR.

Copy constructor.


Member Function Documentation

Virtual void.

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.

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

Fetches the info from the visitor's renderInfo object.

virtual osgUtil::CullVisitor* makVrv::DtOsgCullVisitor::clone ( ) const [protected, virtual]

Protected clone function.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)