xc
PointCloud2d.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // xc utils library; general purpose classes and functions.
4 //
5 // Copyright (C) Luis C. PĂ©rez Tato
6 //
7 // XC utils is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // This software is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program.
19 // If not, see <http://www.gnu.org/licenses/>.
20 //----------------------------------------------------------------------------
21 //PointCloud2d.h
22 
23 #ifndef POINTCLOUD2D_H
24 #define POINTCLOUD2D_H
25 
26 #include "utility/geom/lists/PolyPos.h"
27 #include "utility/geom/pos_vec/Pos2d.h"
28 
29 class PrincipalAxes2D;
30 class Quadrilateral2d;
31 class Ref2d2d;
32 
34 //
36 class PointCloud2d : public PolyPos<Pos2d>
37  {
38  public:
39  PointCloud2d(void);
40  explicit PointCloud2d(const std::deque<Pos2d> &);
41  explicit PointCloud2d(const boost::python::list &);
43 
46  };
47 
48 #endif
49 
50 
51 
52 
53 
54 
PointCloud2d(void)
Constructor.
Definition: PointCloud2d.cc:31
Base class for position lists.
Definition: PolyPos.h:37
Principals axes of inertia in planar geometry.
Definition: PrincipalAxes2D.h:34
Quadrilateral2d getOrientedBoundingBox(void) const
Return the oriented bounding box that contains all the points in the cloud.
Definition: PointCloud2d.cc:95
PrincipalAxes2D getPrincipalAxes(void) const
Return the principal axes oriented according to the distribution of the points in space...
Definition: PointCloud2d.cc:44
Base class for position lists.
Definition: PointCloud2d.h:36
Two-dimensional reference system defined in a two-dimensional space.
Definition: Ref2d2d.h:39
Quadrilateral on a bi-dimensional space.
Definition: Quadrilateral2d.h:45