cee::geo::Effect

class Effect : public RefCountedObject

Base class for an effect describing how to draw a part and it’s associated part data.

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.