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

Inherited by DisplacedPrimitiveGasMotion, and GasGridSubTreeMotion.

Public Types

typedef void(* LeafRayHitCallback )(void *data, const unsigned int &index, const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx)
 

Public Member Functions

const GasCompressedTreeget_static_tree () const
 
bool is_empty () const
 
const unsigned int & get_leaf_count () const
 
const unsigned int & get_node_count () const
 
const unsigned int & get_depth () const
 
const unsigned int & get_root_index () const
 
const unsigned int & get_sample_count () const
 
void configure (const GasCompressedTree *static_tree, const unsigned int &sample_count)
 
bool set_sample (const unsigned int &sample_index, const CoreBasicArray< GMathBbox3f > &bboxes, const CoreBasicArray< unsigned int > &bbox_indices=CoreBasicArray< unsigned int >(0, 0))
 
void set_velocity_time_scale (const float &scale)
 
const float & get_velocity_time_scale () const
 
const GMathBbox3f & get_bbox (const unsigned int &sample_index) const
 
void clear ()
 
virtual size_t get_memory_size () const
 
void set_leaf_raytrace_callbacks (LeafRayHitCallback ray_hit_callback, LeafRayHitCallback ray_hit_nearest_callback, void *data=0)
 
void set_leaf_raytrace_callbacks (LeafRayHitCallback ray_hit_callback, LeafRayHitCallback ray_hit_nearest_callback, LeafRayHitCallback ray_hit_nearest_vectors_callback, void *data=0)
 
void ray_hit (const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx) const
 
void ray_hit_nearest (const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx) const
 
void ray_hit_velocity (const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx) const
 
void ray_hit_nearest_velocity (const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx) const
 
void ray_hit (const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx, void *leaf_data) const
 
void ray_hit_nearest (const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx, void *leaf_data) const
 
void ray_hit_velocity (const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx, void *leaf_data) const
 
void ray_hit_nearest_velocity (const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx, void *leaf_data) const
 
void ray_query (CtxShader &shader_ctx, const unsigned int &span_index, const float &span_weight, const GMathBasicRay<> &ray, const double &tnear, const double &tfar, CoreVector< GasLeafHit > &hits) const
 
void ray_query_velocity (CtxShader &shader_ctx, const float &time, const GMathBasicRay<> &ray, const double &tnear, const double &tfar, CoreVector< GasLeafHit > &hits) const
 

Friends

class GasCompressedTreeRaytracer
 
class GasTreeRaytracer< GasCompressedTree >