MeshComponent Class Reference

Component wrapper of Irrlicht's IMeshSceneNode. More...

Inheritance diagram for MeshComponent:

Inheritance graph
[legend]
Collaboration diagram for MeshComponent:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MeshComponent (Entity *parent)
 Constructor (default).
 MeshComponent (Entity *parent, const std::string &fileName, const vector3df &rotation=vector3df(0, 0, 0), const vector3df &scale=vector3df(1.0f, 1.0f, 1.0f))
 Constructor.
 MeshComponent (Entity *parent, IMesh *mesh, const vector3df &rotation=vector3df(0, 0, 0), const vector3df &scale=vector3df(1.0f, 1.0f, 1.0f))
 Constructor.
 ~MeshComponent ()
 Deconstructor.
IMeshSceneNode * getMeshSceneNode ()
 Returns a direct pointer to the IMeshSceneNode.
IMesh * getMesh ()
 Returns the current mesh.
void setMesh (const std::string &fileName)
 Loads and sets a new mesh to display. fileName Filename of the mesh to load.
void setMesh (IMesh *mesh)
 Sets a new mesh to display.

Static Public Member Functions

static MeshComponentrefFactory (Entity *parent)
 Will be used to instanciate objects of this class.
static MeshComponentrefFactory (Entity *parent, const std::string &fileName, const vector3df &rotation, const vector3df &scale)
 Will be used to instanciate objects of this class.


Detailed Description

Component wrapper of Irrlicht's IMeshSceneNode.

Definition at line 26 of file MeshComponent.h.


Constructor & Destructor Documentation

MeshComponent::MeshComponent ( Entity parent  ) 

Constructor (default).

Parameters:
parent The parent entity to which the component should be added.

Definition at line 23 of file MeshComponent.cpp.

MeshComponent::MeshComponent ( Entity parent,
const std::string &  fileName,
const vector3df &  rotation = vector3df(0, 0, 0),
const vector3df &  scale = vector3df(1.0f, 1.0f, 1.0f) 
)

Constructor.

Parameters:
parent The parent entity to which the component should be added.
fileName Filename of the mesh to load.
rotation Initial rotation of the mesh.
scale Initial scale of the mesh.

Definition at line 40 of file MeshComponent.cpp.

MeshComponent::MeshComponent ( Entity parent,
IMesh *  mesh,
const vector3df &  rotation = vector3df(0, 0, 0),
const vector3df &  scale = vector3df(1.0f, 1.0f, 1.0f) 
)

Constructor.

Parameters:
parent The parent entity to which the component should be added.
mesh Pointer to the loaded animated mesh to be displayed.
rotation Initial rotation of the mesh.
scale Initial scale of the mesh.
Note:
Not available in AngelScript.

Definition at line 59 of file MeshComponent.cpp.

MeshComponent::~MeshComponent (  ) 

Deconstructor.

Definition at line 77 of file MeshComponent.cpp.


Member Function Documentation

IMesh * MeshComponent::getMesh (  ) 

Returns the current mesh.

Note:
Not available in AngelScript.

Definition at line 103 of file MeshComponent.cpp.

IMeshSceneNode * MeshComponent::getMeshSceneNode (  ) 

Returns a direct pointer to the IMeshSceneNode.

Note:
Not available in AngelScript.

Definition at line 97 of file MeshComponent.cpp.

MeshComponent * MeshComponent::refFactory ( Entity parent,
const std::string &  fileName,
const vector3df &  rotation,
const vector3df &  scale 
) [static]

Will be used to instanciate objects of this class.

Note:
For internal use only!

Definition at line 90 of file MeshComponent.cpp.

MeshComponent * MeshComponent::refFactory ( Entity parent  )  [static]

Will be used to instanciate objects of this class.

Note:
For internal use only!

Reimplemented from SceneComponent.

Definition at line 84 of file MeshComponent.cpp.

void MeshComponent::setMesh ( IMesh *  mesh  ) 

Sets a new mesh to display.

Parameters:
mesh Pointer to the loaded animated mesh to be displayed.
Note:
Not available in AngelScript.

Definition at line 117 of file MeshComponent.cpp.

void MeshComponent::setMesh ( const std::string &  fileName  ) 

Loads and sets a new mesh to display. fileName Filename of the mesh to load.

Definition at line 109 of file MeshComponent.cpp.


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

Generated on Wed Jun 10 22:26:26 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8