VolumeRegion Class Reference

#include <volume.h>

Inheritance diagram for VolumeRegion:
Inheritance graph
[legend]
Collaboration diagram for VolumeRegion:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 VolumeRegion ()
 VolumeRegion (color_t sa, color_t ss, color_t le, float gg, point3d_t pmin, point3d_t pmax, int attgridScale)
virtual ~VolumeRegion ()
virtual color_t sigma_a (const point3d_t &p, const vector3d_t &v)=0
virtual color_t sigma_s (const point3d_t &p, const vector3d_t &v)=0
virtual color_t emission (const point3d_t &p, const vector3d_t &v)=0
virtual color_t sigma_t (const point3d_t &p, const vector3d_t &v)
float attenuation (const point3d_t p, light_t *l)
virtual float p (const vector3d_t &w_l, const vector3d_t &w_s)
virtual color_t tau (const ray_t &ray, float step, float offset)=0
bool intersect (const ray_t &ray, float &t0, float &t1)
bound_t getBB ()

Public Attributes

std::map< light_t *, float * > attenuationGridMap
int attGridX
int attGridY
int attGridZ

Protected Attributes

bound_t bBox
color_t s_a
color_t s_s
color_t l_e
bool haveS_a
bool haveS_s
bool haveL_e
float g

Detailed Description

Definition at line 24 of file volume.h.


Constructor & Destructor Documentation

VolumeRegion::VolumeRegion (  )  [inline]

Definition at line 26 of file volume.h.

VolumeRegion::VolumeRegion ( color_t  sa,
color_t  ss,
color_t  le,
float  gg,
point3d_t  pmin,
point3d_t  pmax,
int  attgridScale 
) [inline]

Definition at line 27 of file volume.h.

virtual VolumeRegion::~VolumeRegion (  )  [inline, virtual]

Definition at line 41 of file volume.h.


Member Function Documentation

float VolumeRegion::attenuation ( const point3d_t  p,
light_t l 
)

Definition at line 98 of file volume.cc.

virtual color_t VolumeRegion::emission ( const point3d_t p,
const vector3d_t v 
) [pure virtual]

Implemented in DensityVolume, SkyVolume, and UniformVolume.

bound_t VolumeRegion::getBB (  )  [inline]

Definition at line 65 of file volume.h.

bool VolumeRegion::intersect ( const ray_t ray,
float &  t0,
float &  t1 
) [inline]

Definition at line 61 of file volume.h.

virtual float VolumeRegion::p ( const vector3d_t w_l,
const vector3d_t w_s 
) [inline, virtual]

Reimplemented in SkyVolume.

Definition at line 53 of file volume.h.

virtual color_t VolumeRegion::sigma_a ( const point3d_t p,
const vector3d_t v 
) [pure virtual]

Implemented in DensityVolume, SkyVolume, and UniformVolume.

virtual color_t VolumeRegion::sigma_s ( const point3d_t p,
const vector3d_t v 
) [pure virtual]

Implemented in DensityVolume, SkyVolume, and UniformVolume.

virtual color_t VolumeRegion::sigma_t ( const point3d_t p,
const vector3d_t v 
) [inline, virtual]

Definition at line 46 of file volume.h.

virtual color_t VolumeRegion::tau ( const ray_t ray,
float  step,
float  offset 
) [pure virtual]

Implemented in DensityVolume, SkyVolume, and UniformVolume.


Member Data Documentation

Definition at line 67 of file volume.h.

Definition at line 68 of file volume.h.

Definition at line 68 of file volume.h.

Definition at line 68 of file volume.h.

Definition at line 71 of file volume.h.

float VolumeRegion::g [protected]

Definition at line 74 of file volume.h.

bool VolumeRegion::haveL_e [protected]

Definition at line 73 of file volume.h.

bool VolumeRegion::haveS_a [protected]

Definition at line 73 of file volume.h.

bool VolumeRegion::haveS_s [protected]

Definition at line 73 of file volume.h.

Definition at line 72 of file volume.h.

Definition at line 72 of file volume.h.

Definition at line 72 of file volume.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 18 Dec 2009 for YafaRay by  doxygen 1.6.1