VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgIntersectVisitor Class Reference

DtOsgIntersectVisitor checks to see if it is visiting a a DtTerrainPatchGroup and if so, uses its API to get the highest LOD terrain intersections. More...

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

Public Member Functions

 DtOsgIntersectVisitor ()
 CTOR.
 DtOsgIntersectVisitor (const DtOsgIntersectVisitor &)
 Copy constructor.
virtual osgUtil::IntersectVisitor * clone () const
 All osg visitors need to implement clone.
virtual void setUseHighLodForOsgEarth (bool b)
 Set whether we should use the highest lod when dealing with osg earth.
virtual bool useHighLodForOsgEarth () const
 Get whether we should use the highest lod when dealing with osg earth.
virtual void setAboveOceanLODAltitude (bool b)
 When dynamic ocean is in use, indicates whether our current altitude is above the ocean LOD altitude.
virtual void setCheckForOcean (bool b)
 Indicates whether dynamic ocean is in use.

Protected Member Functions

virtual void apply (osg::Group &group)
 Check for DtTerrainPatchGroup if useHighLodForOsgEarth is true If found and the patch is an osgEarth patch, use its getTerrainIntersection call.
virtual void apply (osg::Node &node)
 Check for nodes that are marked as extracted ocean.
virtual void apply (osg::Geode &geode)
virtual void osgEarthIntersect (DtOsgTerrainPatchObject &tpo)

Protected Attributes

bool myUseHighLodForOsgEarth
bool myAboveOceanLODAltitude
bool myCheckForOcean

Detailed Description

DtOsgIntersectVisitor checks to see if it is visiting a a DtTerrainPatchGroup and if so, uses its API to get the highest LOD terrain intersections.

Constructor & Destructor Documentation

makVrv::DtOsgIntersectVisitor::DtOsgIntersectVisitor ( )

CTOR.

makVrv::DtOsgIntersectVisitor::DtOsgIntersectVisitor ( const DtOsgIntersectVisitor )

Copy constructor.

Member Function Documentation

virtual osgUtil::IntersectVisitor* makVrv::DtOsgIntersectVisitor::clone ( ) const
inlinevirtual

All osg visitors need to implement clone.

virtual void makVrv::DtOsgIntersectVisitor::setUseHighLodForOsgEarth ( bool  b)
virtual

Set whether we should use the highest lod when dealing with osg earth.

virtual bool makVrv::DtOsgIntersectVisitor::useHighLodForOsgEarth ( ) const
virtual

Get whether we should use the highest lod when dealing with osg earth.

virtual void makVrv::DtOsgIntersectVisitor::setAboveOceanLODAltitude ( bool  b)
virtual

When dynamic ocean is in use, indicates whether our current altitude is above the ocean LOD altitude.

virtual void makVrv::DtOsgIntersectVisitor::setCheckForOcean ( bool  b)
virtual

Indicates whether dynamic ocean is in use.

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

Check for DtTerrainPatchGroup if useHighLodForOsgEarth is true If found and the patch is an osgEarth patch, use its getTerrainIntersection call.

virtual void makVrv::DtOsgIntersectVisitor::apply ( osg::Node &  node)
protectedvirtual

Check for nodes that are marked as extracted ocean.

virtual void makVrv::DtOsgIntersectVisitor::apply ( osg::Geode &  geode)
protectedvirtual
virtual void makVrv::DtOsgIntersectVisitor::osgEarthIntersect ( DtOsgTerrainPatchObject tpo)
protectedvirtual

Member Data Documentation

bool makVrv::DtOsgIntersectVisitor::myUseHighLodForOsgEarth
protected
bool makVrv::DtOsgIntersectVisitor::myAboveOceanLODAltitude
protected
bool makVrv::DtOsgIntersectVisitor::myCheckForOcean
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)