Effect describing the opacity to be used when drawing each side of the associated triangle based part data. More...
Public Member Functions | |
EffectFrontAndBackOpacity () | |
Constructs an empty effect. More... | |
EffectFrontAndBackOpacity (float frontOpacity, float backOpacity) | |
Constructs an effect. More... | |
virtual Type | type () const |
Returns Effect::FRONT_AND_BACK_OPACITY. More... | |
virtual PtrRef< Effect > | clone () |
Clones the effect. More... | |
float | frontOpacity () const |
Returns how transparent the front face of the part is. More... | |
float | backOpacity () const |
Returns how transparent the back face of the part is. More... | |
void | setOpacity (float frontOpacity, float backOpacity) |
Specifies how transparent the front and back faces of the part are. 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 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:
cee::geo::EffectFrontAndBackOpacity::EffectFrontAndBackOpacity | ( | ) |
Constructs an empty effect.
cee::geo::EffectFrontAndBackOpacity::EffectFrontAndBackOpacity | ( | float | frontOpacity, |
float | backOpacity | ||
) |
Constructs an effect.
float cee::geo::EffectFrontAndBackOpacity::backOpacity | ( | ) | const |
Returns how transparent the back face of the part is.
1.0f is opaque 0.0f is max transparency
Clones the effect.
Implements cee::geo::Effect.
float cee::geo::EffectFrontAndBackOpacity::frontOpacity | ( | ) | const |
Returns how transparent the front face of the part is.
1.0f is opaque 0.0f is max transparency
void cee::geo::EffectFrontAndBackOpacity::setOpacity | ( | float | frontOpacity, |
float | backOpacity | ||
) |
Specifies how transparent the front and back faces of the part are.
1.0f is opaque 0.0f is max transparency
|
virtual |
Returns Effect::FRONT_AND_BACK_OPACITY.
Implements cee::geo::Effect.