rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvDistantLight Class Reference

Distant Light. More...

#include <ilviews/bitmaps/filters/lights.h>

Inheritance diagram for IlvDistantLight:
IlvLightSource

Public Member Functions

 IlvDistantLight (IlFloat azimuth=0.0, IlFloat elevation=0.0, IlFloat r=1.0, IlFloat g=1.0, IlFloat b=1.0)
 Constructor. More...
 
IlFloat getAzimuth () const
 Returns the azimuth. More...
 
IlFloat getElevation () const
 Returns the elevation. 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...
 
void setAzimuth (IlFloat azimuth)
 Sets the azimuth. More...
 
void setElevation (IlFloat elevation)
 Sets the elevation. More...
 
void update ()
 Called when the instance needs internal updating.
 
- 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...
 

Detailed Description

Distant Light.

Library: ilvbmpflt

This class allows you to model an infinitely distant light using an elevation and an azimuth.

See Also
IlvDiffuseLightingFilter, IlvSpecularLightingFilter, IlvLightSource, IlvPointLight, IlvSpotLight

Constructor & Destructor Documentation

IlvDistantLight::IlvDistantLight ( IlFloat  azimuth = 0.0,
IlFloat  elevation = 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 azimuth and elevation are 0.0. The default light color is white.

Member Function Documentation

IlFloat IlvDistantLight::getAzimuth ( ) const

Returns the azimuth.

Returns
The azimuth.
IlFloat IlvDistantLight::getElevation ( ) const

Returns the elevation.

Returns
The elevation.
void IlvDistantLight::getLightVector ( IlFloat  x,
IlFloat  y,
IlFloat  z,
IlFloat result 
)
virtual

Returns the vector from this instance to a given point in 3D space.

Parameters
xThe x position of the point.
yThe y position of the point.
zThe z position of the point.
resultAn array of 3 floating point values that will hold the vector.

Reimplemented from IlvLightSource.

void IlvDistantLight::setAzimuth ( IlFloat  azimuth)

Sets the azimuth.

Parameters
azimuthThe new azimuth.
void IlvDistantLight::setElevation ( IlFloat  elevation)

Sets the elevation.

Parameters
elevationThe new elevation.

© 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.