valSPH
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
SpatialIndex.h
Go to the documentation of this file.
1
10
#ifndef __SpatialIndex_h__
11
#define __SpatialIndex_h__
12
13
14
#include <vector>
15
#include <list>
16
#include "
Particle.h
"
17
18
19
using namespace
std;
20
21
22
class
SpatialIndex
{
23
24
25
protected
:
26
27
28
vector<double>
qiMin
;
29
vector<double>
qiMax
;
30
double
smoothingLength
;
31
32
33
public
:
34
35
39
SpatialIndex
();
40
41
49
SpatialIndex
(
50
vector<double> qiMin,
51
vector<double> qiMax,
52
double
smoothingLength
53
);
54
55
61
virtual
list<Particle> getNNP(
Particle
particle, vector<Particle> particles) = 0;
62
63
69
virtual
void
update(vector<Particle> particles) = 0;
70
71
75
~
SpatialIndex
();
76
77
};
78
79
80
#endif
valCode
repository
valSPH
src
SpatialIndex.h
Generated on Fri Nov 23 2012 19:13:59 for valSPH by
1.8.2