14 #include <OpenMS/OpenMSConfig.h>
54 typedef std::map<PointType::CoordinateType, DBoundingBox<1> >
HullPointType;
A 2-dimensional hull representation in [counter]clockwise direction - depending on axis labelling.
Definition: ConvexHull2D.h:47
ConvexHull2D()
default constructor
bool operator==(const ConvexHull2D &rhs) const
equality operator
bool addPoint(const PointType &point)
ConvexHull2D(ConvexHull2D &&)=default
Move constructor.
void setHullPoints(const PointArrayType &points)
accessor for the outer(!) points (no checking is performed if this is actually a convex hull)
DBoundingBox< 2 > getBoundingBox() const
returns the bounding box of the feature hull points
PointArrayType::size_type SizeType
Definition: ConvexHull2D.h:51
PointArrayType outer_points_
just the list of points of the outer hull (derived from map_points_ or given by user)
Definition: ConvexHull2D.h:135
const PointArrayType & getHullPoints() const
accessor for the outer points
DPosition< 2 > PointType
Definition: ConvexHull2D.h:49
PointArrayType::const_iterator PointArrayTypeConstIterator
Definition: ConvexHull2D.h:52
std::vector< PointType > PointArrayType
Definition: ConvexHull2D.h:50
HullPointType map_points_
internal structure maintaining the hull and enabling queries to encloses()
Definition: ConvexHull2D.h:132
ConvexHull2D & operator=(const ConvexHull2D &rhs)
assignment operator
void clear()
removes all points
Size compress()
Allows to reduce the disk/memory footprint of a hull.
void addPoints(const PointArrayType &points)
bool encloses(const PointType &point) const
returns if the point lies in the feature hull
void expandToBoundingBox()
Expand a convex hull to its bounding box.
std::map< PointType::CoordinateType, DBoundingBox< 1 > > HullPointType
Definition: ConvexHull2D.h:54
ConvexHull2D & operator=(ConvexHull2D &&) &=default
move assignment operator
ConvexHull2D(const ConvexHull2D &)=default
Copy constructor.
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22