Material Class Reference

Material. More...

#include <Plugin-FileOBJ/Material.hh>

Collaboration diagram for Material:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void cleanup ()
bool is_valid (void) const
bool has_Kd (void)
 Does material have a diffuse color?
bool has_Ka (void)
 Does material have an ambient color?
bool has_Ks (void)
 Does material have a specular color?
bool has_Tr (void)
 Does material have transparency?
bool has_Texture () const
 Does material have a texture?
bool operator== (Material &_mat)
 Compare operator - Compares all class members.
bool operator!= (Material &_mat)
 Not equal operator.
int material_number () const
 Returns the material number (externally set).
void material_number (unsigned int _n)
void set_Kd (float r, float g, float b)
 Set diffuse color.
void set_Ka (float r, float g, float b)
 Set ambient color.
void set_Ks (float r, float g, float b)
 Set specular color.
void set_Tr (float t)
 Set transparency value (between 0 and 1).
void set_map_Kd (std::string _name, int _index_Kd)
 Set texture file and index.
const Vec3f & Kd (void) const
 Get diffuse color.
const Vec3f & Ka (void) const
 Get ambient color.
const Vec3f & Ks (void) const
 Get specular color.
float Tr (void) const
 Get transparency value.
const std::string & map_Kd (void)
 Get texture file.
const int & map_Kd_index (void)
 Get texture index.

Private Attributes

unsigned int localNum_
Vec3f Kd_
bool Kd_is_set_
Vec3f Ka_
bool Ka_is_set_
Vec3f Ks_
bool Ks_is_set_
float Tr_
bool Tr_is_set_
std::string map_Kd_
int index_Kd_
bool map_Kd_is_set_

Detailed Description

Material.

This class provides means to store materials like colors, texture information (texture indices, filenames, etc.).

Definition at line 57 of file Material.hh.


The documentation for this class was generated from the following file:
Generated on Thu Jun 30 10:11:07 2011 for DeveloperDocumentation by  doxygen 1.6.3