# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CLightInfluenceInterpolator Class Reference

This class is used by CLandscape and IG/Pacs to compute interpolated influence of lights (biLinear-like) on a square. More...

#include <light_influence_interpolator.h>

List of all members.

Public Types

enum  { NumLightPerCorner = 2 }
 We support only 2 light per corner. More...


Public Methods

 CLightInfluenceInterpolator ()
 Constructor. No-op !! More...

void interpolate (std::vector< CPointLightInfluence > &pointLightList, float subX, float subY)
 solve the biLinear (regrouping multiple influence of light at same id), and add CPointLightInfluence to the list. More...


Public Attributes

CCorner Corners [4]
 The User must setup Lights correctly for each corner (ie set NULL for each light not here). More...


Detailed Description

This class is used by CLandscape and IG/Pacs to compute interpolated influence of lights (biLinear-like) on a square.

It works only with CPointLightNamed.

Author:
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 48 of file light_influence_interpolator.h.


Member Enumeration Documentation

anonymous enum
 

We support only 2 light per corner.

Enumeration values:
NumLightPerCorner 

Definition at line 53 of file light_influence_interpolator.h.


Constructor & Destructor Documentation

NL3D::CLightInfluenceInterpolator::CLightInfluenceInterpolator   [inline]
 

Constructor. No-op !!

Definition at line 77 of file light_influence_interpolator.h.


Member Function Documentation

void NL3D::CLightInfluenceInterpolator::interpolate std::vector< CPointLightInfluence > &    pointLightList,
float    subX,
float    subY
 

solve the biLinear (regrouping multiple influence of light at same id), and add CPointLightInfluence to the list.

Parameters:
subX  E [0, 1] is the x coord for biLinear
subY  E [0, 1] is the y coord for biLinear

Definition at line 38 of file light_influence_interpolator.cpp.

References Corners, id, NL3D::CLightInfluenceInterpolator::CCorner::Influence, NL3D::CLightInfluenceInterpolator::CCorner::Lights, nlassert, and NumLightPerCorner.


Member Data Documentation

CCorner NL3D::CLightInfluenceInterpolator::Corners[4]
 

The User must setup Lights correctly for each corner (ie set NULL for each light not here).

Corner order is TL(0,0), TR(1,0), BL(0,1), BR(1,1).

Definition at line 71 of file light_influence_interpolator.h.

Referenced by interpolate.


The documentation for this class was generated from the following files: