MaterialList Class Reference

Represent a list of material. More...

#include <material_list.h>

Inheritance diagram for MaterialList:

Object ReferenceCounted

List of all members.

Public Member Functions

 MaterialList ()
 An constructor that does nothing.
virtual ~MaterialList ()
 An destructor that does nothing.
int get_material_count () const
 Return the number of materials in the list.
void append_material (Material *material)
 Add a material to the end of the list.
Materialget_material (int index)
 Get the material with the given index.
void set_material (int index, Material *material)
 Set the material with the given index to the given material.
virtual void accept (Visitor *visitor)
 Accept a visitor.

Private Attributes

std::vector< Reference
< Material > > 
list


Detailed Description

Represent a list of material.

Constructor & Destructor Documentation

MaterialList::MaterialList (  ) 

An constructor that does nothing.

virtual MaterialList::~MaterialList (  )  [virtual]

An destructor that does nothing.


Member Function Documentation

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

Accept a visitor.

Implements Object.

void MaterialList::append_material ( Material material  ) 

Add a material to the end of the list.

Material* MaterialList::get_material ( int  index  ) 

Get the material with the given index.

int MaterialList::get_material_count (  )  const

Return the number of materials in the list.

void MaterialList::set_material ( int  index,
Material material 
)

Set the material with the given index to the given material.


Member Data Documentation

std::vector< Reference<Material> > MaterialList::list [private]


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