|
Blender
V2.93
|
#include <FrsMaterial.h>
Public Member Functions | |
| FrsMaterial () | |
| FrsMaterial (const float *iLine, const float *iDiffuse, const float *iAmbiant, const float *iSpecular, const float *iEmission, const float iShininess, const int iPriority) | |
| FrsMaterial (const FrsMaterial &m) | |
| virtual | ~FrsMaterial () |
| const float * | line () const |
| const float | lineR () const |
| const float | lineG () const |
| const float | lineB () const |
| const float | lineA () const |
| const float * | diffuse () const |
| const float | diffuseR () const |
| const float | diffuseG () const |
| const float | diffuseB () const |
| const float | diffuseA () const |
| const float * | specular () const |
| const float | specularR () const |
| const float | specularG () const |
| const float | specularB () const |
| const float | specularA () const |
| const float * | ambient () const |
| const float | ambientR () const |
| const float | ambientG () const |
| const float | ambientB () const |
| const float | ambientA () const |
| const float * | emission () const |
| const float | emissionR () const |
| const float | emissionG () const |
| const float | emissionB () const |
| const float | emissionA () const |
| const float | shininess () const |
| const int | priority () const |
| void | setLine (const float r, const float g, const float b, const float a) |
| void | setDiffuse (const float r, const float g, const float b, const float a) |
| void | setSpecular (const float r, const float g, const float b, const float a) |
| void | setAmbient (const float r, const float g, const float b, const float a) |
| void | setEmission (const float r, const float g, const float b, const float a) |
| void | setShininess (const float s) |
| void | setPriority (const 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 33 of file FrsMaterial.h.
|
inline |
Default constructor
Definition at line 325 of file FrsMaterial.h.
|
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 346 of file FrsMaterial.h.
|
inline |
Copy constructor
Definition at line 366 of file FrsMaterial.h.
References ambient(), diffuse(), emission(), line(), priority(), shininess(), and specular().
|
inlinevirtual |
Destructor
Definition at line 67 of file FrsMaterial.h.
|
inline |
Returns the ambient color as a 4 float array
Definition at line 162 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), operator=(), and Freestyle::ViewMapIO::Internal::save().
|
inline |
Returns the alpha component of the ambient color
Definition at line 186 of file FrsMaterial.h.
|
inline |
Returns the blue component of the ambient color
Definition at line 180 of file FrsMaterial.h.
|
inline |
Returns the green component of the ambient color
Definition at line 174 of file FrsMaterial.h.
|
inline |
Returns the red component of the ambient color
Definition at line 168 of file FrsMaterial.h.
|
inline |
Returns the diffuse color as a 4 float array
Definition at line 102 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), operator=(), Freestyle::ViewMapIO::Internal::save(), and Freestyle::StrokeShaders::MaterialColorShader::shade().
|
inline |
Returns the alpha component of the diffuse color
Definition at line 126 of file FrsMaterial.h.
|
inline |
Returns the blue component of the diffuse color
Definition at line 120 of file FrsMaterial.h.
|
inline |
Returns the green component of the diffuse color
Definition at line 114 of file FrsMaterial.h.
|
inline |
Returns the red component of the diffuse color
Definition at line 108 of file FrsMaterial.h.
|
inline |
Returns the emissive color as a 4 float array
Definition at line 192 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), operator=(), and Freestyle::ViewMapIO::Internal::save().
|
inline |
Returns the alpha component of the emissive color
Definition at line 216 of file FrsMaterial.h.
|
inline |
Returns the blue component of the emissive color
Definition at line 210 of file FrsMaterial.h.
|
inline |
Returns the green component of the emissive color
Definition at line 204 of file FrsMaterial.h.
|
inline |
Returns the red component of the emissive color
Definition at line 198 of file FrsMaterial.h.
|
inline |
Returns the line color as a 4 float array
Definition at line 72 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the alpha component of the line color
Definition at line 96 of file FrsMaterial.h.
|
inline |
Returns the blue component of the line color
Definition at line 90 of file FrsMaterial.h.
|
inline |
Returns the green component of the line color
Definition at line 84 of file FrsMaterial.h.
|
inline |
Returns the red component of the line color
Definition at line 78 of file FrsMaterial.h.
|
inline |
Definition at line 445 of file FrsMaterial.h.
References ambient(), diffuse(), emission(), line(), priority(), shininess(), and specular().
|
inline |
Definition at line 430 of file FrsMaterial.h.
References ambient(), diffuse(), emission(), line(), priority(), shininess(), and specular().
|
inline |
Definition at line 475 of file FrsMaterial.h.
|
inline |
Returns the line color priority
Definition at line 228 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), operator=(), and setPriority().
|
inline |
Sets the ambient color.
| r | Red component |
| g | Green component |
| b | Blue component |
| a | Alpha component |
Definition at line 404 of file FrsMaterial.h.
References Freestyle::a, and r.
Referenced by Freestyle::ViewMapIO::Internal::load().
|
inline |
Sets the diffuse color.
| r | Red component |
| g | Green component |
| b | Blue component |
| a | Alpha component |
Definition at line 388 of file FrsMaterial.h.
References Freestyle::a, and r.
Referenced by Freestyle::Controller::BuildRep(), Freestyle::BlenderFileLoader::insertShapeNode(), Freestyle::ViewMapIO::Internal::load(), Freestyle::StrokeTesselator::StrokeTesselator(), and Freestyle::ViewMapTesselator::ViewMapTesselator().
|
inline |
Sets the emissive color.
| r | Red component |
| g | Green component |
| b | Blue component |
| a | Alpha component |
Definition at line 412 of file FrsMaterial.h.
References Freestyle::a, and r.
Referenced by Freestyle::ViewMapIO::Internal::load().
|
inline |
Sets the line color.
| r | Red component |
| g | Green component |
| b | Blue component |
| a | Alpha component |
Definition at line 380 of file FrsMaterial.h.
References Freestyle::a, and r.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
|
inline |
Sets the line color priority.
| priority | Priority |
Definition at line 425 of file FrsMaterial.h.
References priority().
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
|
inline |
Sets the shininess.
| s | Shininess |
Definition at line 420 of file FrsMaterial.h.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode(), and Freestyle::ViewMapIO::Internal::load().
|
inline |
Sets the specular color.
| r | Red component |
| g | Green component |
| b | Blue component |
| a | Alpha component |
Definition at line 396 of file FrsMaterial.h.
References Freestyle::a, and r.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode(), and Freestyle::ViewMapIO::Internal::load().
|
inline |
Returns the shininess coefficient
Definition at line 222 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), operator=(), and Freestyle::ViewMapIO::Internal::save().
|
inline |
Returns the specular color as a 4 float array
Definition at line 132 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), operator=(), and Freestyle::ViewMapIO::Internal::save().
|
inline |
Returns the alpha component of the specular color
Definition at line 156 of file FrsMaterial.h.
|
inline |
Returns the blue component of the specular color
Definition at line 150 of file FrsMaterial.h.
|
inline |
Returns the green component of the specular color
Definition at line 144 of file FrsMaterial.h.
|
inline |
Returns the red component of the specular color
Definition at line 138 of file FrsMaterial.h.