Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Opcode::Model Class Reference

#include <Opcode.h>

Inheritance diagram for Opcode::Model:
Opcode::BaseModel

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from Opcode::BaseModel
void ReleaseBase ()
 
bool CreateTree (bool no_leaf, bool quantized)
 
- 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 ( )

Constructor.

Definition at line 103 of file OPC_Model.cpp.

104 {
105 #ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE !
106  mHull = null;
107 #endif // __MESHMERIZER_H__
108 }
Model::~Model ( )
virtual

Destructor.

Definition at line 115 of file OPC_Model.cpp.

116 {
117  Release();
118 }

Member Function Documentation

Opcode::Model::override ( BaseModel  ) const

Builds a collision model.

Parameters
create[in] model creation structure
Returns
true if success
Opcode::Model::override ( BaseModel  ) const

Gets the number of bytes used by the tree.

Returns
amount of bytes used

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