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< Effect > | clone () |
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... | |
![]() | |
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 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:
Supported by the following part data:
cee::geo::EffectLighting::EffectLighting | ( | ) |
Constructs an empty effect.
cee::geo::EffectLighting::EffectLighting | ( | bool | enableLight | ) |
Constructs an effect.
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.
|
virtual |
Returns Effect::LIGHTING.
Implements cee::geo::Effect.