ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Grim::Model Class Reference

#include <model.h>

Inheritance diagram for Grim::Model:
Collaboration diagram for Grim::Model:

List of all members.

Classes

class  Geoset

Public Member Functions

 Model (const Common::String &filename, Common::SeekableReadStream *data, CMap *cmap, Model *parent=NULL)
void reload (CMap *cmap)
void draw () const
MaterialfindMaterial (const char *name, CMap *cmap) const
 ~Model ()
const Common::StringgetFilename () const
const ObjectPtr< CMap > & getCMap () const
ModelNodegetHierarchy () const
int getNumNodes () const
void loadMaterial (int index, CMap *cmap)
void loadBinary (Common::SeekableReadStream *data)
void loadText (TextSplitter *ts)

Public Attributes

Common::String _fname
ObjectPtr< CMap_cmap
Model_parent
int _numMaterials
char(* _materialNames )[32]
Material ** _materials
bool * _materialsShared
Math::Vector3d _insertOffset
int _numGeosets
Geoset_geosets
float _radius
int _numHierNodes
ModelNode_rootHierNode
Math::Vector3d _bboxPos
Math::Vector3d _bboxSize

Detailed Description

Definition at line 43 of file grim/model.h.


Constructor & Destructor Documentation

Grim::Model::Model ( const Common::String filename,
Common::SeekableReadStream data,
CMap cmap,
Model parent = NULL 
)

Definition at line 43 of file grim/model.cpp.

Grim::Model::~Model (  ) 

Definition at line 90 of file grim/model.cpp.


Member Function Documentation

void Grim::Model::draw (  )  const

Definition at line 212 of file grim/model.cpp.

Material * Grim::Model::findMaterial ( const char *  name,
CMap cmap 
) const

Definition at line 255 of file grim/model.cpp.

const ObjectPtr<CMap>& Grim::Model::getCMap (  )  const [inline]

Definition at line 54 of file grim/model.h.

const Common::String& Grim::Model::getFilename (  )  const [inline]

Definition at line 53 of file grim/model.h.

ModelNode * Grim::Model::getHierarchy (  )  const

Definition at line 216 of file grim/model.cpp.

int Grim::Model::getNumNodes (  )  const [inline]

Definition at line 57 of file grim/model.h.

void Grim::Model::loadBinary ( Common::SeekableReadStream data  ) 

Definition at line 104 of file grim/model.cpp.

void Grim::Model::loadMaterial ( int  index,
CMap cmap 
)

Definition at line 230 of file grim/model.cpp.

void Grim::Model::loadText ( TextSplitter ts  ) 

Definition at line 132 of file grim/model.cpp.

void Grim::Model::reload ( CMap cmap  ) 

Definition at line 220 of file grim/model.cpp.


Member Data Documentation

Definition at line 88 of file grim/model.h.

Definition at line 76 of file grim/model.h.

Definition at line 75 of file grim/model.h.

Definition at line 84 of file grim/model.h.

Definition at line 79 of file grim/model.h.

Definition at line 80 of file grim/model.h.

Definition at line 81 of file grim/model.h.

Definition at line 83 of file grim/model.h.

Definition at line 86 of file grim/model.h.

Definition at line 78 of file grim/model.h.

Definition at line 77 of file grim/model.h.

Definition at line 85 of file grim/model.h.

Definition at line 87 of file grim/model.h.


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


Generated on Sat May 18 2019 05:06:27 for ResidualVM by doxygen 1.7.1
curved edge   curved edge