Public Member Functions | Private Member Functions | List of all members
Opcode::Model Class Reference

#include <Opcode.h>

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

Public Member Functions

 Model ()
 
 override (BaseModel) bool Build(const OPCODECREATE &create)
 
 override (BaseModel) udword GetUsedBytes() const
 
virtual ~Model ()
 
- Public Member Functions inherited from Opcode::BaseModel
 BaseModel ()
 
virtual bool Build (const OPCODECREATE &create)=0
 
inline_ const MeshInterfaceGetMeshInterface () const
 
inline_ udword GetModelCode () const
 
inline_ udword GetNbNodes () const
 
inline_ const AABBTreeGetSourceTree () const
 
inline_ const AABBOptimizedTreeGetTree () const
 
inline_ AABBOptimizedTreeGetTree ()
 
virtual udword GetUsedBytes () const =0
 
inline_ BOOL HasLeafNodes () const
 
inline_ BOOL HasSingleNode () const
 
inline_ BOOL IsQuantized () const
 
virtual bool Refit ()
 
inline_ void SetMeshInterface (const MeshInterface *imesh)
 
virtual ~BaseModel ()
 

Private Member Functions

void Release ()
 

Additional Inherited Members

- Protected Member Functions inherited from Opcode::BaseModel
bool CreateTree (bool no_leaf, bool quantized)
 
void ReleaseBase ()
 
- Protected Attributes inherited from Opcode::BaseModel
const MeshInterfacemIMesh
 User-defined mesh interface. More...
 
udword mModelCode
 Model code = combination of ModelFlag(s) More...
 
AABBTreemSource
 Original source tree. More...
 
AABBOptimizedTreemTree
 Optimized tree owned by the model. More...
 

Detailed Description

Definition at line 24 of file Opcode.h.

Constructor & Destructor Documentation

◆ Model()

Model::Model ( )

Constructor.

Definition at line 102 of file OPC_Model.cpp.

◆ ~Model()

Model::~Model ( )
virtual

Destructor.

Definition at line 114 of file OPC_Model.cpp.

Member Function Documentation

◆ override() [1/2]

Opcode::Model::override ( BaseModel  ) const &

Builds a collision model.

Parameters
create[in] model creation structure
Returns
true if success

◆ override() [2/2]

Opcode::Model::override ( BaseModel  ) const

Gets the number of bytes used by the tree.

Returns
amount of bytes used

◆ Release()

void Model::Release ( )
private

Releases the model.

Definition at line 124 of file OPC_Model.cpp.


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


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