Logo Search packages:      
Sourcecode: blender version File versions  Download package

GIM_BOX_TREE_TEMPLATE_SET< _GIM_PRIMITIVE_MANAGER_PROTOTYPE, _GIM_BOX_TREE_PROTOTYPE > Class Template Reference

#include <gim_box_set.h>

List of all members.


Detailed Description

template<typename _GIM_PRIMITIVE_MANAGER_PROTOTYPE, typename _GIM_BOX_TREE_PROTOTYPE>
class GIM_BOX_TREE_TEMPLATE_SET< _GIM_PRIMITIVE_MANAGER_PROTOTYPE, _GIM_BOX_TREE_PROTOTYPE >

Generic Box Tree Template.

This class offers an structure for managing a box tree of primitives. Requires a Primitive prototype (like GIM_PRIMITIVE_MANAGER_PROTOTYPE ) and a Box tree structure ( like GIM_BOX_TREE).

Definition at line 214 of file gim_box_set.h.


Public Member Functions

SIMD_FORCE_INLINE GIM_AABB getGlobalBox () const
_GIM_PRIMITIVE_MANAGER_PROTOTYPE & getPrimitiveManager ()
const
_GIM_PRIMITIVE_MANAGER_PROTOTYPE & 
getPrimitiveManager () const
SIMD_FORCE_INLINE void setPrimitiveManager (const _GIM_PRIMITIVE_MANAGER_PROTOTYPE &primitive_manager)
SIMD_FORCE_INLINE bool boxQuery (const GIM_AABB &box, gim_array< GUINT > &collided_results) const
 returns the indices of the primitives in the m_primitive_manager
SIMD_FORCE_INLINE bool boxQueryTrans (const GIM_AABB &box, const btTransform &transform, gim_array< GUINT > &collided_results) const
 returns the indices of the primitives in the m_primitive_manager
SIMD_FORCE_INLINE void buildSet ()
 this rebuild the entire set
SIMD_FORCE_INLINE GUINT getLeftNodeIndex (GUINT nodeindex) const
SIMD_FORCE_INLINE void getNodeBound (GUINT nodeindex, GIM_AABB &bound) const
SIMD_FORCE_INLINE GUINT getNodeCount () const
 node count
SIMD_FORCE_INLINE GUINT getNodeData (GUINT nodeindex) const
SIMD_FORCE_INLINE void getNodeTriangle (GUINT nodeindex, GIM_TRIANGLE &triangle) const
SIMD_FORCE_INLINE GUINT getRightNodeIndex (GUINT nodeindex) const
SIMD_FORCE_INLINE GUINT getScapeNodeIndex (GUINT nodeindex) const
SIMD_FORCE_INLINE bool hasHierarchy () const
 tells if this set has hierarcht
SIMD_FORCE_INLINE bool isLeafNode (GUINT nodeindex) const
 tells if the node is a leaf
SIMD_FORCE_INLINE bool isTrimesh () const
 tells if this set is a trimesh
SIMD_FORCE_INLINE bool rayQuery (const btVector3 &ray_dir, const btVector3 &ray_origin, gim_array< GUINT > &collided_results) const
 returns the indices of the primitives in the m_primitive_manager
SIMD_FORCE_INLINE void setNodeBound (GUINT nodeindex, const GIM_AABB &bound)
SIMD_FORCE_INLINE void update ()
 this attemps to refit the box set.

Protected Member Functions

SIMD_FORCE_INLINE void refit ()

Protected Attributes

_GIM_BOX_TREE_PROTOTYPE m_box_tree
_GIM_PRIMITIVE_MANAGER_PROTOTYPE m_primitive_manager

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index