Clarisse 4.0 SP5b SDK  4.0.0.0.5.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Types | Public Member Functions | List of all members
CtxVolume Class Reference

Public Types

typedef CorePool< VolumeShading > Pool
 

Public Member Functions

 CtxVolume (Pool &pool)
 
void clear_samples ()
 
void add_sample (const double &z, const double &dz, const float &attenuation, const float &scattering)
 
const double & get_z_min () const
 
const double & get_z_max () const
 
const float & get_cdf_min () const
 
const float & get_cdf_max () const
 
const float & get_transmittance_min () const
 
const float & get_transmittance_max () const
 
const bool & is_sampled () const
 
const unsigned int & get_sample_count () const
 
void cook_samples (const double &zfar=gmath_infinity, const float &alpha_threshold=0.0f)
 
void dump_samples () const
 
void get_illumination_depths (const CoreBasicArray< double > &samples, double *depths, double *pdfs, unsigned int *depth_sorting=0) const
 
void get_illumination_depths (const CoreBasicArray< double > &samples, const double &z_min, const double &z_max, double *depths, double *pdfs, unsigned int *depth_sorting=0) const
 
void get_illumination_depths_pdfs (const CoreBasicArray< double > &depths, double *pdfs, unsigned int *depth_sorting=0) const
 
void get_illumination_depths_pdfs (const CoreBasicArray< double > &depths, const double &z_min, const double &z_max, double *pdfs, unsigned int *depth_sorting=0) const
 
void disable_shading ()
 
void clear_shading ()
 
void init_shading (const GeometryIntersectionPath &path, const bool &enable_slicing)
 
void init_shading (const GeometryIntersectionPath &path)
 
GeometryIntersectionnext_shading_fragment ()
 
const GMathRayget_ray () const
 
GeometryIntersectionget_shading_fragment () const
 
const double & get_shading_begin () const
 
const double & get_shading_end () const
 
void get_shading_range (double &t_min, double &t_max) const
 
const unsigned int & get_shading_index () const
 
const bool & is_shading_slicing_enabled () const
 
bool load_shading (float &density, GMathVec3f &scattering, GMathVec3f &attenuation, GMathVec3f &emission, double &phase) const
 
void store_shading (const float &density, const GMathVec3f &scattering, const GMathVec3f &attenuation, const GMathVec3f &emission, const double &phase)
 
size_t get_memory_size () const