VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
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
osg::BoundingBox
myBBox
;
40
osg::Geode*
myGeodeToSkip
;
41
bool
myOrientationNodeSkipped
;
// has the orientation transform been skipped yet
42
43
typedef
std::vector<osg::Matrix>
TransformStack
;
44
TransformStack
myTransformStack
;
45
private
:
46
};
47
}
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)