VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgBoundingBoxSum.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 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, osg::NodeVisitor::TraversalMode mode);
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 }
bool myOrientationNodeSkipped
Definition: DtOsgBoundingBoxSum.h:43
osg::Geode * myGeodeToSkip
Definition: DtOsgBoundingBoxSum.h:42
osg::BoundingBox myBBox
Definition: DtOsgBoundingBoxSum.h:41
void expandBy(osg::Vec3 newCorner, osg::Vec3 &oldMin, osg::Vec3 &oldMax)
const char int mode
Definition: ioapi.h:38
Contains DLL export macros.
TransformStack myTransformStack
Definition: DtOsgBoundingBoxSum.h:46
DtOsgBoundingBoxSum(osg::Geode *geodeToSkip, osg::NodeVisitor::TraversalMode mode)
std::vector< osg::Matrix > TransformStack
Definition: DtOsgBoundingBoxSum.h:45
virtual void apply(osg::Geode &n)
Definition: DtOsgBoundingBoxSum.h:28

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)