fw4spl
|
Defines a helper to modify a fwData::PointList. More...
#include <PointList.hpp>
Public Member Functions | |
FWDATATOOLS_API | PointList () |
Constructor. Does nothing. | |
FWDATATOOLS_API | ~PointList () |
Destructor. Does nothing. | |
Static Public Member Functions | |
static FWDATATOOLS_API::fwData::Array::sptr | computeDistance (::fwData::PointList::sptr _pointList1,::fwData::PointList::sptr _pointList2) |
Computes the point-to-point distance between 2 pointlists. More... | |
static FWDATATOOLS_API void | transform (::fwData::PointList::sptr &_pointList, const ::fwData::TransformationMatrix3D::csptr &_matrix) |
Transform a pointList with a transformation matrix. More... | |
static FWDATATOOLS_API void | associate (const ::fwData::PointList::csptr &_pointList1,::fwData::PointList::sptr _pointList2) |
Associate 2 pointLists: Take 2 pointLists as input and re-order the second one, so that the points at the same index on both lists are the closest to each other. More... | |
static FWDATATOOLS_APIconst::fwData::Point::sptr | removeClosestPoint (::fwData::PointList::sptr &_pointList, const ::fwData::Point::sptr &_point, float _delta) |
removeClosestPoint: removes the closest point from a reference point More... | |
Defines a helper to modify a fwData::PointList.
Definition at line 23 of file ools/include/fwDataTools/helper/PointList.hpp.
|
static |
Associate 2 pointLists: Take 2 pointLists as input and re-order the second one, so that the points at the same index on both lists are the closest to each other.
[in] | _pointList1 | first pointlist |
[in] | _pointList2 | pointlist that will be re-ordered |
Definition at line 88 of file ools/src/fwDataTools/helper/PointList.cpp.
References SLM_ASSERT.
|
static |
Computes the point-to-point distance between 2 pointlists.
[in] | _pointList1 | first point list |
[in] | _pointList2 | second point list |
Definition at line 40 of file ools/src/fwDataTools/helper/PointList.cpp.
References fwDataTools::helper::Array::begin(), and SLM_ASSERT.
|
static |
removeClosestPoint: removes the closest point from a reference point
[in] | _pointList | the point list |
[in] | _point | used to find the closest point in the list of points |
[in] | _delta | the maximum tolerance between the reference point and the point to find |
Definition at line 150 of file ools/src/fwDataTools/helper/PointList.cpp.
|
static |
Transform a pointList with a transformation matrix.
[in] | _pointList | pointlist to be transformed |
[in] | _matrix | transformation to apply to each points in pointlist |
Definition at line 71 of file ools/src/fwDataTools/helper/PointList.cpp.
References fwDataTools::TransformationMatrix3D::multiply().