Model Class Reference
[Framework Module]

#include <model.h>

Inheritance diagram for Model:

SerializedResource Resource Root Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root >

List of all members.

Public Member Functions

 Model (const char *id)
virtual ~Model ()
SceneNodeGetRootNode ()
void SetOverlayColor (const vector3 &color)
void Render ()
void CreateAnimators ()
virtual ulong_t GetDataSize ()

Protected Member Functions

virtual bool LoadResource ()
virtual void Clear ()
virtual bool Deserialize (Serializer &serializer, bool first)
bool ReadSceneNodes (Serializer &serializer, bool root)
bool ReadShapeNode (Serializer &serializer, bool root)
bool ReadTransformNode (Serializer &serializer, bool root)

Protected Attributes

Ref< SceneNoderoot_node
ulong_t data_size
vector3 overlay_color
 Color used for overlay image.

Constructor & Destructor Documentation

Model::Model ( const char *  id  ) 


Model::~Model (  )  [virtual]


Member Function Documentation

SceneNode * Model::GetRootNode (  )  [inline]

void Model::SetOverlayColor ( const vector3 color  )  [inline]

void Model::Render (  )  [inline]

void Model::CreateAnimators (  )  [inline]

ulong_t Model::GetDataSize (  )  [virtual]

Return an estimated byte size of the resource data. This is only used for statistics.

Reimplemented from Resource.

bool Model::LoadResource (  )  [protected, virtual]

Load the resource using SerializeServer.

Reimplemented from SerializedResource.

void Model::Clear (  )  [protected, virtual]

Clears all resource data.

Reimplemented from SerializedResource.

bool Model::Deserialize ( Serializer serializer,
bool  first 
) [protected, virtual]

Recursively deserialize all children.

Reimplemented from Root.

bool Model::ReadSceneNodes ( Serializer serializer,
bool  root 
) [protected]

Recursively loads all scene nodes.

serializer Serializer used to read data.
root Whether given element is an root element.
True if successful.

bool Model::ReadShapeNode ( Serializer serializer,
bool  root 
) [protected]

bool Model::ReadTransformNode ( Serializer serializer,
bool  root 
) [protected]

Member Data Documentation

Ref<SceneNode> Model::root_node [protected]

ulong_t Model::data_size [protected]

vector3 Model::overlay_color [protected]

Color used for overlay image.

The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:33 2007 for Dark Oberon by  doxygen 1.5.3