|
FreeCAD C++
|
#include <App/Material.h>
Material class
Public Member Functions | |
| void | set (const char *MatName) |
| void | setType (const MaterialType MatType) |
| MaterialType | getType () const |
Constructors | |
| Material (void) | |
| Material (const char *MatName) | |
| Material (const MaterialType MatType) | |
Public Attributes | |
Properties | |
| Color | ambientColor |
| Color | diffuseColor |
| Color | specularColor |
| Color | emissiveColor |
| float | shininess |
| float | transparency |
| App::Material::Material | ( | void | ) |
Sets the USER_DEFINED material type. The user must set the colors afterwards.
| App::Material::Material | ( | const char * | MatName | ) |
Defines the colors and shininess for the material MatName. If MatName isn't defined then USER_DEFINED is set and the user must define the colors itself.
| App::Material::Material | ( | const MaterialType | MatType | ) |
Does basically the same as the constructor above unless that it accepts a MaterialType as argument.
| MaterialType App::Material::getType | ( | ) | const |
Returns the currently set material type.
| void App::Material::set | ( | const char * | MatName | ) |
Set a material by name There are some standard materials defined which are:
| void App::Material::setType | ( | const MaterialType | MatType | ) |
This method is provided for convenience which does basically the same as the method above unless that it accepts a MaterialType as argument.
| Color App::Material::ambientColor |
Defines the ambient color.
| Color App::Material::diffuseColor |
Defines the diffuse color.
| Color App::Material::emissiveColor |
Defines the emissive color.
| Color App::Material::specularColor |
Defines the specular color.
1.8.15