VR-Forces 4.1.1 Class Documentation
DtOsgCullVisitor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 #include <osgUtil/CullVisitor>
15 
16 namespace makVrv
17 {
23  class DT_DLL_VRVOSG DtOsgCullVisitor : public osgUtil::CullVisitor
24  {
25  public:
28 
31 
33  void initializeViewDependentSettings();
34 
36  bool orthoCulling() const;
37 
40  bool coordinateSystemChanged() const;
41 
44  virtual float getDistanceToScreenEdge(const osg::Vec3& vec) const;
45 
47  virtual float altitude2D() const;
48 
50  const DtOsgCullVisitorParameters* visitorParameters() const;
51 
52  protected:
53 
55  virtual void apply(osg::Transform& node);
56 
58  virtual void apply(osg::Group& group);
59 
62  virtual float getDistanceToViewPoint(const osg::Vec3& vec, bool useLOD) const;
63 
66  virtual bool isCulled( osg::Node& node, double scaleFactor ) ;
67 
69  DtOsgCullVisitorParameters* getVisitorParameters() const;
70 
72  virtual osgUtil::CullVisitor* clone() const;
73 
74  protected:
76  double myAltitude;
78  osg::Matrix myWorldToWindowMatrix;
79  };
80 }
81 

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)