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
vrvGraphicsUtils
DtOctreeNode.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
#pragma once
10
11
#include <
vrvGraphicsUtils/DtUserObjectBindings.h
>
12
#include <
vrvGraphicsUtils/DtAxisAlignedBoundingBox.h
>
13
14
#include <
vrvGraphicsUtils/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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)