cee::geo::EffectColor

class EffectColor : public Effect

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:

See also

Part, Effect, and PartSettings

Public Functions

EffectColor()

Constructs an empty effect.

EffectColor(const Color3f &color)

Constructs an effect.

virtual Type type() const

Returns Effect::COLOR.

virtual PtrRef<Effect> clone()

Clones the effect.

const Color3f &color() const

Returns the color of the part.

void setColor(const Color3f &color)

Specifies the color of the part.

float ambientIntensity() const

Returns the ambient intensity of the color.

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 color.

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 color.

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 color.

1.0f is max intensity 0.0f is min intensity

Note! Ignored for OpenGL Fixed Function pipeline