Area Lights sampling custom attribute.
This class holds the sampling information and additional information for area lights.
#include <lslights.h>
Public Types |
|
enum | { kDefaultSamples_Area = 32, kDefaultSamples_Linear = kDefaultSamples_Area, kDefaultSamples_Cylinder = kDefaultSamples_Area, kDefaultSamples_Sphere = kDefaultSamples_Area, kDefaultSamples_Disc = kDefaultSamples_Area, kDefaultSamples_Point = 0 } |
Default number of samples. More... |
|
Public Member Functions |
|
virtual bool | AreaLightComputationEnabled (TimeValue t, Interval *valid=NULL) const =0 |
Returns whether the area light computation
is enabled. |
|
virtual BOOL | IsLightShapeRenderingEnabled (TimeValue t, Interval *valid=NULL) const =0 |
Returns whether the light's shape is
rendered. |
|
virtual void | LightShapeRenderingEnabled (TimeValue t, BOOL on)=0 |
Set whether the light's shape is rendered.
|
|
virtual Interface_ID | GetID () |
Returns the Interface ID for this class,
LS_AREALIGHTCUSTATTRIB_INTERFACE_ID. |
|
virtual int | GetNumSamples (TimeValue t, Interval *valid=NULL) const =0 |
Returns the number of samples to be used.
|
|
virtual void | SetNumSamples (TimeValue t, int numSamples)=0 |
Sets the number of samples to be used.
|
|
Static Public Attributes |
|
static const BOOL | kDefault_EnableAreaLight = TRUE |
Default value of the area light computation
state. |
|
static const BOOL | kDefault_EnableLightShapeRendering = FALSE |
Default value of the light shape rendering
state. |
anonymous enum |
Default number of samples.
virtual bool AreaLightComputationEnabled | ( | TimeValue | t, |
Interval * | valid = NULL |
||
) | const [pure virtual] |
Returns whether the area light computation is enabled.
[in] | t | - The time at which the value is retrieved |
[in,out] | valid | - If this argument is not NULL, the validity of this value is intersected with the interval pointed to by this argument. |
virtual BOOL IsLightShapeRenderingEnabled | ( | TimeValue | t, |
Interval * | valid = NULL |
||
) | const [pure virtual] |
Returns whether the light's shape is rendered.
[in] | t | - The time at which the value is retrieved |
[in,out] | valid | - If this argument is not NULL, the validity of this value is intersected with the interval pointed to by this argument. |
virtual void LightShapeRenderingEnabled | ( | TimeValue | t, |
BOOL | on | ||
) | [pure virtual] |
Set whether the light's shape is rendered.
[in] | t | - The time at which the value is retrieved |
[in] | on | - Render or not the light shape in mental ray |
virtual int GetNumSamples | ( | TimeValue | t, |
Interval * | valid = NULL |
||
) | const [pure virtual] |
Returns the number of samples to be used.
[in] | t | - The time at which the number of samples is retrieved. |
[in,out] | valid | - If this argument is not NULL, the validity of this number of samples is intersected with the interval pointed to by this argument. |
virtual void SetNumSamples | ( | TimeValue | t, |
int | numSamples | ||
) | [pure virtual] |
Sets the number of samples to be used.
[in] | t | - The time at which the number of samples is set. |
[in] | numSamples | - The number of sample to use. |
virtual Interface_ID GetID | ( | ) | [inline, virtual] |
Returns the Interface ID for this class, LS_AREALIGHTCUSTATTRIB_INTERFACE_ID.
Reimplemented from BaseInterface.
{ return LS_AREALIGHTCUSTATTRIB_INTERFACE_ID; }
const BOOL
kDefault_EnableAreaLight = TRUE [static] |
Default value of the area light computation state.
const BOOL
kDefault_EnableLightShapeRendering = FALSE
[static] |
Default value of the light shape rendering state.