LightMap Class Reference

#include <LightMap.h>

Inheritance diagram for LightMap:

EnergyMap EnergyCoat ESGObject List of all members.

Public Types

enum  MapIndex {
  LEFT_MAP = 0, RIGHT_MAP = 1, NEAR_MAP = 2, FAR_MAP = 3,
  BOTTOM_MAP = 4, TOP_MAP = 5
}
enum  Type { UNKNOWN, POLYGONAL, MAP2D, MAP3D }

Public Member Functions

 LightMap (unsigned, unsigned, const Vector3 &, const Vector3 &)
 ~LightMap ()
virtual bool getPointEnergy (const Vector3 &, Vector3 &)
virtual bool setPointEnergy (const Vector3 &, const Vector3 &)
bool setValue (MapIndex, unsigned, unsigned, const Color3f &)
bool getValue (MapIndex, unsigned, unsigned, Color3f &) const
bool getMapCoords (const Vector3 &, MapIndex &, unsigned &, unsigned &) const
Vector3 centroid (void) const
Vector3 extent (void) const
virtual Type type (void) const
unsigned uRes (void) const
unsigned vRes (void) const

Protected Attributes

Color3f ** _lightMap
Vector3 _centroid
Vector3 _extent
unsigned _uRes
unsigned _vRes
Geometry_pGeometry

Detailed Description

Definition at line 10 of file LightMap.h.


Member Enumeration Documentation

enum MapIndex
 

Enumerator:
LEFT_MAP 
RIGHT_MAP 
NEAR_MAP 
FAR_MAP 
BOTTOM_MAP 
TOP_MAP 

Definition at line 12 of file LightMap.h.

enum Type [inherited]
 

Enumerator:
UNKNOWN 
POLYGONAL 
MAP2D 
MAP3D 

Definition at line 14 of file EnergyCoat.h.


Constructor & Destructor Documentation

LightMap unsigned  ,
unsigned  ,
const Vector3 ,
const Vector3
 

Definition at line 5 of file LightMap.cc.

References LightMap::_lightMap, EnergyMap::_uRes, and EnergyMap::_vRes.

~LightMap  ) 
 

Definition at line 20 of file LightMap.cc.

References LightMap::_lightMap, and EnergyMap::_vRes.


Member Function Documentation

Vector3 centroid void   )  const [inline]
 

Definition at line 48 of file LightMap.h.

Vector3 extent void   )  const [inline]
 

Definition at line 49 of file LightMap.h.

bool getMapCoords const Vector3 ,
MapIndex ,
unsigned &  ,
unsigned & 
const
 

Definition at line 58 of file LightMap.cc.

References LightMap::_centroid, EnergyMap::_uRes, EnergyMap::_vRes, LightMap::BOTTOM_MAP, LightMap::FAR_MAP, LightMap::LEFT_MAP, LightMap::NEAR_MAP, PI, LightMap::RIGHT_MAP, and LightMap::TOP_MAP.

Referenced by LightMap::getPointEnergy(), and LightMap::setPointEnergy().

bool getPointEnergy const Vector3 ,
Vector3
[virtual]
 

Implements EnergyMap.

Definition at line 26 of file LightMap.cc.

References LightMap::_lightMap, EnergyMap::_vRes, and LightMap::getMapCoords().

bool getValue MapIndex  ,
unsigned  ,
unsigned  ,
Color3f & 
const
 

Definition at line 51 of file LightMap.cc.

References LightMap::_lightMap, EnergyMap::_uRes, and EnergyMap::_vRes.

bool setPointEnergy const Vector3 ,
const Vector3
[virtual]
 

Implements EnergyMap.

Definition at line 35 of file LightMap.cc.

References LightMap::_lightMap, EnergyMap::_vRes, and LightMap::getMapCoords().

bool setValue MapIndex  ,
unsigned  ,
unsigned  ,
const Color3f & 
 

Definition at line 44 of file LightMap.cc.

References LightMap::_lightMap, EnergyMap::_uRes, and EnergyMap::_vRes.

virtual Type type void   )  const [inline, virtual, inherited]
 

Reimplemented from EnergyCoat.

Definition at line 18 of file EnergyMap.h.

unsigned uRes void   )  const [inline, inherited]
 

Definition at line 26 of file EnergyMap.h.

unsigned vRes void   )  const [inline, inherited]
 

Definition at line 27 of file EnergyMap.h.


Member Data Documentation

Vector3 _centroid [protected]
 

Definition at line 23 of file LightMap.h.

Referenced by LightMap::getMapCoords().

Vector3 _extent [protected]
 

Definition at line 24 of file LightMap.h.

Color3f** _lightMap [protected]
 

Definition at line 22 of file LightMap.h.

Referenced by LightMap::getPointEnergy(), LightMap::getValue(), LightMap::LightMap(), LightMap::setPointEnergy(), LightMap::setValue(), and LightMap::~LightMap().

Geometry* _pGeometry [protected, inherited]
 

Definition at line 22 of file EnergyCoat.h.

unsigned _uRes [protected, inherited]
 

Definition at line 12 of file EnergyMap.h.

Referenced by LightMap::getMapCoords(), LightMap::getValue(), LightMap::LightMap(), and LightMap::setValue().

unsigned _vRes [protected, inherited]
 

Definition at line 13 of file EnergyMap.h.

Referenced by LightMap::getMapCoords(), LightMap::getPointEnergy(), LightMap::getValue(), LightMap::LightMap(), LightMap::setPointEnergy(), LightMap::setValue(), and LightMap::~LightMap().


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