15#include <OpenMS/OpenMSConfig.h>
56 typedef std::map<PointType::CoordinateType, DBoundingBox<1> >
HullPointType;
153 std::size_t seed = 0;
157 const auto& map_points = hull.getMapPoints();
159 for (
const auto& entry : map_points)
166 const auto& outer_points = hull.getHullPoints();
168 for (
const auto& point : outer_points)
Definition ConvexHull2D.h:49
ConvexHull2D()
default constructor
bool operator==(const ConvexHull2D &rhs) const
equality operator
bool addPoint(const PointType &point)
const HullPointType & getMapPoints() const
Accessor for the internal map representation (RT -> m/z bounding box)
Definition ConvexHull2D.h:83
ConvexHull2D & operator=(const ConvexHull2D &rhs)
assignment operator
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
ConvexHull2D & operator=(ConvexHull2D &&) &=default
move assignment operator
PointArrayType::size_type SizeType
Definition ConvexHull2D.h:53
PointArrayType outer_points_
just the list of points of the outer hull (derived from map_points_ or given by user)
Definition ConvexHull2D.h:140
DPosition< 2 > PointType
Definition ConvexHull2D.h:51
PointArrayType::const_iterator PointArrayTypeConstIterator
Definition ConvexHull2D.h:54
const PointArrayType & getHullPoints() const
accessor for the outer points
std::vector< PointType > PointArrayType
Definition ConvexHull2D.h:52
HullPointType map_points_
internal structure maintaining the hull and enabling queries to encloses()
Definition ConvexHull2D.h:137
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()
std::map< PointType::CoordinateType, DBoundingBox< 1 > > HullPointType
Definition ConvexHull2D.h:56
ConvexHull2D(const ConvexHull2D &)=default
Copy constructor.
A D-dimensional bounding box.
Definition DBoundingBox.h:30
Representation of a coordinate in D-dimensional space.
Definition DPosition.h:32
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::size_t hash_int(T value) noexcept
Hash for an integer type.
Definition HashUtils.h:107
void hash_combine(std::size_t &seed, std::size_t value) noexcept
Combine a hash value with additional data using golden ratio mixing.
Definition HashUtils.h:87
std::size_t hash_float(T value) noexcept
Hash for a floating point type (float or double).
Definition HashUtils.h:142
std::size_t operator()(const OpenMS::ConvexHull2D &hull) const noexcept
Definition ConvexHull2D.h:151