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
vrvGraphicsUtils
DtOctreeNode.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
#pragma once
10
11
#include "
DtUserObjectBindings.h
"
12
#include "
DtAxisAlignedBoundingBox.h
"
13
14
#include "
DtOctreeFwdDeclare.h
"
15
16
namespace
makVrv {
17
20
template
<
class
T>
21
class
DtOctreeNode
22
{
23
public
:
24
26
DtOctreeNode
();
27
29
~DtOctreeNode
();
30
32
void
setOctant
(
DtOctree<T>
*);
34
DtOctree<T>
*
getOctant
(
void
);
35
37
bool
isIn
(
const
DtAxisAlignedBoundingBox<T>
& box);
38
40
const
DtAxisAlignedBoundingBox<T>
&
worldAABB
(
void
)
const
;
41
42
DtAxisAlignedBoundingBox<T>
myWorldAABB
;
43
45
46
DtUserObjectBindings
&
getUserObjectBindings
(
void
);
47
const
DtUserObjectBindings
&
getUserObjectBindings
(
void
)
const
;
49
51
52
void
setUserData
(
void
* pUserData){
myUserData
= pUserData; }
53
void
*
userData
()
const
{
return
myUserData
; }
55
private
:
56
DtOctree<T>
*
myOctant
;
57
DtUserObjectBindings
myUserObjectBindings
;
58
void
*
myUserData
;
59
};
60
61
typedef
DtOctreeNode<float32>
OctreeNode_32
;
62
typedef
DtOctreeNode<float64>
OctreeNode_64
;
63
64
}
//namespace makVrv
65
66
#include "DtOctreeNode.inl"
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)