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< Effect > | clone () |
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... | |
![]() | |
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 | |
![]() | |
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... | |
![]() | |
Effect () | |
Constructs an empty part effect of a given type. More... | |
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:
cee::geo::EffectOpacity::EffectOpacity | ( | ) |
Constructs an empty effect.
cee::geo::EffectOpacity::EffectOpacity | ( | float | opacity | ) |
Constructs an effect.
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
|
virtual |
Returns Effect::OPACITY.
Implements cee::geo::Effect.