cee::geo::EffectFrontAndBackColor

class EffectFrontAndBackColor : public Effect

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:

See also

Part, Effect, and PartSettings

Public Functions

EffectFrontAndBackColor()

Constructs an empty effect.

EffectFrontAndBackColor(const Color3f &frontColor, const Color3f &backColor)

Constructs an effect.

virtual Type type() const

Returns Effect::FRONT_AND_BACK_COLOR.

virtual PtrRef<Effect> clone()

Clone the effect.

const Color3f &frontColor() const

Returns the front color of the part.

const Color3f &backColor() const

Returns the back color of the part.

void setColor(const Color3f &frontColor, const Color3f &backColor)

Specifies the front and back colors of the part.

float ambientIntensity() const

Returns the ambient intensity of the front and back colors.

1.0f is max intensity 0.0f is min intensity

Note! Ignored for OpenGL Fixed Function pipeline

void setAmbientIntensity(float intensity)

Specifies the ambient intensity of the front and back colors.

1.0f is max intensity 0.0f is min intensity

Note! Ignored for OpenGL Fixed Function pipeline

See also

ambientIntensity

float specularIntensity() const

Returns the specular intensity of the front and back colors.

1.0f is max intensity 0.0f is min intensity

Note! Ignored for OpenGL Fixed Function pipeline

void setSpecularIntensity(float intensity)

Specifies the specular intensity of the front and back colors.

1.0f is max intensity 0.0f is min intensity

Note! Ignored for OpenGL Fixed Function pipeline