Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Point Light. More...
#include <ilviews/bitmaps/filters/lights.h>
Public Member Functions | |
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. | |
void | getLightVector (IlFloat x, IlFloat y, IlFloat z, IlFloat *result) |
Returns the vector from this instance to a given point in 3D space. | |
IlFloat | getX () const |
Returns the x coordinate. | |
virtual void | getXYZ (IlFloat &x, IlFloat &y, IlFloat &z) const |
Returns the position. | |
IlFloat | getY () const |
Returns the y coordinate. | |
IlFloat | getZ () const |
Returns the z coordinate. | |
void | setX (IlFloat x) |
Sets the x coordinate. | |
virtual void | setXYZ (IlFloat x, IlFloat y, IlFloat z) |
Sets the position. | |
void | setY (IlFloat y) |
Sets the y coordinate. | |
void | setZ (IlFloat z) |
Sets the z coordinate. | |
void | update () |
Called when the instance needs internal updating. |
Point Light.
Library: ilvbmpflt
This class allows you to model a positional light using three coordinates.
IlvDiffuseLightingFilter
, IlvSpecularLightingFilter
, IlvLightSource
, IlvDistantLight
, IlvSpotLight
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.
Initializes a new instance of the class IlvDistantLight
.
The default position is <0,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 IlvLightSource.
Reimplemented in IlvSpotLight.
IlFloat IlvPointLight::getX | ( | ) | const |
Returns the x coordinate.
Returns the position.
x | The x coordinate. | |
y | The y coordinate. | |
z | The z coordinate. |
IlFloat IlvPointLight::getY | ( | ) | const |
Returns the y coordinate.
IlFloat IlvPointLight::getZ | ( | ) | const |
Returns the z coordinate.
void IlvPointLight::setX | ( | IlFloat | x | ) |
Sets the x coordinate.
x | The new x coordinate. |
Sets the position.
x | The x coordinate. | |
y | The y coordinate. | |
z | The z coordinate. |
void IlvPointLight::setY | ( | IlFloat | y | ) |
Sets the y coordinate.
y | The new y coordinate. |
void IlvPointLight::setZ | ( | IlFloat | z | ) |
Sets the z coordinate.
z | The new z coordinate. |
© Copyright 2012, 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.