IrradianceCache::Value Class Reference

#include <IrradianceCache.h>

List of all members.

Public Member Functions

 Value ()
 Value (const Vector3 &pos, const Vector3 &normal, const Color3f &irrad, float meanDistance)
 ~Value ()
bool checkDomain (const Vector3 &position, const Vector3 &normal, float maxError)
float getWeight () const
const Color3f & getIrradiance () const
const Vector3getPosition () const
const Vector3getNormal () const
const float getMeanDistance () const

Friends

ostream & operator<< (ostream &out, const Value &irradValue)


Detailed Description

Definition at line 142 of file IrradianceCache.h.


Constructor & Destructor Documentation

Value  ) 
 

Implicit contructor

Definition at line 136 of file IrradianceCache.cc.

Value const Vector3 pos,
const Vector3 normal,
const Color3f &  irrad,
float  meanDistance
 

Constructor.

Parameters:
pos location of the irradiance value
normal normalized normal vector
irrad irradiance value
meanDistance harmonic mean distance to visible objects

Definition at line 146 of file IrradianceCache.cc.

~Value  )  [inline]
 

Destructor.

Definition at line 172 of file IrradianceCache.h.


Member Function Documentation

bool checkDomain const Vector3 position,
const Vector3 normal,
float  maxError
 

Checks whether the given 3D point is inside the domain of the illuminance value (checks weight and geometry). If the point lies in the domain then weight is stored in the weight attribute and true is returned. Otherwise the weight attribute is invalid.

Parameters:
position location of the 3D point
normal normalized normal vector
maxError user-defined constat, which inverse restricts domain of irradiance value (weight has to be bigger then 1/maxError)
Returns:
true on success, false otherwise

Definition at line 159 of file IrradianceCache.cc.

const Color3f& getIrradiance  )  const [inline]
 

Returns:
irradiance

Definition at line 226 of file IrradianceCache.h.

const float getMeanDistance  )  const [inline]
 

harmonic mean distance

Definition at line 241 of file IrradianceCache.h.

const Vector3& getNormal  )  const [inline]
 

Returns:
normal vector

Definition at line 236 of file IrradianceCache.h.

const Vector3& getPosition  )  const [inline]
 

Returns:
location

Definition at line 231 of file IrradianceCache.h.

float getWeight  )  const [inline]
 

Returns:
weight

Definition at line 221 of file IrradianceCache.h.


Friends And Related Function Documentation

ostream& operator<< ostream &  out,
const Value irradValue
[friend]
 

Prints out values:

  • pozice position
  • normálový vektor normal
  • harmonická střední vzdálenost viditelných objektů meanDistance
  • složky barvy r, g, b
  • naposledy vypočítanou váhu weight

Parameters:
out 
irradValue 
Returns:
reference to out

Definition at line 208 of file IrradianceCache.h.


The documentation for this class was generated from the following files:
Generated on Wed Jun 28 12:24:33 2006 for esg by  doxygen 1.4.6