Effect describing the color to be used when drawing the associated part data. More...
Public Member Functions | |
EffectColor () | |
Constructs an empty effect. More... | |
EffectColor (const Color3f &color) | |
Constructs an effect. More... | |
virtual Type | type () const |
Returns Effect::COLOR. More... | |
virtual PtrRef< Effect > | clone () |
Clones the effect. More... | |
const Color3f & | color () const |
Returns the color of the part. More... | |
void | setColor (const Color3f &color) |
Specifies the color of the part. More... | |
float | ambientIntensity () const |
Returns the ambient intensity of the color. More... | |
void | setAmbientIntensity (float intensity) |
Specifies the ambient intensity of the color. More... | |
float | specularIntensity () const |
Returns the specular intensity of the color. More... | |
void | setSpecularIntensity (float intensity) |
Specifies the specular intensity of the color. More... | |
![]() | |
void | addRef () const |
Increments the reference count for this object. More... | |
void | release () const |
Decrements the reference count for this object. More... | |
int | refCount () const |
Returns the reference count for this object. More... | |
void | setRefCountZero () const |
Sets the ref count to zero, but DOES NOT delete the object. More... | |
Additional Inherited Members | |
![]() | |
enum | Type { COLOR, OPACITY, FRONT_AND_BACK_COLOR, FRONT_AND_BACK_OPACITY, TEXTURE, EYE_LIFT, POLYGON_OFFSET, HALO, LIGHTING, LINE_WIDTH, POINT_SIZE } |
Enumerator for each of the available effect types. More... | |
![]() | |
Effect () | |
Constructs an empty part effect of a given type. More... | |
Effect describing the color to be used when drawing the associated part data.
May be overridden by the following effects if found further up the stack:
Supported by the following part data:
cee::geo::EffectColor::EffectColor | ( | ) |
Constructs an empty effect.
cee::geo::EffectColor::EffectColor | ( | const Color3f & | color | ) |
Constructs an effect.
float cee::geo::EffectColor::ambientIntensity | ( | ) | const |
Returns the ambient intensity of the color.
1.0f is max intensity 0.0f is min intensity
Clones the effect.
Implements cee::geo::Effect.
const Color3f & cee::geo::EffectColor::color | ( | ) | const |
Returns the color of the part.
void cee::geo::EffectColor::setAmbientIntensity | ( | float | intensity | ) |
Specifies the ambient intensity of the color.
1.0f is max intensity 0.0f is min intensity
void cee::geo::EffectColor::setColor | ( | const Color3f & | color | ) |
Specifies the color of the part.
void cee::geo::EffectColor::setSpecularIntensity | ( | float | intensity | ) |
Specifies the specular intensity of the color.
1.0f is max intensity 0.0f is min intensity
float cee::geo::EffectColor::specularIntensity | ( | ) | const |
Returns the specular intensity of the color.
1.0f is max intensity 0.0f is min intensity
|
virtual |
Returns Effect::COLOR.
Implements cee::geo::Effect.