|
QSDK 1.1 Documentation |
#include <Q/q.h>
Inheritance diagram for Q::Light:

Public Member Functions | |
| Light () | |
| Light (const char *name) | |
| Maths::Vec3f | color () const |
| float | radius () const |
| float | intensityR () const |
| float | intensityO () const |
| float | minAngle () const |
| float | maxAngle () const |
| Utils::Result | setColor (const Maths::Vec3f &) |
| Utils::Result | setRadius (float) |
| Utils::Result | setIntensityR (float) |
| Utils::Result | setIntensityO (float) |
| Utils::Result | setMinAngle (float) |
| Utils::Result | setMaxAngle (float) |
Static Public Member Functions | |
| Light | create (const char *name, const Database &db=Database()) |
| Light | find (const char *name) |
| ClassType | classType () |
| Light | cast (const ObjectBase &) |
The Light object represents a point or spot light source in the scene (directional lights are handled by the Environment object). The light's intensity is modified by a quadratic falloff equation which is calculated by specifying intensity values at the light's origin and at the radius.
|
|
Create a null light reference. |
|
|
Search the currently attached databases for a light with the given name. |
|
|
If the object referenced by
Reimplemented from Q::Geom. |
|
|
Return the type for this class. |
|
|
Return the color of the light. |
|
||||||||||||
|
Create a new light named |
|
|
Search the currently attached databases for a light with the given name and return that object, if it exists. |
|
|
Return the light's intensity at the origin. The default value for this parameter is |
|
|
Return the light's intensity at the radius. The default value for this parameter is |
|
|
Return the outside angle of a spot light. |
|
|
Return the inside angle of a spot light. This value defaults to |
|
|
Return the radius of the light. |
|
|
Set the color of the light. |
|
|
Set the intensity of the light at its origin. |
|
|
Set the intensity of the light at its radius. |
|
|
Set the outer angle of a spot light. |
|
|
Set the inner angle of a spot light. |
|
|
Set the radius of the light. This changes the box representing the light. If the Light is being used by any Instance then Instance::resetBox must be called on every one of those instances, otherwise they will not reflect the change. |
|
|
|
Qube Software Limited © 2000-2004
|
|