cee::geo::EffectFrontAndBackColor Class Reference

Effect describing the colors to be used when drawing each side of the associated triangle based part data. More...

Public Member Functions

 EffectFrontAndBackColor ()
 Constructs an empty effect. More...
 
 EffectFrontAndBackColor (const Color3f &frontColor, const Color3f &backColor)
 Constructs an effect. More...
 
virtual Type type () const
 Returns Effect::FRONT_AND_BACK_COLOR. More...
 
virtual PtrRef< Effectclone ()
 Clone the effect. More...
 
const Color3ffrontColor () const
 Returns the front color of the part. More...
 
const Color3fbackColor () const
 Returns the back color of the part. More...
 
void setColor (const Color3f &frontColor, const Color3f &backColor)
 Specifies the front and back colors of the part. More...
 
float ambientIntensity () const
 Returns the ambient intensity of the front and back colors. More...
 
void setAmbientIntensity (float intensity)
 Specifies the ambient intensity of the front and back colors. More...
 
float specularIntensity () const
 Returns the specular intensity of the front and back colors. More...
 
void setSpecularIntensity (float intensity)
 Specifies the specular intensity of the front and back colors. 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::EffectFrontAndBackColor:
cee::geo::Effect cee::RefCountedObject

Detailed Description

Effect describing the colors to be used when drawing each side of the associated triangle based 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::EffectFrontAndBackColor::EffectFrontAndBackColor ( )

Constructs an empty effect.

cee::geo::EffectFrontAndBackColor::EffectFrontAndBackColor ( const Color3f frontColor,
const Color3f backColor 
)

Constructs an effect.

Member Function Documentation

float cee::geo::EffectFrontAndBackColor::ambientIntensity ( ) const

Returns the ambient intensity of the front and back colors.

1.0f is max intensity 0.0f is min intensity

Note
Ignored for OpenGL Fixed Function pipeline
See also
setAmbientIntensity
const Color3f & cee::geo::EffectFrontAndBackColor::backColor ( ) const

Returns the back color of the part.

PtrRef< Effect > cee::geo::EffectFrontAndBackColor::clone ( )
virtual

Clone the effect.

Implements cee::geo::Effect.

const Color3f & cee::geo::EffectFrontAndBackColor::frontColor ( ) const

Returns the front color of the part.

void cee::geo::EffectFrontAndBackColor::setAmbientIntensity ( float  intensity)

Specifies the ambient intensity of the front and back colors.

1.0f is max intensity 0.0f is min intensity

Note
Ignored for OpenGL Fixed Function pipeline
See also
ambientIntensity
void cee::geo::EffectFrontAndBackColor::setColor ( const Color3f frontColor,
const Color3f backColor 
)

Specifies the front and back colors of the part.

void cee::geo::EffectFrontAndBackColor::setSpecularIntensity ( float  intensity)

Specifies the specular intensity of the front and back colors.

1.0f is max intensity 0.0f is min intensity

Note
Ignored for OpenGL Fixed Function pipeline
See also
specularIntensity
float cee::geo::EffectFrontAndBackColor::specularIntensity ( ) const

Returns the specular intensity of the front and back colors.

1.0f is max intensity 0.0f is min intensity

Note
Ignored for OpenGL Fixed Function pipeline
See also
setSpecularIntensity
Effect::Type cee::geo::EffectFrontAndBackColor::type ( ) const
virtual