Effect describing the colors to be used when drawing each side of the associated triangle based part data. More...
Public Member Functions | |
EffectFrontAndBackColor () | |
Constructs an empty effect. More... | |
EffectFrontAndBackColor (const Color3f &frontColor, const Color3f &backColor) | |
Constructs an effect. More... | |
virtual Type | type () const |
Returns Effect::FRONT_AND_BACK_COLOR. More... | |
virtual PtrRef< Effect > | clone () |
Clone the effect. More... | |
const Color3f & | frontColor () const |
Returns the front color of the part. More... | |
const Color3f & | backColor () const |
Returns the back color of the part. More... | |
void | setColor (const Color3f &frontColor, const Color3f &backColor) |
Specifies the front and back colors of the part. More... | |
float | ambientIntensity () const |
Returns the ambient intensity of the front and back colors. More... | |
void | setAmbientIntensity (float intensity) |
Specifies the ambient intensity of the front and back colors. More... | |
float | specularIntensity () const |
Returns the specular intensity of the front and back colors. More... | |
void | setSpecularIntensity (float intensity) |
Specifies the specular intensity of the front and back colors. 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 colors to be used when drawing each side of the associated triangle based part data.
May be overridden by the following effects if found further up the stack:
Supported by the following part data:
cee::geo::EffectFrontAndBackColor::EffectFrontAndBackColor | ( | ) |
Constructs an empty effect.
cee::geo::EffectFrontAndBackColor::EffectFrontAndBackColor | ( | const Color3f & | frontColor, |
const Color3f & | backColor | ||
) |
Constructs an effect.
float cee::geo::EffectFrontAndBackColor::ambientIntensity | ( | ) | const |
Returns the ambient intensity of the front and back colors.
1.0f is max intensity 0.0f is min intensity
const Color3f & cee::geo::EffectFrontAndBackColor::backColor | ( | ) | const |
Returns the back color of the part.
Clone the effect.
Implements cee::geo::Effect.
const Color3f & cee::geo::EffectFrontAndBackColor::frontColor | ( | ) | const |
Returns the front color of the part.
void cee::geo::EffectFrontAndBackColor::setAmbientIntensity | ( | float | intensity | ) |
Specifies the ambient intensity of the front and back colors.
1.0f is max intensity 0.0f is min intensity
void cee::geo::EffectFrontAndBackColor::setColor | ( | const Color3f & | frontColor, |
const Color3f & | backColor | ||
) |
Specifies the front and back colors of the part.
void cee::geo::EffectFrontAndBackColor::setSpecularIntensity | ( | float | intensity | ) |
Specifies the specular intensity of the front and back colors.
1.0f is max intensity 0.0f is min intensity
float cee::geo::EffectFrontAndBackColor::specularIntensity | ( | ) | const |
Returns the specular intensity of the front and back colors.
1.0f is max intensity 0.0f is min intensity
|
virtual |
Returns Effect::FRONT_AND_BACK_COLOR.
Implements cee::geo::Effect.