|
Blender V5.0
|
#include <FrsMaterial.h>
Public Member Functions | |
| FrsMaterial () | |
| FrsMaterial (const float *iLine, const float *iDiffuse, const float *iAmbiant, const float *iSpecular, const float *iEmission, float iShininess, int iPriority) | |
| FrsMaterial (const FrsMaterial &m) | |
| virtual | ~FrsMaterial () |
| const float * | line () const |
| float | lineR () const |
| float | lineG () const |
| float | lineB () const |
| float | lineA () const |
| const float * | diffuse () const |
| float | diffuseR () const |
| float | diffuseG () const |
| float | diffuseB () const |
| float | diffuseA () const |
| const float * | specular () const |
| float | specularR () const |
| float | specularG () const |
| float | specularB () const |
| float | specularA () const |
| const float * | ambient () const |
| float | ambientR () const |
| float | ambientG () const |
| float | ambientB () const |
| float | ambientA () const |
| const float * | emission () const |
| float | emissionR () const |
| float | emissionG () const |
| float | emissionB () const |
| float | emissionA () const |
| float | shininess () const |
| int | priority () const |
| void | setLine (float r, float g, float b, float a) |
| void | setDiffuse (float r, float g, float b, float a) |
| void | setSpecular (float r, float g, float b, float a) |
| void | setAmbient (float r, float g, float b, float a) |
| void | setEmission (float r, float g, float b, float a) |
| void | setShininess (float s) |
| void | setPriority (int priority) |
| FrsMaterial & | operator= (const FrsMaterial &m) |
| bool | operator!= (const FrsMaterial &m) const |
| bool | operator== (const FrsMaterial &m) const |
Class defining a material
Definition at line 19 of file FrsMaterial.h.
|
inline |
Default constructor
Definition at line 307 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), operator=(), and operator==().
|
inline |
Builds a Material from its line, diffuse, ambient, specular, emissive colors, a shininess coefficient and line color priority.
| iLine | A 4 element float-array containing the line color. |
| iDiffuse | A 4 element float-array containing the diffuse color. |
| iAmbiant | A 4 element float-array containing the ambient color. |
| iSpecular | A 4 element float-array containing the specular color. |
| iEmission | A 4 element float-array containing the emissive color. |
| iShininess | The shininess coefficient. |
| iPriority | The line color priority. |
Definition at line 328 of file FrsMaterial.h.
References i.
|
inline |
Copy constructor
Definition at line 348 of file FrsMaterial.h.
References ambient(), diffuse(), emission(), FrsMaterial(), i, line(), priority(), shininess(), and specular().
|
inlinevirtual |
Destructor
Definition at line 53 of file FrsMaterial.h.
|
inline |
Returns the ambient color as a 4 float array
Definition at line 146 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the alpha component of the ambient color
Definition at line 170 of file FrsMaterial.h.
|
inline |
Returns the blue component of the ambient color
Definition at line 164 of file FrsMaterial.h.
|
inline |
Returns the green component of the ambient color
Definition at line 158 of file FrsMaterial.h.
|
inline |
Returns the red component of the ambient color
Definition at line 152 of file FrsMaterial.h.
|
inline |
Returns the diffuse color as a 4 float array
Definition at line 86 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), operator=(), and Freestyle::StrokeShaders::MaterialColorShader::shade().
|
inline |
Returns the alpha component of the diffuse color
Definition at line 110 of file FrsMaterial.h.
|
inline |
Returns the blue component of the diffuse color
Definition at line 104 of file FrsMaterial.h.
|
inline |
Returns the green component of the diffuse color
Definition at line 98 of file FrsMaterial.h.
|
inline |
Returns the red component of the diffuse color
Definition at line 92 of file FrsMaterial.h.
|
inline |
Returns the emissive color as a 4 float array
Definition at line 176 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the alpha component of the emissive color
Definition at line 200 of file FrsMaterial.h.
|
inline |
Returns the blue component of the emissive color
Definition at line 194 of file FrsMaterial.h.
|
inline |
Returns the green component of the emissive color
Definition at line 188 of file FrsMaterial.h.
|
inline |
Returns the red component of the emissive color
Definition at line 182 of file FrsMaterial.h.
|
inline |
Returns the line color as a 4 float array
Definition at line 56 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the alpha component of the line color
Definition at line 80 of file FrsMaterial.h.
|
inline |
Returns the blue component of the line color
Definition at line 74 of file FrsMaterial.h.
|
inline |
Returns the green component of the line color
Definition at line 68 of file FrsMaterial.h.
|
inline |
Returns the red component of the line color
Definition at line 62 of file FrsMaterial.h.
|
inline |
Definition at line 427 of file FrsMaterial.h.
References ambient(), diffuse(), emission(), FrsMaterial(), i, line(), priority(), shininess(), and specular().
|
inline |
Definition at line 412 of file FrsMaterial.h.
References ambient(), diffuse(), emission(), FrsMaterial(), i, line(), priority(), shininess(), and specular().
|
inline |
Definition at line 457 of file FrsMaterial.h.
References FrsMaterial().
|
inline |
Returns the line color priority
Definition at line 212 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), operator=(), and setPriority().
Sets the ambient color.
Definition at line 386 of file FrsMaterial.h.
References Freestyle::a, and b.
Sets the diffuse color.
Definition at line 370 of file FrsMaterial.h.
References Freestyle::a, and b.
Referenced by Freestyle::Controller::BuildRep(), and Freestyle::BlenderFileLoader::insertShapeNode().
Sets the emissive color.
Definition at line 394 of file FrsMaterial.h.
References Freestyle::a, and b.
Sets the line color.
Definition at line 362 of file FrsMaterial.h.
References Freestyle::a, and b.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
|
inline |
Sets the line color priority.
| priority | Priority |
Definition at line 407 of file FrsMaterial.h.
References priority().
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
|
inline |
Sets the shininess.
| s | Shininess |
Definition at line 402 of file FrsMaterial.h.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
Sets the specular color.
Definition at line 378 of file FrsMaterial.h.
References Freestyle::a, and b.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
|
inline |
Returns the shininess coefficient
Definition at line 206 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the specular color as a 4 float array
Definition at line 116 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the alpha component of the specular color
Definition at line 140 of file FrsMaterial.h.
|
inline |
Returns the blue component of the specular color
Definition at line 134 of file FrsMaterial.h.
|
inline |
Returns the green component of the specular color
Definition at line 128 of file FrsMaterial.h.
|
inline |
Returns the red component of the specular color
Definition at line 122 of file FrsMaterial.h.