cee::geo::EffectColor Class Reference

Effect describing the color to be used when drawing the associated part data. More...

Public Member Functions

 EffectColor ()
 Constructs an empty effect. More...
 
 EffectColor (const Color3f &color)
 Constructs an effect. More...
 
virtual Type type () const
 Returns Effect::COLOR. More...
 
virtual PtrRef< Effectclone ()
 Clones the effect. More...
 
const Color3fcolor () const
 Returns the color of the part. More...
 
void setColor (const Color3f &color)
 Specifies the color of the part. More...
 
float ambientIntensity () const
 Returns the ambient intensity of the color. More...
 
void setAmbientIntensity (float intensity)
 Specifies the ambient intensity of the color. More...
 
float specularIntensity () const
 Returns the specular intensity of the color. More...
 
void setSpecularIntensity (float intensity)
 Specifies the specular intensity of the color. More...
 
- Public Member Functions inherited from cee::RefCountedObject
void addRef () const
 Increments the reference count for this object. More...
 
void release () const
 Decrements the reference count for this object. More...
 
int refCount () const
 Returns the reference count for this object. More...
 
void setRefCountZero () const
 Sets the ref count to zero, but DOES NOT delete the object. More...
 

Additional Inherited Members

- Public Types inherited from cee::geo::Effect
enum  Type {
  COLOR, OPACITY, FRONT_AND_BACK_COLOR, FRONT_AND_BACK_OPACITY,
  TEXTURE, EYE_LIFT, POLYGON_OFFSET, HALO,
  LIGHTING, LINE_WIDTH, POINT_SIZE
}
 Enumerator for each of the available effect types. More...
 
- Protected Member Functions inherited from cee::geo::Effect
 Effect ()
 Constructs an empty part effect of a given type. More...
 
Inheritance diagram for cee::geo::EffectColor:
cee::geo::Effect cee::RefCountedObject

Detailed Description

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
PartSettings

Constructor & Destructor Documentation

cee::geo::EffectColor::EffectColor ( )

Constructs an empty effect.

cee::geo::EffectColor::EffectColor ( const Color3f color)

Constructs an effect.

Member Function Documentation

float cee::geo::EffectColor::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
PtrRef< Effect > cee::geo::EffectColor::clone ( )
virtual

Clones the effect.

Implements cee::geo::Effect.

const Color3f & cee::geo::EffectColor::color ( ) const

Returns the color of the part.

void cee::geo::EffectColor::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
void cee::geo::EffectColor::setColor ( const Color3f color)

Specifies the color of the part.

void cee::geo::EffectColor::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
float cee::geo::EffectColor::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
Effect::Type cee::geo::EffectColor::type ( ) const
virtual

Returns Effect::COLOR.

Implements cee::geo::Effect.