![]() |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Spot Light. More...
#include <ilviews/bitmaps/filters/lights.h>
Public Member Functions | |
| IlvSpotLight (IlFloat x=0.0, IlFloat y=0.0, IlFloat z=0.0, IlFloat tox=0.0, IlFloat toy=0.0, IlFloat toz=0.0, IlFloat specularExponent=0.0, IlFloat limitingConeAngle=0.0, IlFloat r=1.0, IlFloat g=1.0, IlFloat b=1.0) | |
| Constructor. More... | |
| void | getLightVector (IlFloat x, IlFloat y, IlFloat z, IlFloat *result) |
| Returns the vector from this instance to a given point in 3D space. More... | |
| IlFloat | getLimitingConeAngle () const |
| Returns the limiting cone angle. More... | |
| IlFloat | getSpecularExponent () const |
| Returns the specular exponent. More... | |
| IlFloat | getToX () const |
| Returns the x coordinate of the position the light points to. More... | |
| void | getToXYZ (IlFloat &tox, IlFloat &toy, IlFloat &toz) const |
| Returns the position the light points to. More... | |
| IlFloat | getToY () const |
| Returns the y coordinate of the position the light points to. More... | |
| IlFloat | getToZ () const |
| Returns the z coordinate of the position the light points to. More... | |
| void | setLimitingConeAngle (IlFloat coneangle) |
| Sets the limiting cone angle. More... | |
| void | setSpecularExponent (IlFloat exponent) |
| Sets the specular exponent. More... | |
| void | setToX (IlFloat tox) |
| Sets the x coordinate of the position the light points to. More... | |
| void | setToXYZ (IlFloat tox, IlFloat toy, IlFloat toz) |
| Sets the position the light points to. More... | |
| void | setToY (IlFloat toy) |
| Sets the y coordinate of the position the light points to. More... | |
| void | setToZ (IlFloat toz) |
| Sets the z coordinate of the position the light points to. More... | |
| void | update () |
| Called when the instance needs internal updating. | |
Public Member Functions inherited from IlvPointLight | |
| IlvPointLight (IlFloat x=0.0, IlFloat y=0.0, IlFloat z=0.0, IlFloat r=1.0, IlFloat g=1.0, IlFloat b=1.0) | |
| Constructor. More... | |
| IlFloat | getX () const |
| Returns the x coordinate. More... | |
| virtual void | getXYZ (IlFloat &x, IlFloat &y, IlFloat &z) const |
| Returns the position. More... | |
| IlFloat | getY () const |
| Returns the y coordinate. More... | |
| IlFloat | getZ () const |
| Returns the z coordinate. More... | |
| void | setX (IlFloat x) |
| Sets the x coordinate. More... | |
| virtual void | setXYZ (IlFloat x, IlFloat y, IlFloat z) |
| Sets the position. More... | |
| void | setY (IlFloat y) |
| Sets the y coordinate. More... | |
| void | setZ (IlFloat z) |
| Sets the z coordinate. More... | |
Public Member Functions inherited from IlvLightSource | |
| IlvLightSource (IlFloat r=1.0, IlFloat g=1.0, IlFloat b=1.0) | |
| Constructor. More... | |
| virtual | ~IlvLightSource () |
| Destructor. More... | |
| IlFloat | getB () const |
| Returns the blue component value. More... | |
| IlFloat | getG () const |
| Returns the green component value. More... | |
| IlFloat | getR () const |
| Returns the red component value. More... | |
| void | setB (IlFloat b) |
| Sets the blue component value. More... | |
| void | setG (IlFloat g) |
| Sets the green component value. More... | |
| void | setR (IlFloat r) |
| Sets the red component value. More... | |
Spot Light.
Library: ilvbmpflt
This class allows you to model a spot light. A spot light is a positional light with additional properties such as a direction it points to and a limiting cone which restricts the region where the light is projected. A specular exponent can be specified to allow smooth transition from lit to nonlit regions.
| IlvSpotLight::IlvSpotLight | ( | IlFloat | x = 0.0, |
| IlFloat | y = 0.0, |
||
| IlFloat | z = 0.0, |
||
| IlFloat | tox = 0.0, |
||
| IlFloat | toy = 0.0, |
||
| IlFloat | toz = 0.0, |
||
| IlFloat | specularExponent = 0.0, |
||
| IlFloat | limitingConeAngle = 0.0, |
||
| IlFloat | r = 1.0, |
||
| IlFloat | g = 1.0, |
||
| IlFloat | b = 1.0 |
||
| ) |
Constructor.
Initializes a new instance of the class IlvSpotLight.
The default position is <0,0,0>. The default pointing position is <0,0,0>. The default specular exponent is 0.0. The default limiting cone angle is 0.0. The default light color is white.
Returns the vector from this instance to a given point in 3D space.
| x | The x position of the point. |
| y | The y position of the point. |
| z | The z position of the point. |
| result | An array of 3 floating point values that will hold the vector. |
Reimplemented from IlvPointLight.
| IlFloat IlvSpotLight::getLimitingConeAngle | ( | ) | const |
Returns the limiting cone angle.
| IlFloat IlvSpotLight::getSpecularExponent | ( | ) | const |
Returns the specular exponent.
| IlFloat IlvSpotLight::getToX | ( | ) | const |
Returns the x coordinate of the position the light points to.
Returns the position the light points to.
| tox | The x coordinate of the new position. |
| toy | The y coordinate of the new position. |
| toz | The z coordinate of the new position. |
| IlFloat IlvSpotLight::getToY | ( | ) | const |
Returns the y coordinate of the position the light points to.
| IlFloat IlvSpotLight::getToZ | ( | ) | const |
Returns the z coordinate of the position the light points to.
| void IlvSpotLight::setLimitingConeAngle | ( | IlFloat | coneangle | ) |
Sets the limiting cone angle.
| coneangle | The new limiting cone angle. |
| void IlvSpotLight::setSpecularExponent | ( | IlFloat | exponent | ) |
Sets the specular exponent.
| exponent | The new specular exponent. |
| void IlvSpotLight::setToX | ( | IlFloat | tox | ) |
Sets the x coordinate of the position the light points to.
| tox | The new x pointing coordinate. |
Sets the position the light points to.
| tox | The x coordinate of the new position. |
| toy | The y coordinate of the new position. |
| toz | The z coordinate of the new position. |
| void IlvSpotLight::setToY | ( | IlFloat | toy | ) |
Sets the y coordinate of the position the light points to.
| toy | The new y pointing coordinate. |
| void IlvSpotLight::setToZ | ( | IlFloat | toz | ) |
Sets the z coordinate of the position the light points to.
| toz | The new z pointing coordinate. |
© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.