Public Member Functions | Private Attributes
AABBTree Class Reference

#include <OPC_AABBTree.h>

Inheritance diagram for AABBTree:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AABBTree ()
bool Build (AABBTreeBuilder *builder)
udword ComputeDepth () const
inline_ const udwordGetIndices () const
 Catch the indices.
inline_ udword GetNbNodes () const
 Catch the number of nodes.
udword GetUsedBytes () const
bool IsComplete () const
bool Refit (AABBTreeBuilder *builder)
bool Refit2 (AABBTreeBuilder *builder)
void Release ()
udword Walk (WalkingCallback callback, void *user_data) const
 ~AABBTree ()

Private Attributes

udwordmIndices
 Indices in the app list. Indices are reorganized during build (permutation).
AABBTreeNodemPool
 Linear pool of nodes for complete trees. Null otherwise. [Opcode 1.3].
udword mTotalNbNodes
 Number of nodes in the tree.

Detailed Description

Contains a generic AABB tree. This is a vanilla AABB tree, without any particular optimization. It contains anonymous references to user-provided primitives, which can theoretically be anything - triangles, boxes, etc. Each primitive is surrounded by an AABB, regardless of the primitive's nature. When the primitive is a triangle, the resulting tree can be converted into an optimized tree. If the primitive is a box, the resulting tree can be used for culling - VFC or occlusion -, assuming you cull on a mesh-by-mesh basis (modern way).

Author:
Pierre Terdiman
Version:
1.3
Date:
March, 20, 2001

Definition at line 113 of file OPC_AABBTree.h.


Constructor & Destructor Documentation


Member Function Documentation

bool AABBTree::Build ( AABBTreeBuilder builder)

Catch the indices.

Definition at line 124 of file OPC_AABBTree.h.

inline_ udword AABBTree::GetNbNodes ( ) const [inline]

Catch the number of nodes.

Definition at line 125 of file OPC_AABBTree.h.

bool AABBTree::IsComplete ( ) const
bool AABBTree::Refit ( AABBTreeBuilder builder)
bool AABBTree::Refit2 ( AABBTreeBuilder builder)
udword AABBTree::Walk ( WalkingCallback  callback,
void user_data 
) const

Member Data Documentation

Indices in the app list. Indices are reorganized during build (permutation).

Definition at line 137 of file OPC_AABBTree.h.

Linear pool of nodes for complete trees. Null otherwise. [Opcode 1.3].

Definition at line 138 of file OPC_AABBTree.h.

Number of nodes in the tree.

Definition at line 140 of file OPC_AABBTree.h.


The documentation for this class was generated from the following file:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:43:59