Public Member Functions | Protected Attributes | List of all members
Opcode::AABBOptimizedTree Class Referenceabstract

#include <Opcode.h>

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

Public Member Functions

 AABBOptimizedTree ()
 
virtual bool Build (AABBTree *tree)=0
 
inline_ udword GetNbNodes () const
 
virtual udword GetUsedBytes () const =0
 
virtual bool Refit (const MeshInterface *mesh_interface)=0
 
virtual bool Walk (GenericWalkingCallback callback, void *user_data) const =0
 
virtual ~AABBOptimizedTree ()
 

Protected Attributes

udword mNbNodes
 

Detailed Description

Definition at line 148 of file Opcode.h.

Constructor & Destructor Documentation

◆ AABBOptimizedTree()

Opcode::AABBOptimizedTree::AABBOptimizedTree ( )
inline

Definition at line 152 of file Opcode.h.

◆ ~AABBOptimizedTree()

virtual Opcode::AABBOptimizedTree::~AABBOptimizedTree ( )
inlinevirtual

Definition at line 155 of file Opcode.h.

Member Function Documentation

◆ Build()

virtual bool Opcode::AABBOptimizedTree::Build ( AABBTree tree)
pure virtual

Builds the collision tree from a generic AABB tree.

Parameters
tree[in] generic AABB tree
Returns
true if success

◆ GetNbNodes()

inline_ udword Opcode::AABBOptimizedTree::GetNbNodes ( ) const
inline

Definition at line 187 of file Opcode.h.

◆ GetUsedBytes()

virtual udword Opcode::AABBOptimizedTree::GetUsedBytes ( ) const
pure virtual

◆ Refit()

virtual bool Opcode::AABBOptimizedTree::Refit ( const MeshInterface mesh_interface)
pure virtual

Refits the collision tree after vertices have been modified.

Parameters
mesh_interface[in] mesh interface for current model
Returns
true if success

◆ Walk()

virtual bool Opcode::AABBOptimizedTree::Walk ( GenericWalkingCallback  callback,
void user_data 
) const
pure virtual

Walks the tree and call the user back for each node.

Parameters
callback[in] walking callback
user_data[in] callback's user data
Returns
true if success

Member Data Documentation

◆ mNbNodes

udword Opcode::AABBOptimizedTree::mNbNodes
protected

Definition at line 190 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 Thu Sep 8 2022 02:24:09