neoGFX
Cross-platform C++ app/game engine
|
#include <aabb_octree.hpp>
Public Types | |
typedef Collider | collider_type |
typedef Allocator | allocator_type |
typedef allocator_type::pointer | pointer |
typedef allocator_type::const_pointer | const_pointer |
typedef allocator_type::reference | reference |
typedef allocator_type::const_reference | const_reference |
typedef const void * | const_iterator |
typedef void * | iterator |
Public Member Functions | |
aabb_octree (i_ecs &iEcs, const aabb &aRootAabb=aabb{ vec3{-4096.0, -4096.0, -4096.0}, vec3{4096.0, 4096.0, 4096.0} }, scalar aMinimumOctantSize=16.0, const allocator_type &aAllocator=allocator_type{}) | |
scalar | minimum_octant_size () const |
void | full_update () |
void | dynamic_update () |
template<typename CollisionAction > | |
void | collisions (CollisionAction aCollisionAction) const |
template<typename ResultContainer > | |
void | pick (const vec3 &aPoint, ResultContainer &aResult, std::function< bool(entity_id aMatch, const vec3 &aPoint)> aColliderPredicate=[](entity_id, const vec3 &) { return true;}) const |
template<typename ResultContainer > | |
void | pick (const vec2 &aPoint, ResultContainer &aResult, std::function< bool(entity_id aMatch, const vec2 &aPoint)> aColliderPredicate=[](entity_id, const vec2 &) { return true;}) const |
template<typename Visitor > | |
void | visit_aabbs (const Visitor &aVisitor) const |
void | insert (reference aItem) |
void | remove (reference aItem) |
uint32_t | count () const |
uint32_t | depth () const |
const node & | root_node () const |
Definition at line 33 of file aabb_octree.hpp.
typedef Allocator neogfx::game::aabb_octree< Collider, BucketSize, Allocator >::allocator_type |
Definition at line 37 of file aabb_octree.hpp.
typedef Collider neogfx::game::aabb_octree< Collider, BucketSize, Allocator >::collider_type |
Definition at line 36 of file aabb_octree.hpp.
typedef const void* neogfx::game::aabb_octree< Collider, BucketSize, Allocator >::const_iterator |
Definition at line 43 of file aabb_octree.hpp.
typedef allocator_type::const_pointer neogfx::game::aabb_octree< Collider, BucketSize, Allocator >::const_pointer |
Definition at line 39 of file aabb_octree.hpp.
typedef allocator_type::const_reference neogfx::game::aabb_octree< Collider, BucketSize, Allocator >::const_reference |
Definition at line 41 of file aabb_octree.hpp.
typedef void* neogfx::game::aabb_octree< Collider, BucketSize, Allocator >::iterator |
Definition at line 44 of file aabb_octree.hpp.
typedef allocator_type::pointer neogfx::game::aabb_octree< Collider, BucketSize, Allocator >::pointer |
Definition at line 38 of file aabb_octree.hpp.
typedef allocator_type::reference neogfx::game::aabb_octree< Collider, BucketSize, Allocator >::reference |
Definition at line 40 of file aabb_octree.hpp.
|
inline |
Definition at line 435 of file aabb_octree.hpp.
|
inline |
Definition at line 472 of file aabb_octree.hpp.
|
inline |
Definition at line 536 of file aabb_octree.hpp.
|
inline |
Definition at line 540 of file aabb_octree.hpp.
|
inline |
Definition at line 462 of file aabb_octree.hpp.
|
inline |
Definition at line 451 of file aabb_octree.hpp.
|
inline |
Definition at line 527 of file aabb_octree.hpp.
|
inline |
Definition at line 447 of file aabb_octree.hpp.
|
inline |
Definition at line 512 of file aabb_octree.hpp.
|
inline |
Definition at line 502 of file aabb_octree.hpp.
|
inline |
Definition at line 531 of file aabb_octree.hpp.
|
inline |
Definition at line 545 of file aabb_octree.hpp.
|
inline |
Definition at line 522 of file aabb_octree.hpp.