cee::geo::EffectOpacity Class Reference

Effect describing the opacity to be used when drawing the associated triangle based part data. More...

Public Member Functions

 EffectOpacity ()
 Constructs an empty effect. More...
 
 EffectOpacity (float opacity)
 Constructs an effect. More...
 
virtual Type type () const
 Returns Effect::OPACITY. More...
 
virtual PtrRef< Effectclone ()
 Clones the effect. More...
 
float opacity () const
 Returns how transparent the part is. More...
 
void setOpacity (float opacity)
 Specifies how transparent the part is. 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::EffectOpacity:
cee::geo::Effect cee::RefCountedObject

Detailed Description

Effect describing the opacity to be used when drawing 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::EffectOpacity::EffectOpacity ( )

Constructs an empty effect.

cee::geo::EffectOpacity::EffectOpacity ( float  opacity)

Constructs an effect.

Member Function Documentation

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

Clones the effect.

Implements cee::geo::Effect.

float cee::geo::EffectOpacity::opacity ( ) const

Returns how transparent the part is.

1.0f is opaque 0.0f is max transparency

void cee::geo::EffectOpacity::setOpacity ( float  opacity)

Specifies how transparent the part is.

1.0f is opaque 0.0f is max transparency

Effect::Type cee::geo::EffectOpacity::type ( ) const
virtual

Returns Effect::OPACITY.

Implements cee::geo::Effect.