23 #include "hurricane/Point.h"
73 public:
Point getCornerBL()
const {
return Point(_xMin,_yMin); }
74 public: Point getCornerTL()
const {
return Point(_xMin,_yMax); }
75 public: Point getCornerTR()
const {
return Point(_xMax,_yMax); }
76 public: Point getCornerBR()
const {
return Point(_xMax,_yMin); }
87 public:
DbU::Unit manhattanDistance(
const Box& box)
const;
113 public:
Box& shrinkByFactor(
double factor);
126 public:
string _getTypeName()
const {
return _TName(
"Box"); };
127 public:
string _getString()
const;
128 public: Record* _getRecord()
const;
129 public:
void toJson(JsonWriter*)
const;
134 class JsonBox :
public JsonObject {
137 public:
static void initialize();
138 public: JsonBox(
unsigned long);
139 public:
virtual string getTypeName()
const;
140 public:
virtual JsonBox* clone(
unsigned long)
const;
141 public:
virtual void toData(JsonStack&);
Box description (API)
Definition: Box.h:31
Box & operator=(const Box &box)
const DbU::Unit & getYMax() const
Definition: Box.h:68
Box & merge(const Box &box)
Box(const DbU::Unit &x1, const DbU::Unit &y1, const DbU::Unit &x2, const DbU::Unit &y2)
bool contains(const Point &point) const
Box getUnion(const Box &box) const
bool operator==(const Box &box) const
Box(const Point &point1, const Point &point2)
const DbU::Unit & getYMin() const
Definition: Box.h:66
DbU::Unit getHalfHeight() const
Definition: Box.h:81
Box getIntersection(const Box &box) const
DbU::Unit getYCenter() const
Definition: Box.h:71
Box & inflate(const DbU::Unit &dx, const DbU::Unit &dy)
bool isConstrainedBy(const Box &box) const
bool operator!=(const Box &box) const
const DbU::Unit & getXMax() const
Definition: Box.h:67
DbU::Unit getHeight() const
Definition: Box.h:80
DbU::Unit getHalfWidth() const
Definition: Box.h:79
Box & inflate(const DbU::Unit &d)
DbU::Unit getXCenter() const
Definition: Box.h:70
Box & translate(const DbU::Unit &dx, const DbU::Unit &dy)
Box & merge(const DbU::Unit &x, const DbU::Unit &y)
Point getCenter() const
Definition: Box.h:72
bool contains(const Box &box) const
const DbU::Unit & getXMin() const
Definition: Box.h:65
Box & merge(const DbU::Unit &x1, const DbU::Unit &y1, const DbU::Unit &x2, const DbU::Unit &y2)
bool contains(const DbU::Unit &x, const DbU::Unit &y) const
DbU::Unit getWidth() const
Definition: Box.h:78
bool intersect(const Box &box) const
Box & merge(const Point &point)
Box(const DbU::Unit &x, const DbU::Unit &y)
Box & inflate(const DbU::Unit &dxMin, const DbU::Unit &dyMin, const DbU::Unit &dxMax, const DbU::Unit &dyMax)
std::int64_t Unit
Definition: DbU.h:67
Point description (API)
Definition: Point.h:32
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5