# 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:

  - EffectFrontAndBackColor (Triangle based Data only)
  - EffectTexture
  - Any other EffectColor

  Supported by the following part data:

  - DataIndexedPolylines
  - DataIndexedTriangles
  - DataTriangleFan
  - DataTriangleStrip
  - DataPoints

  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

    See also

    setAmbientIntensity

  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

    See also

    setSpecularIntensity

  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

    See also

    specularIntensity

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...