VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgBoundingBoxSum.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>
13 
14 #include <osg/NodeVisitor>
15 #include <osg/BoundingBox>
16 #include <osg/Matrix>
17 
18 #include <vector>
19 
20 namespace osg
21 {
22  class Geode;
23  class Transform;
24 }
25 
26 namespace makVrv
27 {
28  class DtOsgBoundingBoxSum : public osg::NodeVisitor
29  {
30  public:
31  DtOsgBoundingBoxSum(osg::Geode* geodeToSkip);
32 
33  void expandBy(osg::Vec3 newCorner, osg::Vec3& oldMin, osg::Vec3& oldMax);
34 
35  virtual void apply(osg::Geode& n);
36 
37  virtual void apply (osg::Transform& n);
38 
39  virtual void apply (osg::Sequence& n);
40 
41  osg::BoundingBox myBBox;
42  osg::Geode* myGeodeToSkip;
43  bool myOrientationNodeSkipped; // has the orientation transform been skipped yet
44 
45  typedef std::vector<osg::Matrix> TransformStack;
47  private:
48  };
49 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)