Blender
V3.3
|
#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 |
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 (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 311 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 332 of file FrsMaterial.h.
|
inline |
Copy constructor
Definition at line 352 of file FrsMaterial.h.
References ambient(), diffuse(), emission(), 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 148 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the alpha component of the ambient color
Definition at line 172 of file FrsMaterial.h.
|
inline |
Returns the blue component of the ambient color
Definition at line 166 of file FrsMaterial.h.
|
inline |
Returns the green component of the ambient color
Definition at line 160 of file FrsMaterial.h.
|
inline |
Returns the red component of the ambient color
Definition at line 154 of file FrsMaterial.h.
|
inline |
Returns the diffuse color as a 4 float array
Definition at line 88 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 112 of file FrsMaterial.h.
|
inline |
Returns the blue component of the diffuse color
Definition at line 106 of file FrsMaterial.h.
|
inline |
Returns the green component of the diffuse color
Definition at line 100 of file FrsMaterial.h.
|
inline |
Returns the red component of the diffuse color
Definition at line 94 of file FrsMaterial.h.
|
inline |
Returns the emissive color as a 4 float array
Definition at line 178 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the alpha component of the emissive color
Definition at line 202 of file FrsMaterial.h.
|
inline |
Returns the blue component of the emissive color
Definition at line 196 of file FrsMaterial.h.
|
inline |
Returns the green component of the emissive color
Definition at line 190 of file FrsMaterial.h.
|
inline |
Returns the red component of the emissive color
Definition at line 184 of file FrsMaterial.h.
|
inline |
Returns the line color as a 4 float array
Definition at line 58 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the alpha component of the line color
Definition at line 82 of file FrsMaterial.h.
|
inline |
Returns the blue component of the line color
Definition at line 76 of file FrsMaterial.h.
|
inline |
Returns the green component of the line color
Definition at line 70 of file FrsMaterial.h.
|
inline |
Returns the red component of the line color
Definition at line 64 of file FrsMaterial.h.
|
inline |
Definition at line 431 of file FrsMaterial.h.
References ambient(), diffuse(), emission(), line(), priority(), shininess(), and specular().
|
inline |
Definition at line 416 of file FrsMaterial.h.
References ambient(), diffuse(), emission(), line(), priority(), shininess(), and specular().
|
inline |
Definition at line 461 of file FrsMaterial.h.
|
inline |
Returns the line color priority
Definition at line 214 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), operator=(), and setPriority().
Sets the ambient color.
r | Red component |
g | Green component |
b | Blue component |
a | Alpha component |
Definition at line 390 of file FrsMaterial.h.
References Freestyle::a, usdtokens::b(), usdtokens::g(), and r.
Sets the diffuse color.
r | Red component |
g | Green component |
b | Blue component |
a | Alpha component |
Definition at line 374 of file FrsMaterial.h.
References Freestyle::a, usdtokens::b(), usdtokens::g(), and r.
Referenced by Freestyle::Controller::BuildRep(), Freestyle::BlenderFileLoader::insertShapeNode(), Freestyle::StrokeTesselator::StrokeTesselator(), and Freestyle::ViewMapTesselator::ViewMapTesselator().
Sets the emissive color.
r | Red component |
g | Green component |
b | Blue component |
a | Alpha component |
Definition at line 398 of file FrsMaterial.h.
References Freestyle::a, usdtokens::b(), usdtokens::g(), and r.
Sets the line color.
r | Red component |
g | Green component |
b | Blue component |
a | Alpha component |
Definition at line 366 of file FrsMaterial.h.
References Freestyle::a, usdtokens::b(), usdtokens::g(), and r.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
|
inline |
Sets the line color priority.
priority | Priority |
Definition at line 411 of file FrsMaterial.h.
References priority().
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
Sets the shininess.
s | Shininess |
Definition at line 406 of file FrsMaterial.h.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
Sets the specular color.
r | Red component |
g | Green component |
b | Blue component |
a | Alpha component |
Definition at line 382 of file FrsMaterial.h.
References Freestyle::a, usdtokens::b(), usdtokens::g(), and r.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
|
inline |
Returns the shininess coefficient
Definition at line 208 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the specular color as a 4 float array
Definition at line 118 of file FrsMaterial.h.
Referenced by FrsMaterial(), operator!=(), and operator=().
|
inline |
Returns the alpha component of the specular color
Definition at line 142 of file FrsMaterial.h.
|
inline |
Returns the blue component of the specular color
Definition at line 136 of file FrsMaterial.h.
|
inline |
Returns the green component of the specular color
Definition at line 130 of file FrsMaterial.h.
|
inline |
Returns the red component of the specular color
Definition at line 124 of file FrsMaterial.h.