85 Base(minimum, maximum)
137 if (position[i] <
min_[i] || position[i] >
max_[i])
158 if (bounding_box.
min_[i] >
max_[i])
return false;
160 if (bounding_box.
max_[i] <
min_[i])
return false;
168 for (
UInt i = 0; i != D; i++)
190 os <<
"--DBOUNDINGBOX BEGIN--" << std::endl;
191 os <<
"MIN --> " << bounding_box.
minPosition() << std::endl;
192 os <<
"MAX --> " << bounding_box.
maxPosition() << std::endl;
193 os <<
"--DBOUNDINGBOX END--" << std::endl;
A D-dimensional bounding box.
Definition: DBoundingBox.h:27
PositionType min_
lower left point
Definition: DIntervalBase.h:336
DBoundingBox()
Default constructor.
Definition: DBoundingBox.h:53
bool encloses(const PositionType &position) const
Checks whether this range contains a certain point.
Definition: DBoundingBox.h:133
Base::PositionType PositionType
Position type.
Definition: DBoundingBox.h:40
DBoundingBox(const DBoundingBox &rhs)
Copy constructor.
Definition: DBoundingBox.h:59
std::ostream & operator<<(std::ostream &os, const DBoundingBox< D > &bounding_box)
Print the contents to a stream.
Definition: DBoundingBox.h:188
PositionType max_
upper right point
Definition: DIntervalBase.h:339
bool encloses(CoordinateType x, CoordinateType y) const
2D-version encloses(x,y) is for convenience only
Definition: DBoundingBox.h:146
bool operator==(const DBoundingBox &rhs) const
Equality operator.
Definition: DBoundingBox.h:116
bool operator==(const Base &rhs) const
Equality operator.
Definition: DBoundingBox.h:122
DBoundingBox(const PositionType &minimum, const PositionType &maximum)
Constructor from two positions.
Definition: DBoundingBox.h:84
@ DIMENSION
Definition: DBoundingBox.h:36
Internal::DIntervalBase< D > Base
Base class type.
Definition: DBoundingBox.h:38
Base::CoordinateType CoordinateType
Coordinate type of the positions.
Definition: DBoundingBox.h:42
void enlarge(CoordinateType x, CoordinateType y)
Enlarges the bounding box such that it contains a position specified by two coordinates.
Definition: DBoundingBox.h:105
DBoundingBox & operator=(const DBoundingBox &rhs)
Assignment operator.
Definition: DBoundingBox.h:65
bool intersects(const DBoundingBox &bounding_box) const
Definition: DBoundingBox.h:154
bool isEmpty() const
Test if bounding box is empty.
Definition: DBoundingBox.h:166
DBoundingBox & operator=(const Base &rhs)
Assignment operator for the base class.
Definition: DBoundingBox.h:72
~DBoundingBox()
Destructor.
Definition: DBoundingBox.h:79
void enlarge(const PositionType &p)
Enlarges the bounding box such that it contains a position.
Definition: DBoundingBox.h:95
A base class for D-dimensional interval.
Definition: DIntervalBase.h:30
PositionType min_
lower left point
Definition: DIntervalBase.h:336
DIntervalBase & operator=(const DIntervalBase &rhs)
Assignment operator.
Definition: DIntervalBase.h:70
PositionType::CoordinateType CoordinateType
Coordinate type of the positions.
Definition: DIntervalBase.h:42
PositionType const & maxPosition() const
Accessor to maximum position.
Definition: DIntervalBase.h:104
PositionType max_
upper right point
Definition: DIntervalBase.h:339
bool operator==(const DIntervalBase &rhs) const
Equality operator.
Definition: DIntervalBase.h:169
DPosition< D > PositionType
Position type.
Definition: DIntervalBase.h:40
PositionType const & minPosition() const
Accessor to minimum position.
Definition: DIntervalBase.h:98
unsigned int UInt
Unsigned integer type.
Definition: Types.h:64
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19