179template<
typename charT,
typename traits >
180inline std::basic_ostream<charT, traits> &
operator <<(
181 std::basic_ostream<charT, traits> & stream,
const basegfx::B2IBox& box )
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &stream, const basegfx::B2IBox &box)
A two-dimensional interval over integers.
sal_Int32 getMaxX() const
get upper bound of the set. returns arbitrary values for empty sets.
sal_Int32 getMinX() const
get lower bound of the set. returns arbitrary values for empty sets.
void expand(const B2ITuple &rTuple)
add point to the set, expanding as necessary
bool isEmpty() const
Check if the interval set is empty.
sal_Int64 getHeight() const
return difference between upper and lower Y value. returns 0 for empty sets.
void intersect(const B2IBox &rBox)
calc set intersection
B2IBox(sal_Int32 x1, sal_Int32 y1, sal_Int32 x2, sal_Int32 y2)
Create proper interval between the two given points.
bool isInside(const B2ITuple &rTuple) const
yields true if point is contained in set
B2IBox(const B2ITuple &rTuple1, const B2ITuple &rTuple2)
Create proper interval between the two given points.
bool operator==(const B2IBox &rBox) const
B2IBox(const B2ITuple &rTuple)
Create degenerate interval that's still empty.
sal_Int32 getMaxY() const
get upper bound of the set. returns arbitrary values for empty sets.
bool operator!=(const B2IBox &rBox) const
sal_Int32 getMinY() const
get lower bound of the set. returns arbitrary values for empty sets.
sal_Int64 getWidth() const
return difference between upper and lower X value. returns 0 for empty sets.
Base class for all Points/Vectors with two sal_Int32 values.
Explicitly different from BasicRange, handling the inside predicates differently.
bool isInside(sal_Int32 nValue) const
void intersect(const BasicRange &rRange)
Traits::DifferenceType getRange() const
TYPE getX() const
Get X-Coordinate of 2D Tuple.
TYPE getY() const
Get Y-Coordinate of 2D Tuple.
Reference< XOutputStream > stream