Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | List of all members
GasGeometry Class Reference
Inheritance diagram for GasGeometry:
GasGeometryBase GasClusterable GasObject ResourceData EventObject CoreCustomData CoreBaseObject CoreBaseType

Public Member Functions

bool create (const CtxEval &eval_ctx, const GeometryObject *geometry_base, const GeometryObject *geometry_deformed, AppProgressBar *progress_bar=0)
 
bool create (const CtxEval &eval_ctx, const GeometryObject *geometry_base, const GeometryObject *geometry_deformed, const GeometryObject *displacement_front, const GeometryObject *displacement_back, const CoreBasicArray< unsigned int > &shading_groups_displacement, AppProgressBar *progress_bar=0)
 
virtual GMathBbox3d get_bbox () const override
 
virtual GMathBbox3d get_bbox_at (const CtxEval &eval_ctx, const double &time) const override
 
virtual void get_clusters (CoreVector< void * > &clusters, const unsigned int &max_cluster_count, const float &min_cluster_coverage) const override
 
virtual void get_clusters_bboxes (const CoreBasicArray< void * > &clusters, GMathBbox3f *bboxes) const override
 
virtual void get_clusters_bboxes_at (const CtxEval &eval_ctx, const double &time, const CoreBasicArray< void * > &clusters, GMathBbox3f *bboxes) const override
 
virtual void get_clusters_weights (const CoreBasicArray< void * > &clusters, float *weights) const override
 
virtual size_t get_memory_size () const override
 Get the amount of memory occupied by the resource.
 
const unsigned int & get_primitive_count () const
 

Additional Inherited Members

- Public Types inherited from GasObject
typedef void(* RayHitCallback )(const GasObject *object, const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx)
 
typedef void(* RayHitNearestCallback )(const GasObject *object, const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRaytraceCtx &raytrace_ctx)
 
typedef void(* FrustumHitCallback )(const GasObject *object, const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryFrustumCtx &frustum_ctx)
 
typedef void(* RayFrustumHitCallback )(const GasObject *object, const CtxEval &eval_ctx, CtxShader &shader_ctx, GeometryRayFrustumCtx &ray_frustum_ctx)
 
- Static Public Member Functions inherited from GasObject
static void create_ctx (CtxShader &ctx)
 
static void destroy_ctx (CtxShader &ctx)
 
static size_t get_ctx_size (CtxShader &ctx)
 
- Protected Member Functions inherited from GasGeometryBase
bool init_primitives (const CtxEval &eval_ctx, const GeometryObject *geometry_base, const GeometryObject *geometry_deformed, const GeometryObject *displacement_front, const GeometryObject *displacement_back, const CoreBasicArray< unsigned int > &shading_groups_displacement, CoreVector< GMathBbox3f > &bboxes, AppProgressBar *progress_bar=0)
 
- Protected Attributes inherited from GasGeometryBase
const GeometryObjectm_geometry_base
 
const GeometryObjectm_geometry_deformed
 
const GeometryObjectm_displacement_front
 
const GeometryObjectm_displacement_back
 
CoreArray< unsigned int > m_sg_size
 
CoreArray< unsigned int > m_primitive_indices
 
unsigned int m_displacement_front_offset
 
unsigned int m_displacement_back_offset
 
bool m_is_geometry_animated
 

Member Function Documentation

size_t GasGeometry::get_memory_size ( void  ) const
overridevirtual

Get the amount of memory occupied by the resource.

Returns an estimate in bytes of the data allocated by the object.

Reimplemented from ResourceData.