#include <mesh_node.h>
Public Member Functions | |
MeshNode () | |
A constructor that sets all the components to NULL. | |
virtual | ~MeshNode () |
A destructor that does nothing. | |
Mesh * | get_mesh () |
Return the mesh. | |
MeshMaterialMapping * | get_material_mapping () |
Return the material mapping of the mesh. | |
MaterialList * | get_material_list () |
Return the material list associated with the mesh. | |
void | set_mesh (Mesh *mesh) |
Set the mesh of this to the given mesh. | |
void | set_material_mapping (MeshMaterialMapping *material_mapping) |
Set the material mapping of this to the given material mapping. | |
void | set_material_list (MaterialList *material_list) |
Set the material list of this to the given material list. | |
virtual void | accept (Visitor *visitor) |
Accept a visitor. | |
Private Attributes | |
Reference< Mesh > | mesh |
the mesh | |
Reference< MeshMaterialMapping > | material_mapping |
the mesh's material mapping | |
Reference< MaterialList > | material_list |
the mesh's material list |
MeshNode::MeshNode | ( | ) |
A constructor that sets all the components to NULL.
virtual MeshNode::~MeshNode | ( | ) | [virtual] |
A destructor that does nothing.
MaterialList* MeshNode::get_material_list | ( | ) |
Return the material list associated with the mesh.
MeshMaterialMapping* MeshNode::get_material_mapping | ( | ) |
Return the material mapping of the mesh.
Mesh* MeshNode::get_mesh | ( | ) |
Return the mesh.
void MeshNode::set_material_list | ( | MaterialList * | material_list | ) |
Set the material list of this to the given material list.
void MeshNode::set_material_mapping | ( | MeshMaterialMapping * | material_mapping | ) |
Set the material mapping of this to the given material mapping.
void MeshNode::set_mesh | ( | Mesh * | mesh | ) |
Set the mesh of this to the given mesh.
Reference<MaterialList> MeshNode::material_list [private] |
the mesh's material list
the mesh's material mapping
Reference<Mesh> MeshNode::mesh [private] |
the mesh