SOFA API  f384085d
Open source framework for multi-physics simuation
sofa::type::Material Class Reference

#include <Material.h>

Public Attributes

std::string name
 
RGBAColor diffuse
 
RGBAColor ambient
 
RGBAColor specular
 
RGBAColor emissive
 
float shininess
 
bool useDiffuse
 
bool useSpecular
 
bool useAmbient
 
bool useEmissive
 
bool useShininess
 
bool useTexture
 
bool useBumpMapping
 
bool activated
 
std::string textureFilename
 
std::string bumpTextureFilename
 

Public Member Functions

void setColor (float r, float g, float b, float a)
 
 Material ()
 
 Material (const Material &mat)
 
Materialoperator= (const Material &other)
 

Friends

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

Attribute details

◆ activated

bool sofa::type::Material::activated

◆ ambient

RGBAColor sofa::type::Material::ambient

◆ bumpTextureFilename

std::string sofa::type::Material::bumpTextureFilename

◆ diffuse

RGBAColor sofa::type::Material::diffuse

◆ emissive

RGBAColor sofa::type::Material::emissive

◆ name

std::string sofa::type::Material::name

◆ shininess

float sofa::type::Material::shininess

◆ specular

RGBAColor sofa::type::Material::specular

◆ textureFilename

std::string sofa::type::Material::textureFilename

◆ useAmbient

bool sofa::type::Material::useAmbient

◆ useBumpMapping

bool sofa::type::Material::useBumpMapping

◆ useDiffuse

bool sofa::type::Material::useDiffuse

◆ useEmissive

bool sofa::type::Material::useEmissive

◆ useShininess

bool sofa::type::Material::useShininess

◆ useSpecular

bool sofa::type::Material::useSpecular

◆ useTexture

bool sofa::type::Material::useTexture

Constructor details

◆ Material() [1/2]

sofa::type::Material::Material ( )

◆ Material() [2/2]

sofa::type::Material::Material ( const Material mat)

Function details

◆ operator=()

Material & sofa::type::Material::operator= ( const Material other)

◆ setColor()

void sofa::type::Material::setColor ( float  r,
float  g,
float  b,
float  a 
)

Related details

◆ operator<<

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

◆ operator>>

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