Rogue Wave Views Foundation Package API Reference Guide |
Rogue Wave Views Documentation Home |
Lights. More...
#include <ilviews/bitmaps/lights.h>
Public Member Functions | |
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... | |
virtual 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 | 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... | |
virtual void | update () |
Called when the instance needs internal updating. | |
Public Member Functions inherited from IlvValueInterface | |
virtual IlBoolean | applyValue (const IlvValue &value) |
Apply an accessor. More... | |
virtual IlBoolean | changeValue (const IlvValue &val) |
Changes the value of an accessor. More... | |
virtual IlBoolean | changeValues (const IlvValue *values, IlUShort count=0) |
Changes several accessor values simultaneously. More... | |
virtual void | getAccessors (const IlSymbol *const **names, const IlvValueTypeClass *const **types, IlUInt &count) const |
Retrieves the list of available accessors of an object. More... | |
virtual const char * | getName () const |
Returns the name of the instance. The semantic and implementation of this method are defined by concrete subclasses. The default implementation returns 0 . More... | |
virtual IlvValue & | queryValue (IlvValue &val) const |
Retrieves an accessor value. More... | |
virtual void | queryValues (IlvValue *values, IlUShort count) const |
Retrieves multiple accessor values simultaneously. More... | |
Lights.
Library: xviews or winviews or mviews (mutually exclusive)
This class is the base class of lights. It allows you to model a light source to use in IlvDiffuseLightingFilter
or IlvSpecularLightingFilter
.
Every light has a color.
IlvDiffuseLightingFilter
, IlvSpecularLightingFilter
, IlvDistantLightSource
, IlvPointLightSource
, IlvSpotLightSource
Constructor.
Initializes a new instance of the class IlvLightSource
.
The default light color is white.
|
virtual |
Destructor.
The destructor releases all the memory used by the instance.
IlFloat IlvLightSource::getB | ( | ) | const |
Returns the blue component value.
IlFloat IlvLightSource::getG | ( | ) | const |
Returns the green component value.
|
virtual |
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 in IlvSpotLight, IlvPointLight, and IlvDistantLight.
IlFloat IlvLightSource::getR | ( | ) | const |
Returns the red component value.
void IlvLightSource::setB | ( | IlFloat | b | ) |
Sets the blue component value.
b | The new blue component value. |
void IlvLightSource::setG | ( | IlFloat | g | ) |
Sets the green component value.
g | The new green component value. |
void IlvLightSource::setR | ( | IlFloat | r | ) |
Sets the red component value.
r | The new red component value. |
© Copyright 2016, 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.