xc
Public Member Functions | List of all members
PointCloud2d Class Reference

Base class for position lists. More...

#include <PointCloud2d.h>

Inheritance diagram for PointCloud2d:
Inheritance graph
[legend]
Collaboration diagram for PointCloud2d:
Collaboration graph
[legend]

Public Member Functions

 PointCloud2d (void)
 Constructor.
 
 PointCloud2d (const std::deque< Pos2d > &)
 Constructor.
 
 PointCloud2d (const boost::python::list &)
 Constructor.
 
PrincipalAxes2D getPrincipalAxes (void) const
 Return the principal axes oriented according to the distribution of the points in space. More...
 
Quadrilateral2d getOrientedBoundingBox (const Ref2d2d &) const
 Return the oriented bounding box that contains all the points in the cloud and whose edges are parallel to the given reference. More...
 
Quadrilateral2d getOrientedBoundingBox (void) const
 Return the oriented bounding box that contains all the points in the cloud. More...
 
- Public Member Functions inherited from PolyPos< Pos2d >
 PolyPos (size_t n)
 
 PolyPos (size_t n, const Pos2d &p)
 
 PolyPos (const std::deque< Pos2d > &dq_pos)
 
Pos2d getFromPoint (void) const
 
Pos2d getToPoint (void) const
 
bool operator== (const PolyPos< Pos2d > &other) const
 
Pos2dAgrega (const Pos2d &p)
 
void Agrega (const PolyPos< Pos2d > &p)
 
void AgregaSiNuevo (const PolyPos< Pos2d > &p)
 
void AgregaSiNuevo (const Pos2d &)
 Appends the point to the list (if not already there).
 
void extend (InputIterator first, InputIterator last)
 Append the vertices between [first,last) to thebefore end of the list. More...
 
const_iterator find (const Pos2d &p) const
 
iterator find (const Pos2d &p)
 
bool In (const Pos2d &p) const
 Return true if the points is on en la lista.
 
void close (void)
 Close the point list (insert the first point as its last one)
 
bool isClosed (const GEOM_FT &tol=1e-6) const
 True if dist(lastPoint,firstPoint)< tol*length.
 
GEOM_FT getLength (void) const
 Return the length of the PolyPos.
 
std::vector< GEOM_FT > getLengths (void) const
 Return the lengths corresponding to each vertex.
 
boost::python::list getLengthsPy (void) const
 Return the lengths corresponding to each vertex in a Python list.
 
GEOM_FT getLengthUntilVertex (const_iterator) const
 Return the length of the PolyPos until the vertex pointed by the iterator. More...
 
const_iterator getSegmentAtLength (const GEOM_FT &s) const
 Return an iterator pointing to the vertex that is just before the point at a distance "s" measured along the polyline from its origin. More...
 
int getIndexOfSegmentAtLength (const GEOM_FT &s) const
 Return the index of the segment that lies at the point at a distance "s" measured along the polyline from its origin. More...
 
int getIndexOfSegmentAtParam (const GEOM_FT &lambda) const
 Return the index of the segment that lies at the point at a distance "lambda*L" measured along the polyline from its origin. More...
 
boost::python::list getIthCoordinates (unsigned short i) const
 Return the list of values for j-th coordinate.
 
GEOM_FT GetMax (unsigned short i) const
 Return the maximum value of j-th coordinate.
 
GEOM_FT GetMin (unsigned short i) const
 Return the minimum value of j-th coordinate.
 
PolyPos GetMayores (unsigned short int i, const GEOM_FT &d) const
 
PolyPos GetMenores (unsigned short int i, const GEOM_FT &d) const
 
Pos2d getCenterOfMass (void) const
 Return the center of mass del polígono.
 
Pos2d getWeightedCenterOfMass (const std::deque< GEOM_FT > &) const
 Return the center of mass del polígono.
 
PolyPos< Pos2dgetSwap (void) const
 Return a list with the elements in reverse order.
 
void swap (void)
 
std::deque< GEOM_FT > & GetSeparaciones (void) const
 Compute the distance from each point to the nearest one.
 
GEOM_FT GetSeparacionMedia (void) const
 Return the average distance between points.
 
iterator getNearestPoint (const Pos2d &)
 Returns the nearest point from those of the list.
 
const_iterator getNearestPoint (const Pos2d &) const
 Returns the nearest point from those of the list.
 
iterator getFarthestPoint (const Pos2d &)
 Returns the farthest point from those of the list.
 
const_iterator getFarthestPoint (const Pos2d &) const
 Returns the farthest point from those of the list.
 
virtual iterator getFarthestPointFromSegment (iterator it1, iterator it2, GEOM_FT &pMaxDist)
 
void simplify (GEOM_FT epsilon, iterator it1, iterator it2)
 Douglas Peucker algorithm implementation. More...
 
void simplify (GEOM_FT epsilon)
 Douglas Peucker algorithm implementation. More...
 
PolyPos< Pos2dgetSimplified (GEOM_FT epsilon) const
 ! More...
 
void removeRepeated (const GEOM_FT &tol=0.0)
 remove repeated vertexes. More...
 
void removeBackwardSegments (const GEOM_FT &tol)
 remove backward segments. More...
 
void Cat (const PolyPos< Pos2d > &l)
 
void Cat (inputIterator begin, inputIterator end)
 Insert the objects between [first,last).
 

Additional Inherited Members

- Public Types inherited from PolyPos< Pos2d >
typedef deque_pos::iterator iterator
 
typedef deque_pos::const_iterator const_iterator
 
typedef Pos2d ::vector vector
 
- Protected Types inherited from PolyPos< Pos2d >
typedef std::deque< Pos2ddeque_pos
 
- Protected Member Functions inherited from PolyPos< Pos2d >
void simplify_select (GEOM_FT epsilon, iterator it1, iterator it2, std::set< const_iterator > &selected)
 Douglas Peucker algorithm implementation. More...
 
void remove_selected (std::set< const_iterator > &selected)
 Removes the selected items. More...
 
void select_repeated (std::set< const_iterator > &selected, const GEOM_FT &tol=0.0)
 Select repeated vertexes. More...
 
void select_backward_segments (std::set< const_iterator > &selected, const GEOM_FT &tol)
 Select backward segments. More...
 
- Static Protected Member Functions inherited from PolyPos< Pos2d >
static GEOM_FT g (GEOM_FT v1, GEOM_FT v2)
 

Detailed Description

Base class for position lists.

Member Function Documentation

◆ getOrientedBoundingBox() [1/2]

Quadrilateral2d PointCloud2d::getOrientedBoundingBox ( const Ref2d2d ref) const

Return the oriented bounding box that contains all the points in the cloud and whose edges are parallel to the given reference.

◆ getOrientedBoundingBox() [2/2]

Quadrilateral2d PointCloud2d::getOrientedBoundingBox ( void  ) const

Return the oriented bounding box that contains all the points in the cloud.

◆ getPrincipalAxes()

PrincipalAxes2D PointCloud2d::getPrincipalAxes ( void  ) const

Return the principal axes oriented according to the distribution of the points in space.


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