Public Member Functions | Public Attributes | Private Attributes | List of all members
Opcode::AABBTreeBuilder Class Referenceabstract

#include <Opcode.h>

Inheritance diagram for Opcode::AABBTreeBuilder:
Inheritance graph
[legend]

Public Member Functions

 AABBTreeBuilder ()
 Constructor. More...
 
virtual bool ComputeGlobalBox (const udword *primitives, udword nb_prims, AABB &global_box) const =0
 
inline_ udword GetCount () const
 
inline_ udword GetNbInvalidSplits () const
 
virtual float GetSplittingValue (udword index, udword axis) const =0
 
virtual float GetSplittingValue (const udword *primitives, udword nb_prims, const AABB &global_box, udword axis) const
 
inline_ void IncreaseCount (udword nb)
 
inline_ void IncreaseNbInvalidSplits ()
 
inline_ void SetCount (udword nb)
 
inline_ void SetNbInvalidSplits (udword nb)
 
virtual BOOL ValidateSubdivision (const udword *primitives, udword nb_prims, const AABB &global_box)
 
virtual ~AABBTreeBuilder ()
 Destructor. More...
 

Public Attributes

udword mNbPrimitives
 Total number of primitives. More...
 
voidmNodeBase
 Address of node pool [Opcode 1.3]. More...
 
BuildSettings mSettings
 Splitting rules & split limit [Opcode 1.3]. More...
 

Private Attributes

udword mCount
 Stats: number of nodes created. More...
 
udword mNbInvalidSplits
 Stats: number of invalid splits. More...
 

Detailed Description

Definition at line 48 of file Opcode.h.

Constructor & Destructor Documentation

Opcode::AABBTreeBuilder::AABBTreeBuilder ( )
inline

Constructor.

Definition at line 52 of file Opcode.h.

virtual Opcode::AABBTreeBuilder::~AABBTreeBuilder ( )
inlinevirtual

Destructor.

Definition at line 58 of file Opcode.h.

Member Function Documentation

virtual bool Opcode::AABBTreeBuilder::ComputeGlobalBox ( const udword primitives,
udword  nb_prims,
AABB global_box 
) const
pure virtual

Computes the AABB of a set of primitives.

Parameters
primitives[in] list of indices of primitives
nb_prims[in] number of indices
global_box[out] global AABB enclosing the set of input primitives
Returns
true if success
inline_ udword Opcode::AABBTreeBuilder::GetCount ( ) const
inline

Definition at line 120 of file Opcode.h.

inline_ udword Opcode::AABBTreeBuilder::GetNbInvalidSplits ( ) const
inline

Definition at line 123 of file Opcode.h.

virtual float Opcode::AABBTreeBuilder::GetSplittingValue ( udword  index,
udword  axis 
) const
pure virtual

Computes the splitting value along a given axis for a given primitive.

Parameters
index[in] index of the primitive to split
axis[in] axis index (0,1,2)
Returns
splitting value
virtual float Opcode::AABBTreeBuilder::GetSplittingValue ( const udword primitives,
udword  nb_prims,
const AABB global_box,
udword  axis 
) const
inlinevirtual

Computes the splitting value along a given axis for a given node.

Parameters
primitives[in] list of indices of primitives
nb_prims[in] number of indices
global_box[in] global AABB enclosing the set of input primitives
axis[in] axis index (0,1,2)
Returns
splitting value

Definition at line 91 of file Opcode.h.

inline_ void Opcode::AABBTreeBuilder::IncreaseCount ( udword  nb)
inline

Definition at line 119 of file Opcode.h.

inline_ void Opcode::AABBTreeBuilder::IncreaseNbInvalidSplits ( )
inline

Definition at line 122 of file Opcode.h.

inline_ void Opcode::AABBTreeBuilder::SetCount ( udword  nb)
inline

Definition at line 118 of file Opcode.h.

inline_ void Opcode::AABBTreeBuilder::SetNbInvalidSplits ( udword  nb)
inline

Definition at line 121 of file Opcode.h.

virtual BOOL Opcode::AABBTreeBuilder::ValidateSubdivision ( const udword primitives,
udword  nb_prims,
const AABB global_box 
)
inlinevirtual

Validates node subdivision. This is called each time a node is considered for subdivision, during tree building.

Parameters
primitives[in] list of indices of primitives
nb_prims[in] number of indices
global_box[in] global AABB enclosing the set of input primitives
Returns
TRUE if the node should be subdivised

Definition at line 106 of file Opcode.h.

Member Data Documentation

udword Opcode::AABBTreeBuilder::mCount
private

Stats: number of nodes created.

Definition at line 126 of file Opcode.h.

udword Opcode::AABBTreeBuilder::mNbInvalidSplits
private

Stats: number of invalid splits.

Definition at line 127 of file Opcode.h.

udword Opcode::AABBTreeBuilder::mNbPrimitives

Total number of primitives.

Definition at line 115 of file Opcode.h.

void* Opcode::AABBTreeBuilder::mNodeBase

Address of node pool [Opcode 1.3].

Definition at line 116 of file Opcode.h.

BuildSettings Opcode::AABBTreeBuilder::mSettings

Splitting rules & split limit [Opcode 1.3].

Definition at line 114 of file Opcode.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 Sat May 8 2021 02:42:45