cee::geo::EffectFrontAndBackOpacity Class Reference

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< Effectclone ()
 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...
 
- 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::EffectFrontAndBackOpacity:
cee::geo::Effect cee::RefCountedObject

Detailed Description

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:

See also
Part
Effect
PartSettings

Constructor & Destructor Documentation

cee::geo::EffectFrontAndBackOpacity::EffectFrontAndBackOpacity ( )

Constructs an empty effect.

cee::geo::EffectFrontAndBackOpacity::EffectFrontAndBackOpacity ( float  frontOpacity,
float  backOpacity 
)

Constructs an effect.

Member Function Documentation

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

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

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

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