vtkLight - a virtual light for 3D rendering
Super Class: vtkObject
Description:
vtkLight is a virtual light for 3D rendering. It provides methods to locate and point the light, turn it on and off, and set its brightness and color. In addition to the basic infinite distance point light source attributes, you also can specify the light attenuation values and cone angle. These attributes are only used if the light is a positional light. The default is a directional light (e.g. infinite point light source).
See Also:
Methods:
Detailed Method Descriptions:
Create a light with the focal point at the origin and its position set to (0,0,1). The lights color is white, intensity=1, and the light is turned on.
Abstract interface to renderer. Each concrete subclass of vtkLight will load its data into the graphics system in response to this method invocation. The actual loading is performed by a vtkLightDevice subclass, which will get created automatically.
Set/Get the color of the light.
Set/Get the position of the light.
Set/Get the point at which the light is shining.
Set/Get the brightness of the light (from one to zero).
Turn the light on or off.
Turn positional lighting on or off.
Set/Get the exponent of the cosine used in positional lighting.
Set/Get the lighting cone angle of a positional light in degrees. A value of 180 indicates that you want no spot lighting effects just a positional light.
Set/Get the quadratic attenuation constants. They are specified as constant, linear, and quadratic, in that order.