This reference page is linked to from the following overview topics: Object Plug-ins, Plug-in Base Classes, Principal Light Classes, Light Parameters.
#include <genlight.h>
Public Member Functions |
|
virtual GenLight * | NewLight (int type)=0 |
virtual RefResult | EvalLightState (TimeValue t, Interval &valid, LightState *cs)=0 |
This method is called to update the passed
LightState
and validity interval of the light. |
|
virtual int | Type ()=0 |
virtual void | SetType (int tp) |
virtual BOOL | IsSpot ()=0 |
virtual BOOL | IsDir ()=0 |
virtual void | SetUseLight (int onOff)=0 |
virtual BOOL | GetUseLight (void)=0 |
virtual void | SetSpotShape (int s)=0 |
virtual int | GetSpotShape (void)=0 |
virtual void | SetHotspot (TimeValue time, float f)=0 |
virtual float | GetHotspot (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual void | SetFallsize (TimeValue time, float f)=0 |
virtual float | GetFallsize (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual void | SetAtten (TimeValue time, int which, float f)=0 |
virtual float | GetAtten (TimeValue t, int which, Interval &valid=Interval(0, 0))=0 |
virtual void | SetTDist (TimeValue time, float f)=0 |
virtual float | GetTDist (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual ObjLightDesc * | CreateLightDesc (INode *inode, BOOL forceShadowBuf=FALSE)=0 |
virtual ObjLightDesc * | CreateLightDesc (RenderGlobalContext *rgc, INode *inode, BOOL forceShadowBuf=FALSE) |
virtual void | SetRGBColor (TimeValue t, Point3 &rgb)=0 |
virtual Point3 | GetRGBColor (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual void | SetHSVColor (TimeValue t, Point3 &hsv)=0 |
virtual Point3 | GetHSVColor (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual void | SetIntensity (TimeValue time, float f)=0 |
virtual float | GetIntensity (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual void | SetContrast (TimeValue time, float f)=0 |
virtual float | GetContrast (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual void | SetAspect (TimeValue t, float f)=0 |
virtual float | GetAspect (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual void | SetConeDisplay (int s, int notify=TRUE)=0 |
virtual BOOL | GetConeDisplay (void)=0 |
virtual void | SetUseAtten (int s)=0 |
virtual BOOL | GetUseAtten (void)=0 |
virtual void | SetAttenDisplay (int s)=0 |
virtual BOOL | GetAttenDisplay (void)=0 |
virtual void | SetUseAttenNear (int s)=0 |
virtual BOOL | GetUseAttenNear (void)=0 |
virtual void | SetAttenNearDisplay (int s)=0 |
virtual BOOL | GetAttenNearDisplay (void)=0 |
virtual void | Enable (int enab)=0 |
virtual void | SetMapBias (TimeValue t, float f)=0 |
virtual float | GetMapBias (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual void | SetMapRange (TimeValue t, float f)=0 |
virtual float | GetMapRange (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual void | SetMapSize (TimeValue t, int f)=0 |
virtual int | GetMapSize (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual void | SetRayBias (TimeValue t, float f)=0 |
virtual float | GetRayBias (TimeValue t, Interval &valid=Interval(0, 0))=0 |
virtual int | GetUseGlobal ()=0 |
virtual void | SetUseGlobal (int a)=0 |
virtual int | GetShadow ()=0 |
virtual void | SetShadow (int a)=0 |
virtual int | GetShadowType ()=0 |
virtual void | SetShadowType (int a)=0 |
virtual void | SetShadowGenerator (ShadowType *s) |
virtual ShadowType * | GetShadowGenerator () |
virtual int | GetAbsMapBias ()=0 |
Returns the lights Absolute Map Bias
setting. |
|
virtual void | SetAbsMapBias (int a)=0 |
Sets the lights Absolute Map Bias setting.
|
|
virtual void | SetAtmosShadows (TimeValue t, int onOff) |
virtual int | GetAtmosShadows (TimeValue t) |
virtual void | SetAtmosOpacity (TimeValue t, float f) |
virtual float | GetAtmosOpacity (TimeValue t, Interval &valid=FOREVER) |
virtual void | SetAtmosColAmt (TimeValue t, float f) |
virtual float | GetAtmosColAmt (TimeValue t, Interval &valid=FOREVER) |
virtual void | SetUseShadowColorMap (TimeValue t, int onOff) |
virtual int | GetUseShadowColorMap (TimeValue t) |
virtual int | GetOvershoot ()=0 |
virtual void | SetOvershoot (int a)=0 |
virtual ExclList & | GetExclusionList ()=0 |
virtual void | SetExclusionList (ExclList &list)=0 |
virtual BOOL | SetHotSpotControl (Control *c)=0 |
virtual BOOL | SetFalloffControl (Control *c)=0 |
virtual BOOL | SetColorControl (Control *c)=0 |
virtual Control * | GetHotSpotControl ()=0 |
virtual Control * | GetFalloffControl ()=0 |
virtual Control * | GetColorControl ()=0 |
virtual void | SetAffectDiffuse (BOOL onOff) |
virtual BOOL | GetAffectDiffuse () |
virtual void | SetAffectSpecular (BOOL onOff) |
virtual BOOL | GetAffectSpecular () |
virtual void | SetDecayType (BOOL onOff) |
virtual BOOL | GetDecayType () |
virtual void | SetDecayRadius (TimeValue time, float f) |
virtual float | GetDecayRadius (TimeValue t, Interval &valid=Interval(0, 0)) |
virtual void | SetDiffuseSoft (TimeValue time, float f) |
virtual float | GetDiffuseSoft (TimeValue t, Interval &valid=Interval(0, 0)) |
virtual void | SetShadColor (TimeValue t, Point3 &rgb) |
virtual Point3 | GetShadColor (TimeValue t, Interval &valid=Interval(0, 0)) |
virtual BOOL | GetLightAffectsShadow () |
virtual void | SetLightAffectsShadow (BOOL b) |
virtual void | SetShadMult (TimeValue t, float m) |
virtual float | GetShadMult (TimeValue t, Interval &valid=Interval(0, 0)) |
virtual Texmap * | GetProjMap () |
virtual void | SetProjMap (Texmap *pmap) |
virtual Texmap * | GetShadowProjMap () |
virtual void | SetShadowProjMap (Texmap *pmap) |
virtual void | SetAmbientOnly (BOOL onOff) |
virtual BOOL | GetAmbientOnly () |
virtual GenLight* NewLight | ( | int | type | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual RefResult EvalLightState | ( | TimeValue | time, |
Interval & | valid, | ||
LightState * | ls | ||
) | [pure virtual] |
This method is called to update the passed LightState and validity interval of the light.
time | The time to evaluate the light state. |
valid | The validity interval of the light about the specified time. This interval should be updated to reflect the validity interval of the light. |
ls | A pointer to the LightState structure which describes the properties of the light. This function updates the data in the structure to reflect the properties of the light at the specified time. See Structure LightState. |
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual int Type | ( | ) | [pure virtual] |
Implemented in LightscapeLight, MSPluginLight, and MSLightXtnd.
virtual void SetType | ( | int | tp | ) | [inline, virtual] |
Reimplemented in LightscapeLight, MSPluginLight, and MSLightXtnd.
{} // OMNI_LIGHT, TSPOT_LIGHT, DIR_LIGHT, FSPOT_LIGHT, TDIR_LIGHT
virtual BOOL IsSpot | ( | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual BOOL IsDir | ( | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetUseLight | ( | int | onOff | ) | [pure virtual] |
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual BOOL GetUseLight | ( | void | ) | [pure virtual] |
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetSpotShape | ( | int | s | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual int GetSpotShape | ( | void | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetHotspot | ( | TimeValue | time, |
float | f | ||
) | [pure virtual] |
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetFallsize | ( | TimeValue | time, |
float | f | ||
) | [pure virtual] |
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetAtten | ( | TimeValue | time, |
int | which, | ||
float | f | ||
) | [pure virtual] |
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetTDist | ( | TimeValue | time, |
float | f | ||
) | [pure virtual] |
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual ObjLightDesc* CreateLightDesc | ( | INode * | inode, |
BOOL | forceShadowBuf =
FALSE |
||
) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual ObjLightDesc* CreateLightDesc | ( | RenderGlobalContext * | rgc, |
INode * | inode, | ||
BOOL | forceShadowBuf =
FALSE |
||
) | [inline, virtual] |
Reimplemented from LightObject.
{return CreateLightDesc(inode, forceShadowBuf);}
virtual void SetRGBColor | ( | TimeValue | t, |
Point3 & | rgb | ||
) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetHSVColor | ( | TimeValue | t, |
Point3 & | hsv | ||
) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetIntensity | ( | TimeValue | time, |
float | f | ||
) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetContrast | ( | TimeValue | time, |
float | f | ||
) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetAspect | ( | TimeValue | t, |
float | f | ||
) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetConeDisplay | ( | int | s, |
int | notify =
TRUE |
||
) | [pure virtual] |
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual BOOL GetConeDisplay | ( | void | ) | [pure virtual] |
Implements LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetUseAtten | ( | int | s | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual BOOL GetUseAtten | ( | void | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetAttenDisplay | ( | int | s | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual BOOL GetAttenDisplay | ( | void | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetUseAttenNear | ( | int | s | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual BOOL GetUseAttenNear | ( | void | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetAttenNearDisplay | ( | int | s | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual BOOL GetAttenNearDisplay | ( | void | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual void Enable | ( | int | enab | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetMapBias | ( | TimeValue | t, |
float | f | ||
) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetMapRange | ( | TimeValue | t, |
float | f | ||
) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetMapSize | ( | TimeValue | t, |
int | f | ||
) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetRayBias | ( | TimeValue | t, |
float | f | ||
) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual int GetUseGlobal | ( | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetUseGlobal | ( | int | a | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual int GetShadow | ( | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetShadow | ( | int | a | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual int GetShadowType | ( | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetShadowType | ( | int | a | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetShadowGenerator | ( | ShadowType * | s | ) | [inline, virtual] |
Reimplemented in LightscapeLight, MSPluginLight, and MSLightXtnd.
{};
virtual ShadowType* GetShadowGenerator | ( | ) | [inline, virtual] |
Reimplemented in LightscapeLight, MSPluginLight, and MSLightXtnd.
{ return NULL; }
virtual int GetAbsMapBias | ( | ) | [pure virtual] |
Returns the lights Absolute Map Bias setting.
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetAbsMapBias | ( | int | a | ) | [pure virtual] |
Sets the lights Absolute Map Bias setting.
a | Nonzero indicates Absolute Map Bias is on; zero indicates it is off. |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetAtmosShadows | ( | TimeValue | t, |
int | onOff | ||
) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
virtual int GetAtmosShadows | ( | TimeValue | t | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return 0; }
virtual void SetAtmosOpacity | ( | TimeValue | t, |
float | f | ||
) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
virtual float GetAtmosOpacity | ( | TimeValue | t, |
Interval & | valid =
FOREVER |
||
) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return 0.0f; }
virtual void SetAtmosColAmt | ( | TimeValue | t, |
float | f | ||
) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
virtual float GetAtmosColAmt | ( | TimeValue | t, |
Interval & | valid =
FOREVER |
||
) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return 0.0f; }
virtual void SetUseShadowColorMap | ( | TimeValue | t, |
int | onOff | ||
) | [inline, virtual] |
virtual int GetUseShadowColorMap | ( | TimeValue | t | ) | [inline, virtual] |
Reimplemented in LightscapeLight, MSPluginLight, and MSLightXtnd.
{ return FALSE; }
virtual int GetOvershoot | ( | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetOvershoot | ( | int | a | ) | [pure virtual] |
Reimplemented from LightObject.
Implemented in MSPluginLight, and MSLightXtnd.
virtual ExclList& GetExclusionList | ( | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetExclusionList | ( | ExclList & | list | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual BOOL SetHotSpotControl | ( | Control * | c | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual BOOL SetFalloffControl | ( | Control * | c | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual BOOL SetColorControl | ( | Control * | c | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual Control* GetHotSpotControl | ( | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual Control* GetFalloffControl | ( | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual Control* GetColorControl | ( | ) | [pure virtual] |
Implemented in MSPluginLight, and MSLightXtnd.
virtual void SetAffectDiffuse | ( | BOOL | onOff | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
virtual BOOL GetAffectDiffuse | ( | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{return 0;}
virtual void SetAffectSpecular | ( | BOOL | onOff | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
virtual BOOL GetAffectSpecular | ( | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{return 0;}
virtual void SetDecayType | ( | BOOL | onOff | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
virtual BOOL GetDecayType | ( | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{return 0;}
virtual void SetDecayRadius | ( | TimeValue | time, |
float | f | ||
) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return 0.0f;}
virtual void SetDiffuseSoft | ( | TimeValue | time, |
float | f | ||
) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return 0.0f; }
virtual void SetShadColor | ( | TimeValue | t, |
Point3 & | rgb | ||
) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return Point3(0,0,0); }
virtual BOOL GetLightAffectsShadow | ( | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return 0; }
virtual void SetLightAffectsShadow | ( | BOOL | b | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{ }
virtual void SetShadMult | ( | TimeValue | t, |
float | m | ||
) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return 1.0f; }
virtual Texmap* GetProjMap | ( | ) | [inline, virtual] |
Reimplemented from LightObject.
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return NULL; }
virtual void SetProjMap | ( | Texmap * | pmap | ) | [inline, virtual] |
Reimplemented from LightObject.
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
virtual Texmap* GetShadowProjMap | ( | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return NULL; }
virtual void SetShadowProjMap | ( | Texmap * | pmap | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{}
virtual void SetAmbientOnly | ( | BOOL | onOff | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{ }
virtual BOOL GetAmbientOnly | ( | ) | [inline, virtual] |
Reimplemented in MSPluginLight, and MSLightXtnd.
{ return FALSE; }