MeshNode Class Reference

Represent a node in the scene graph that contains a Mesh. More...

#include <mesh_node.h>

Inheritance diagram for MeshNode:

SceneGraphNode Object ReferenceCounted

List of all members.

Public Member Functions

 MeshNode ()
 A constructor that sets all the components to NULL.
virtual ~MeshNode ()
 A destructor that does nothing.
Meshget_mesh ()
 Return the mesh.
MeshMaterialMappingget_material_mapping ()
 Return the material mapping of the mesh.
MaterialListget_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< Meshmesh
 the mesh
Reference< MeshMaterialMappingmaterial_mapping
 the mesh's material mapping
Reference< MaterialListmaterial_list
 the mesh's material list


Detailed Description

Represent a node in the scene graph that contains a Mesh.

Constructor & Destructor Documentation

MeshNode::MeshNode (  ) 

A constructor that sets all the components to NULL.

virtual MeshNode::~MeshNode (  )  [virtual]

A destructor that does nothing.


Member Function Documentation

virtual void MeshNode::accept ( Visitor visitor  )  [virtual]

Accept a visitor.

Implements Object.

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.


Member Data Documentation

the mesh's material list

the mesh's material mapping

the mesh


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

Generated on Tue Sep 8 02:20:35 2009 for cglib by  doxygen 1.5.9