# cee::geo::Effect

class `Effect` : public RefCountedObject

  Base class for an effect describing how to draw a part and its associated part data.

  See also

  Part, PartSettings, EffectColor, EffectEyeLift, EffectFrontAndBackColor, EffectFrontAndBackOpacity, EffectHalo, EffectLighting, EffectLineWidth, EffectOpacity, EffectPointSize, EffectPolygonOffset, and EffectTexture

  Subclassed by EffectColor, EffectEyeLift, EffectFrontAndBackColor, EffectFrontAndBackOpacity, EffectHalo, EffectLighting, EffectLineWidth, EffectOpacity, EffectPointSize, EffectPolygonOffset, EffectTexture

  Public Types

  enum `Type`

    Enumerator for each of the available effect types.

    Values:

    enumerator `COLOR`

      Effect describing the color to be used when drawing

    enumerator `OPACITY`

      Effect describing the opacity to be used when drawing

    enumerator `FRONT_AND_BACK_COLOR`

      Effect describing the colors to be used when drawing each side of a polygon

    enumerator `FRONT_AND_BACK_OPACITY`

      Effect describing the opacity to be used when drawing each side of a polygon

    enumerator `TEXTURE`

      Effect describing the texture to be used when drawing

    enumerator `EYE_LIFT`

      Effect that moves the vertices towards the eye point when drawing

    enumerator `POLYGON_OFFSET`

      Effect that moves the vertices into the screen when drawing

    enumerator `HALO`

      Effect describing how to draw a part with silhouetted edges

    enumerator `LIGHTING`

      Effect describing if the part should be lighted or not

    enumerator `LINE_WIDTH`

      Effect describing the width of the line, in pixels

    enumerator `POINT_SIZE`

      Effect describing the size of the points, in pixels

  Public Functions

  virtual Type `type`() const = 0

    Returns the primitive type of the associated data.

  virtual PtrRef<Effect> `clone`() = 0

    Clones the effect.

  Protected Functions

  `Effect`()

    Constructs an empty part effect of a given type.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Desktop 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...