cee::geo::EffectLighting Class Reference

Effect describing if the associated triangle based part data should be lighted or not. More...

Public Member Functions

 EffectLighting ()
 Constructs an empty effect. More...
 
 EffectLighting (bool enableLight)
 Constructs an effect. More...
 
virtual Type type () const
 Returns Effect::LIGHTING. More...
 
virtual PtrRef< Effectclone ()
 Clones the effect. More...
 
bool lighting () const
 Returns true if the lighting is enabled. More...
 
void setLighting (bool enable)
 Turns the light on/off. 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::EffectLighting:
cee::geo::Effect cee::RefCountedObject

Detailed Description

Effect describing if the associated triangle based part data should be lighted or not.

May be overridden by the following effects if found further up the stack:

  • Any other EffectLighting

Supported by the following part data:

See also
Part
Effect
PartSettings

Constructor & Destructor Documentation

cee::geo::EffectLighting::EffectLighting ( )

Constructs an empty effect.

cee::geo::EffectLighting::EffectLighting ( bool  enableLight)

Constructs an effect.

Member Function Documentation

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

Clones the effect.

Implements cee::geo::Effect.

bool cee::geo::EffectLighting::lighting ( ) const

Returns true if the lighting is enabled.

void cee::geo::EffectLighting::setLighting ( bool  enable)

Turns the light on/off.

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

Returns Effect::LIGHTING.

Implements cee::geo::Effect.