ESyS-Particle  2.3
PointCloud.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef __POINTCLOUD_H
14 #define __POINTCLOUD_H
15 
16 // --- project includes ---
17 #include "Foundation/vec3.h"
18 #include "Geometry/Plane3D.h"
19 
20 // --- STL includes ---
21 #include <vector>
22 
23 using std::vector;
24 
34 {
35  private:
36  vector<Vec3> m_points;
37 
38  public:
39  PointCloud();
40 
41  Vec3 getCenter();
42  void addPoint(const Vec3&);
44 };
45 
46 #endif // __POINTCLOUD_H
Definition: vec3.h:46
A class representing a cloud.of points.
Definition: PointCloud.h:33
Class representing a Plane3D.
Definition: Plane3D.h:28
Plane3D getFitPlane()
Definition: PointCloud.cpp:59
vector< Vec3 > m_points
Definition: PointCloud.h:36
void addPoint(const Vec3 &)
Definition: PointCloud.cpp:26
PointCloud()
Definition: PointCloud.cpp:18
Vec3 getCenter()
Definition: PointCloud.cpp:34