sofa::helper::io::Mesh::Material Class Reference

#include <Mesh.h>

Collaboration diagram for sofa::helper::io::Mesh::Material:

Collaboration graph
[legend]

Public Member Functions

void setColor (float r, float g, float b, float a)
 Material ()

Data Fields

std::string name
Vec4f diffuse
Vec4f ambient
Vec4f specular
Vec4f emissive
float shininess
bool useDiffuse
bool useSpecular
bool useAmbient
bool useEmissive
bool useShininess
bool activated

Friends

std::ostream & operator<< (std::ostream &out, const Material &m)
std::istream & operator>> (std::istream &in, Material &m)

Detailed Description

Definition at line 52 of file Mesh.h.


Constructor & Destructor Documentation

sofa::helper::io::Mesh::Material::Material (  ) 


Member Function Documentation

void sofa::helper::io::Mesh::Material::setColor ( float  r,
float  g,
float  b,
float  a 
)

Definition at line 59 of file Mesh.cpp.

References ambient, diffuse, emissive, and specular.

Referenced by sofa::component::visualmodel::VisualModelImpl::setColor().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Material &  m 
) [friend]

Definition at line 70 of file Mesh.h.

std::istream& operator>> ( std::istream &  in,
Material &  m 
) [friend]

Definition at line 80 of file Mesh.h.


Field Documentation

Definition at line 66 of file Mesh.h.

Referenced by Material(), and sofa::component::visualmodel::VisualModelImpl::setMesh().

Definition at line 55 of file Mesh.h.

Referenced by Material().


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

Generated on Sun Nov 23 04:24:19 2008 for Sofa by  doxygen 1.5.7.1