![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2011 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtOsgIntersectVisitor.h,v $ $Revision: 1.8 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtOsgIntersectVisitor_H_ 00014 #define DtOsgIntersectVisitor_H_ 00015 00016 #include <vrvOsg/vrvOsg.h> 00017 #include <osgUtil/IntersectVisitor> 00018 00019 namespace makVrv 00020 { 00021 class DtOsgTerrainPatchObject; 00022 00027 class DT_DLL_VRVOSG DtOsgIntersectVisitor : public osgUtil::IntersectVisitor 00028 { 00029 public: 00031 DtOsgIntersectVisitor(); 00032 00034 DtOsgIntersectVisitor(const DtOsgIntersectVisitor&); 00035 00037 virtual osgUtil::IntersectVisitor* clone() const { return new DtOsgIntersectVisitor(*this); } 00038 00040 virtual void setUseHighLodForOsgEarth( bool b ); 00041 00043 virtual bool useHighLodForOsgEarth() const; 00044 00045 protected: 00046 00050 virtual void apply(osg::Group& group); 00051 00052 00053 protected: 00054 virtual void osgEarthIntersect( DtOsgTerrainPatchObject& tpo ); 00055 00056 protected: 00057 bool myUseHighLodForOsgEarth; 00058 }; 00059 } 00060 00061 #endif 00062