Library | File

Class wfcLightSourceInstruction

# include <wfcDisplay.h>

class wfcLightSourceInstruction
 : public virtual xobject
{
    xdeclare(wfcLightSourceInstruction)
    ...
};
This is a COMPACT class.



Description

Information related to light sources used for rendering
Manual References:
Graphics: Setting Light Sources



Method Summary

static wfcLightSourceInstruction_ptrCreate (optional xrstring inName, optional wfcLightType inType, optional pfcColorRGB_ptr inColor, optional xbool inIsActive)
Create a light source
optional xboolGetCastShadows ()
voidSetCastShadows (optional xbool value)
Cast a shadow
optional pfcColorRGB_ptrGetColor ()
voidSetColor (optional pfcColorRGB_ptr value)
Color of the light which is same as the lightbulb.
Note Valid values for each of the RGB is from 0.00 to 1.00. For all out of range values value of RGB will be set to 1.00
optional pfcVector3D_ptrGetDirection ()
voidSetDirection (optional pfcVector3D_ptr value)
Direction of light source with respect to model coordinate system.
optional xboolGetIsActive ()
voidSetIsActive (optional xbool value)
Checks if light source is active or not
optional xstringGetName ()
voidSetName (optional xrstring value)
Name of the light source
optional pfcPoint3D_ptrGetPosition ()
voidSetPosition (optional pfcPoint3D_ptr value)
Position of light source with respect to model coordinate system.
optional xrealGetSpreadAngle ()
voidSetSpreadAngle (optional xreal value)
Angle in degree if type is wfcLIGHT_SPOT
Note Valid values for angle from 0.00 to 180.00. For all out of range values value of angle will be set to 180.00.
optional wfcLightTypeGetType ()
voidSetType (optional wfcLightType value)
Type of the light source



Method Detail

optional xstringGetName ()
voidSetName (optional xrstring value)

Name of the light source
Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources




optional wfcLightTypeGetType ()
voidSetType (optional wfcLightType value)

Type of the light source
Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources




optional xboolGetIsActive ()
voidSetIsActive (optional xbool value)

Checks if light source is active or not
Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources




optional pfcColorRGB_ptrGetColor ()
voidSetColor (optional pfcColorRGB_ptr value)

Color of the light which is same as the lightbulb.
Note Valid values for each of the RGB is from 0.00 to 1.00. For all out of range values value of RGB will be set to 1.00
Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources




optional pfcPoint3D_ptrGetPosition ()
voidSetPosition (optional pfcPoint3D_ptr value)

Position of light source with respect to model coordinate system.
Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources




optional pfcVector3D_ptrGetDirection ()
voidSetDirection (optional pfcVector3D_ptr value)

Direction of light source with respect to model coordinate system.
Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources




optional xrealGetSpreadAngle ()
voidSetSpreadAngle (optional xreal value)

Angle in degree if type is wfcLIGHT_SPOT
Note Valid values for angle from 0.00 to 180.00. For all out of range values value of angle will be set to 180.00.
Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources




optional xboolGetCastShadows ()
voidSetCastShadows (optional xbool value)

Cast a shadow
Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources, Graphics: Setting Light Sources




static wfcLightSourceInstruction_ptrCreate (optional xrstring inName, optional wfcLightType inType, optional pfcColorRGB_ptr inColor, optional xbool inIsActive)

Create a light source
Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources
Parameters:
inName
Name of the light. If null default name will be set
inType
Type of the light. If null wfcLIGHT_SPOT will be set
inColor
Color of the light. If null green color will be set
inIsActive
Active status of the light. If null light will be set to be activated
Returns: