111 Base(minimum, maximum)
163 if (position[i] <
min_[i] || position[i] >
max_[i])
184 if (bounding_box.
min_[i] >
max_[i])
return false;
186 if (bounding_box.
max_[i] <
min_[i])
return false;
194 for (
UInt i = 0; i != D; i++)
216 os <<
"--DBOUNDINGBOX BEGIN--" << std::endl;
217 os <<
"MIN --> " << bounding_box.
minPosition() << std::endl;
218 os <<
"MAX --> " << bounding_box.
maxPosition() << std::endl;
219 os <<
"--DBOUNDINGBOX END--" << std::endl;
A D-dimensional bounding box.
Definition: DBoundingBox.h:53
PositionType min_
lower left point
Definition: DIntervalBase.h:362
DBoundingBox()
Default constructor.
Definition: DBoundingBox.h:79
bool encloses(const PositionType &position) const
Checks whether this range contains a certain point.
Definition: DBoundingBox.h:159
Base::PositionType PositionType
Position type.
Definition: DBoundingBox.h:66
DBoundingBox(const DBoundingBox &rhs)
Copy constructor.
Definition: DBoundingBox.h:85
std::ostream & operator<<(std::ostream &os, const DBoundingBox< D > &bounding_box)
Print the contents to a stream.
Definition: DBoundingBox.h:214
PositionType max_
upper right point
Definition: DIntervalBase.h:365
bool encloses(CoordinateType x, CoordinateType y) const
2D-version encloses(x,y) is for convenience only
Definition: DBoundingBox.h:172
bool operator==(const DBoundingBox &rhs) const
Equality operator.
Definition: DBoundingBox.h:142
bool operator==(const Base &rhs) const
Equality operator.
Definition: DBoundingBox.h:148
DBoundingBox(const PositionType &minimum, const PositionType &maximum)
Constructor from two positions.
Definition: DBoundingBox.h:110
@ DIMENSION
Definition: DBoundingBox.h:62
Internal::DIntervalBase< D > Base
Base class type.
Definition: DBoundingBox.h:64
Base::CoordinateType CoordinateType
Coordinate type of the positions.
Definition: DBoundingBox.h:68
void enlarge(CoordinateType x, CoordinateType y)
Enlarges the bounding box such that it contains a position specified by two coordinates.
Definition: DBoundingBox.h:131
DBoundingBox & operator=(const DBoundingBox &rhs)
Assignment operator.
Definition: DBoundingBox.h:91
bool intersects(const DBoundingBox &bounding_box) const
Definition: DBoundingBox.h:180
bool isEmpty() const
Test if bounding box is empty.
Definition: DBoundingBox.h:192
DBoundingBox & operator=(const Base &rhs)
Assignment operator for the base class.
Definition: DBoundingBox.h:98
~DBoundingBox()
Destructor.
Definition: DBoundingBox.h:105
void enlarge(const PositionType &p)
Enlarges the bounding box such that it contains a position.
Definition: DBoundingBox.h:121
A base class for D-dimensional interval.
Definition: DIntervalBase.h:56
PositionType min_
lower left point
Definition: DIntervalBase.h:362
DIntervalBase & operator=(const DIntervalBase &rhs)
Assignment operator.
Definition: DIntervalBase.h:96
PositionType::CoordinateType CoordinateType
Coordinate type of the positions.
Definition: DIntervalBase.h:68
PositionType const & maxPosition() const
Accessor to maximum position.
Definition: DIntervalBase.h:130
PositionType max_
upper right point
Definition: DIntervalBase.h:365
bool operator==(const DIntervalBase &rhs) const
Equality operator.
Definition: DIntervalBase.h:195
DPosition< D > PositionType
Position type.
Definition: DIntervalBase.h:66
PositionType const & minPosition() const
Accessor to minimum position.
Definition: DIntervalBase.h:124
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48