fw4spl
fwDataTools::helper::PointList Class Reference

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...
 

Detailed Description

Defines a helper to modify a fwData::PointList.

Definition at line 23 of file ools/include/fwDataTools/helper/PointList.hpp.

Member Function Documentation

void fwDataTools::helper::PointList::associate ( const ::fwData::PointList::csptr &  _pointList1,
::fwData::PointList::sptr  _pointList2 
)
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.

Parameters
[in]_pointList1first pointlist
[in]_pointList2pointlist that will be re-ordered

Definition at line 88 of file ools/src/fwDataTools/helper/PointList.cpp.

References SLM_ASSERT.

fwData::Array::sptr fwDataTools::helper::PointList::computeDistance ( ::fwData::PointList::sptr  _pointList1,
::fwData::PointList::sptr  _pointList2 
)
static

Computes the point-to-point distance between 2 pointlists.

Parameters
[in]_pointList1first point list
[in]_pointList2second point list
Returns
array of the size of one the pointlists (they must have the same size)

Definition at line 40 of file ools/src/fwDataTools/helper/PointList.cpp.

References fwDataTools::helper::Array::begin(), and SLM_ASSERT.

+ Here is the call graph for this function:

const ::fwData::Point::sptr fwDataTools::helper::PointList::removeClosestPoint ( ::fwData::PointList::sptr &  _pointList,
const ::fwData::Point::sptr &  _point,
float  _delta 
)
static

removeClosestPoint: removes the closest point from a reference point

Parameters
[in]_pointListthe point list
[in]_pointused to find the closest point in the list of points
[in]_deltathe maximum tolerance between the reference point and the point to find
Returns
the removed point or nullptr if no point has been removed

Definition at line 150 of file ools/src/fwDataTools/helper/PointList.cpp.

void fwDataTools::helper::PointList::transform ( ::fwData::PointList::sptr &  _pointList,
const ::fwData::TransformationMatrix3D::csptr &  _matrix 
)
static

Transform a pointList with a transformation matrix.

Parameters
[in]_pointListpointlist to be transformed
[in]_matrixtransformation to apply to each points in pointlist

Definition at line 71 of file ools/src/fwDataTools/helper/PointList.cpp.

References fwDataTools::TransformationMatrix3D::multiply().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: