VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
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
;
46
TransformStack
myTransformStack
;
47
private
:
48
};
49
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)