Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Friends | List of all members
GeometryDeferredShading Class Reference

Public Member Functions

 GeometryDeferredShading (GeometryDeferredShadingPool &shading_data_pool, GeometryCustomDataPool &custom_data_pool, GeometryMatrixPool &matrix_pool)
 
void init (const GeometryRaytraceCtx &ctx, const unsigned int &ray_index, const unsigned int &shading_group_count)
 
size_t get_memory_size () const
 
void configure_shading_group (const unsigned int &shading_group_index, const OfClass *shading_class=0, ModuleMaterial *shading_material=0, const ShadingVariableAccessor *shading_variables=0, const float &shading_opacity=0.0f)
 
const unsigned int & get_shading_group_count () const
 
GeometryDeferredShadingGroupget_shading_group (const unsigned int &shading_group_index) const
 
GeometryDeferredShadingGroupoperator[] (const unsigned int &shading_group_index) const
 
void prepare_intersection (const GeometryDeferredShadingGroup &data, GeometryIntersection &inter) const
 
const GeometrySourceHierarchyget_scene_objects () const
 Get the hierarchy of scene objects from which the geometry is accessible.
 
unsigned int get_scene_object_count () const
 Get the size of the scene object hierarchy.
 
unsigned int get_scene_object_index (const unsigned int &i) const
 Get the index of a scene object in the hierarchy.
 
unsigned int get_first_scene_object_index () const
 Get the index in the scene of the first scene object in the hierarchy.
 
unsigned int get_last_scene_object_index () const
 Get the index in regard to its parent of the last scene object in the hierarchy.
 
unsigned int get_first_visibility_object_index () const
 Get the index of the first scene object overriding visibility or the last object if no override.
 
ModuleSceneObjectget_scene_object (const unsigned int &i) const
 Get the pointer to a scene object in the hierarchy.
 
ModuleSceneObjectget_first_scene_object () const
 Get the pointer to the first scene object in the hierarchy.
 
ModuleSceneObjectget_last_scene_object () const
 Get the pointer to the last scene object in the hierarchy.
 
ModuleSceneObjectget_first_visibility_object () const
 Get the pointer to the first scene object overriding visibility or the last object if no override.
 
const unsigned int & get_visibility_index () const
 Get the index of the first scene object overriding visibility or the last object if no override.
 
const unsigned int & get_geometry_index () const
 Get the index of the geometry in regard to the first scene object in the hierarchy.
 
const unsigned int & get_local_geometry_index () const
 Returns the index of the last geometry hit in the scene object.
 
const unsigned int & get_material_offset () const
 Get the index of the first material in regard to the first scene object in the hierarchy.
 
const GMathMatrix4x4d & get_world_matrix () const
 Get the transformation matrix of the geometry.
 
GMathMatrix4x4d * get_world_matrix_dt () const
 Get the transformation matrix of the geometry at (t + dt)
 
const GMathRayget_ray () const
 Get the ray that has generated the data.
 
const GMathVec3d & get_local_eye_dir () const
 Get the local direction of the eye.
 
const double & get_time () const
 Get the local time of the data (related to the frame)
 
const double & get_time_delta () const
 Get the time delta used to compute the motion vector.
 

Friends

class GeometryDeferredShadingGroup
 

Member Function Documentation

const unsigned int& GeometryDeferredShading::get_geometry_index ( ) const
inline

Get the index of the geometry in regard to the first scene object in the hierarchy.

Note
This index is encoded on 32 bits so it can be wrong if the geometry is reached from a hierarchy of complex scatterers.
ModuleSceneObject* GeometryDeferredShading::get_scene_object ( const unsigned int &  i) const
inline

Get the pointer to a scene object in the hierarchy.

Parameters
[in]ithe position of the scene object in the hierarchy
Returns
the pointer to the scene object
unsigned int GeometryDeferredShading::get_scene_object_index ( const unsigned int &  i) const
inline

Get the index of a scene object in the hierarchy.

Parameters
[in]ithe position of the scene object in the hierarchy
Returns
the index of the scene object in regard to its parent