Plasma Engine
2.0
Loading...
Searching...
No Matches
PointOfInterestGraph.h
1
#pragma once
2
3
#include <Foundation/Math/Vec3.h>
4
#include <GameComponentsPlugin/GameComponentsDLL.h>
5
#include <Utilities/DataStructures/DynamicOctree.h>
6
7
template
<
typename
POINTTYPE>
8
class
plPointOfInterestGraph
9
{
10
public
:
11
void
Initialize(
const
plVec3
& vCenter,
const
plVec3
& vHalfExtents,
float
fCellSize = 1.0f);
12
13
POINTTYPE& AddPoint(
const
plVec3
& vPosition);
14
15
void
FindPointsOfInterest(
const
plVec3
& vPosition,
float
fRadius,
plDynamicArray<plUInt32>
& out_points)
const
;
16
17
const
plDeque<POINTTYPE>
& GetPoints()
const
{
return
m_Points; }
18
plDeque<POINTTYPE>
& AccessPoints() {
return
m_Points; }
19
20
private
:
21
plDeque<POINTTYPE>
m_Points;
22
plDynamicOctree
m_Octree;
23
};
24
25
#include <RecastPlugin/Components/PointOfInterestGraph_inl.h>
plDeque
Definition
Deque.h:270
plDynamicArray
Definition
DynamicArray.h:81
plDynamicOctree
A loose Octree implementation that is very lightweight on RAM.
Definition
DynamicOctree.h:32
plPointOfInterestGraph
Definition
PointOfInterestGraph.h:9
plVec3Template< float >
Code
EnginePlugins
RecastPlugin
Components
PointOfInterestGraph.h
Generated by
1.11.0