VR-Forces 4.1.1 Class Documentation
List of all members | 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]

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

makVrv::DtOsgCullVisitor::DtOsgCullVisitor ( )

CTOR.

makVrv::DtOsgCullVisitor::DtOsgCullVisitor ( const DtOsgCullVisitor )

Copy constructor.

Member Function Documentation

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 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)
protectedvirtual

check for scalable transform and scale as required

virtual void makVrv::DtOsgCullVisitor::apply ( osg::Group &  group)
protectedvirtual

check for scalable group and scale bounding sphere as required

virtual float makVrv::DtOsgCullVisitor::getDistanceToViewPoint ( const osg::Vec3 &  vec,
bool  useLOD 
) const
protectedvirtual

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 
)
protectedvirtual

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
protectedvirtual

Protected clone function.

Member Data Documentation

DtOsgCullVisitorParameters* makVrv::DtOsgCullVisitor::myInfoCopy
protected
double makVrv::DtOsgCullVisitor::myAltitude
protected
double makVrv::DtOsgCullVisitor::myMaximumMagnificationAngle
protected
osg::Matrix makVrv::DtOsgCullVisitor::myWorldToWindowMatrix
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)