载入中...
搜索中...
未找到
eve::spatial::Spatial类 参考

Spatial index module — broad-phase / map culling structures. Script: spatial <- eve.Spatial(); 更多...

#include <Spatial.h>

类 eve::spatial::Spatial 继承关系图:
eve::Module

Public 成员函数

 Module_REG (Spatial)
 
 Spatial ()=default
 Default-constructs the spatial module.
 
 ~Spatial () override=default
 No owned indexes; factories return caller-owned pointers.
 
QuadTree * newQuadTree (float minX, float minY, float maxX, float maxY, int maxDepth=8, int maxPerNode=8)
 Creates a QuadTree over the given 2D bounds. @ownership Caller deletes.
 
Octree * newOctree (float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int maxDepth=8, int maxPerNode=8)
 Creates an Octree over the given 3D bounds. @ownership Caller deletes.
 
SpatialHash2D * newSpatialHash2D (float cellSize=64.f)
 Creates a 2D spatial hash with the given cell size. @ownership Caller deletes.
 
SpatialHash3D * newSpatialHash3D (float cellSize=64.f)
 Creates a 3D spatial hash with the given cell size. @ownership Caller deletes.
 
BSPTree2D * newBSPTree2D (float minX, float minY, float maxX, float maxY, int maxDepth=12, int maxPerNode=8)
 Creates a 2D BSP/kd tree over the given bounds. @ownership Caller deletes.
 
BSPTree3D * newBSPTree3D (float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int maxDepth=12, int maxPerNode=8)
 Creates a 3D BSP/kd tree over the given bounds. @ownership Caller deletes.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

Spatial index module — broad-phase / map culling structures. Script: spatial <- eve.Spatial();

Provides 2D/3D QuadTree, Octree, SpatialHash, and BSP (kd-style) factories. No overloads: use distinct *2D / *3D type names.

在文件 Spatial.h 第 21 行定义.

构造及析构函数说明

◆ Spatial()

eve::spatial::Spatial::Spatial ( )
default

Default-constructs the spatial module.

◆ ~Spatial()

eve::spatial::Spatial::~Spatial ( )
overridedefault

No owned indexes; factories return caller-owned pointers.

成员函数说明

◆ Module_REG()

eve::spatial::Spatial::Module_REG ( Spatial  )

◆ newBSPTree2D()

BSPTree2D * eve::spatial::Spatial::newBSPTree2D ( float  minX,
float  minY,
float  maxX,
float  maxY,
int  maxDepth = 12,
int  maxPerNode = 8 
)

Creates a 2D BSP/kd tree over the given bounds. @ownership Caller deletes.

在文件 Spatial.cpp 第 30 行定义.

◆ newBSPTree3D()

BSPTree3D * eve::spatial::Spatial::newBSPTree3D ( float  minX,
float  minY,
float  minZ,
float  maxX,
float  maxY,
float  maxZ,
int  maxDepth = 12,
int  maxPerNode = 8 
)

Creates a 3D BSP/kd tree over the given bounds. @ownership Caller deletes.

在文件 Spatial.cpp 第 35 行定义.

◆ newOctree()

Octree * eve::spatial::Spatial::newOctree ( float  minX,
float  minY,
float  minZ,
float  maxX,
float  maxY,
float  maxZ,
int  maxDepth = 8,
int  maxPerNode = 8 
)

Creates an Octree over the given 3D bounds. @ownership Caller deletes.

在文件 Spatial.cpp 第 21 行定义.

◆ newQuadTree()

QuadTree * eve::spatial::Spatial::newQuadTree ( float  minX,
float  minY,
float  maxX,
float  maxY,
int  maxDepth = 8,
int  maxPerNode = 8 
)

Creates a QuadTree over the given 2D bounds. @ownership Caller deletes.

在文件 Spatial.cpp 第 16 行定义.

◆ newSpatialHash2D()

SpatialHash2D * eve::spatial::Spatial::newSpatialHash2D ( float  cellSize = 64.f)

Creates a 2D spatial hash with the given cell size. @ownership Caller deletes.

在文件 Spatial.cpp 第 26 行定义.

◆ newSpatialHash3D()

SpatialHash3D * eve::spatial::Spatial::newSpatialHash3D ( float  cellSize = 64.f)

Creates a 3D spatial hash with the given cell size. @ownership Caller deletes.

在文件 Spatial.cpp 第 28 行定义.


该类的文档由以下文件生成: