29 #ifndef CDPL_VIS_MATERIAL_HPP
30 #define CDPL_VIS_MATERIAL_HPP
68 Material(
const Color& amb_color,
double amb_factor,
const Color& diff_color,
const Color& spec_color,
double shininess,
double transp = 0.0);
78 Material(
double amb_factor,
const Color& diff_color,
const Color& spec_color,
double shininess,
double transp = 0.0);
171 double ambientFactor;
Definition of the class CDPL::Vis::Color.
Definition of the preprocessor macro CDPL_VIS_API.
#define CDPL_VIS_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Specifies a color in terms of its red, green and blue components and an alpha-channel for transparenc...
Definition: Color.hpp:52
Defines material properties of Vis::Object3D instances.
Definition: Material.hpp:56
double getShininess() const
Returns the shininess of the material.
Material(double amb_factor, const Color &diff_color, const Color &spec_color, double shininess, double transp=0.0)
Constructs an new Material instance with the specified properties.
const Color & getDiffuseColor() const
Returns the diffuse color component.
void setTransparency(double transp)
Sets the transparency of the material.
bool operator==(const Material &material) const
Equality comparison operator.
void setAmbientFactor(double factor)
Sets the scaling factor to use for calculating the ambient from the diffuse color component.
void setDiffuseColor(const Color &color)
Sets the diffuse color component.
bool operator!=(const Material &material) const
Inequality comparison operator.
double getAmbientFactor() const
Returns the scaling factor used for calculating the ambient from the diffuse color component.
const Color & getSpecularColor() const
Returns the specular color component.
void setSpecularColor(const Color &color)
Sets the specular color component.
double getTransparency() const
Returns the transparency of the material.
Material(const Color &amb_color, double amb_factor, const Color &diff_color, const Color &spec_color, double shininess, double transp=0.0)
Constructs an new Material instance with the specified properties.
void setShininess(double shininess)
Sets the shininess of the material.
const Color & getAmbientColor() const
Returns the ambient color component.
void setAmbientColor(const Color &color)
Sets the ambient color component.
The namespace of the Chemical Data Processing Library.