fw4spl
ools/include/fwDataTools/helper/PointList.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2017-2018.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #pragma once
8 
9 #include "fwDataTools/config.hpp"
10 
11 #include <fwData/Array.hpp>
12 #include <fwData/PointList.hpp>
13 #include <fwData/TransformationMatrix3D.hpp>
14 
15 namespace fwDataTools
16 {
17 namespace helper
18 {
19 
23 class FWDATATOOLS_CLASS_API PointList
24 {
25 
26 public:
27 
29  FWDATATOOLS_API PointList();
30 
32  FWDATATOOLS_API ~PointList();
33 
40  FWDATATOOLS_API static ::fwData::Array::sptr
41  computeDistance(::fwData::PointList::sptr _pointList1, ::fwData::PointList::sptr _pointList2);
42 
48  FWDATATOOLS_API static void transform(::fwData::PointList::sptr& _pointList,
49  const ::fwData::TransformationMatrix3D::csptr& _matrix);
50 
58  FWDATATOOLS_API static void associate(const ::fwData::PointList::csptr& _pointList1,
59  ::fwData::PointList::sptr _pointList2);
60 
68  FWDATATOOLS_API static const ::fwData::Point::sptr removeClosestPoint(::fwData::PointList::sptr& _pointList,
69  const ::fwData::Point::sptr& _point,
70  float _delta);
71 
72 };
73 
74 } // namespace helper
75 } // namespace fwDataTools
The namespace fwDataTools contains classes which provide helpers to manipulate fwData::Object. *.
Defines a helper to modify a fwData::PointList.