VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgIntersectionVisitor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtOsgIntersectVisitor_H_
11 #define DtOsgIntersectVisitor_H_
12 
13 #include <vrvOsg/vrvOsg.h>
14 #include <osgUtil/IntersectionVisitor>
15 
16 namespace makVrv
17 {
18  class DtOsgTerrainPatchObject;
19 
24  class DT_DLL_VRVOSG DtOsgIntersectionVisitor : public osgUtil::IntersectionVisitor
25  {
26  public:
29 
31  virtual ~DtOsgIntersectionVisitor();
32 
34  virtual void setUseHighLodForOsgEarth( bool b );
35 
37  virtual bool useHighLodForOsgEarth() const;
38 
41  virtual void setAboveOceanLODAltitude( bool b );
42 
44  virtual void setCheckForOcean( bool b );
45 
46  public:
47 
51  virtual void apply(osg::Group& group);
52 
54  virtual void apply(osg::Node& node);
55  virtual void apply(osg::Geode& geode);
56 
57  protected:
58  virtual void osgEarthIntersect( DtOsgTerrainPatchObject& tpo );
59 
61  virtual bool isOcean(const osg::Node* node) const;
62 
63  protected:
67  };
68 }
69 
70 #endif
71 
bool myAboveOceanLODAltitude
Definition: DtOsgIntersectionVisitor.h:65
DtOsgIntersectVisitor checks to see if it is visiting a a DtTerrainPatchGroup and if so...
Definition: DtOsgIntersectionVisitor.h:24
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
A DtOsgTerrainPatchObject contains the methods for loading a file as a terrain. When loading a file a...
Definition: DtOsgTerrainPatchObject.h:54
bool myCheckForOcean
Definition: DtOsgIntersectionVisitor.h:66
Contains DLL export macros.
bool myUseHighLodForOsgEarth
Definition: DtOsgIntersectionVisitor.h:64

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)