7#ifndef __HDI_CORE_ARTBOARD_RECT__
8#define __HDI_CORE_ARTBOARD_RECT__
10#if defined(HDI_CORE_AIP_MODE)
165 virtual double top()
const;
511 friend aip::ArtboardRect* __accessImpl(
const ArtboardRect&);
512 friend ArtboardRect __accessCtor(
const aip::ArtboardRect&);
517 aip::ArtboardRect* __impl;
527 typedef std::unique_ptr<ArtboardRect> ArtboardRectUP;
528 typedef std::shared_ptr<ArtboardRect> ArtboardRectSP;
529 typedef std::weak_ptr<ArtboardRect> ArtboardRectWP;
531 extern aip::ArtboardRect* __accessImpl(
const ArtboardRect&);
532 extern ArtboardRect __accessCtor(
const aip::ArtboardRect&);
Describes an angle, and allows for easy conversion between various units.
Definition: hdicoreAngle.h:26
Describes a point on the Illustrator artboard.
Definition: hdicoreArtboardPoint.h:31
Describes a rectangular area on the Illustrator artboard.
Definition: hdicoreArtboardRect.h:28
virtual bool containsPoint(const ArtboardPoint &pt_) const
Gets whether a given point lies inside the target rect.
virtual ArtboardPoint pointFromPinPoint(const BoundsPinPointType pinPt_) const
Gets a "pin point" from the rect bounds.
virtual void enclosingEllipse(double &width__, double &height__) const
Gets the width and height of an ellipse that would enclose the rect.
ArtboardPoint origin
Origin point for the rect (top-left, when size.width and size.height are positive)
Definition: hdicoreArtboardRect.h:33
virtual void setBottom(const double bottom_)
Sets the position of the bottom bounding edge of the rectangle along the y-axis.
ArtboardRect(const ArtboardPoint &pt_, const Size &size_)
Constructor to create an ArtboardRect from an ArtboardPoint object and Size object.
virtual bool operator!=(const ArtboardRect &rhs_) const
Tests whether a given ArtboardRect object is not the same as another.
virtual ArtboardPoint bottomRight() const
Gets the bottom-right point of the rect.
static ArtboardRect XYWidthHeight(const double x_, const double y_, const double width_, const double height_)
"Named constructor" to create an ArtboardRect from an (x,y) top-left point and a width and height
virtual bool operator==(const ArtboardRect &rhs_) const
Tests whether a given ArtboardRect object is the same as another.
virtual bool equalWithinTol(const ArtboardRect &compare_, const double tol_) const
Gets whether a given rect is equal to the target rect, within a given tolerance.
virtual double perimeter() const
Gets the perimeter of the rect.
Size size
Dimensions of the rect.
Definition: hdicoreArtboardRect.h:38
virtual double area() const
Gets the area of the rect.
virtual ~ArtboardRect()
ArtboardRect destructor.
virtual ArtboardPoint topCenter() const
Gets the top-center point of the rect.
static ArtboardRect LeftTopRightBottom(const double left_, const double top_, const double right_, const double bottom_)
"Named constructor" to create an ArtboardRect from the values of its bounding edges
virtual RectLineIntersectionType lineIntersectionPoints(const ArtboardPoint &a_, const ArtboardPoint &b_, const Angle &angle_, ArtboardPoint &iPt1__, ArtboardPoint &iPt2__) const
Finds the intersection points on a rectangle, were it rotated, that a line has with it.
virtual double left() const
Gets the position of the left bounding edge of the rectangle along the x-axis.
virtual bool enclosePoint(const ArtboardPoint &pt_)
Enlarges the target rect, if necessary, to enclose a given point.
virtual ArtboardRect unionRects(const ArtboardRect &rect2_) const
Unions two rects, forming a rect that has bounds sufficient to enclose both initial rects.
virtual ArtboardPoint topLeft() const
Gets the top-left point of the rect.
virtual void setLeft(const double left_)
Sets the position of the left bounding edge of the rectangle along the x-axis.
virtual ArtboardPoint bottomCenter() const
Gets the bottom-center point of the rect.
ArtboardRect()
Default ArtboardRect constructor, sets the top-left to (0,0) and the width and height to 0.
virtual double right() const
Gets the position of the right bounding edge of the rectangle along the x-axis.
virtual ArtboardPoint midCenter() const
Gets the mid-center point of the rect.
ArtboardRect(const ArtboardPoint &tl_, const ArtboardPoint &br_)
Constructor to create an ArtboardRect object from top-left and bottom-right ArtboardPoint objects.
virtual ArtboardRect inset(const double x_, const double y_) const
Insets a rect by given amounts on the x- and y-axes (or expands if negative)
virtual ArtboardPoint midRight() const
Gets the mid-right point of the rect.
virtual ArtboardPoint midLeft() const
Gets the mid-left point of the rect.
virtual ArtboardRect scale(const double xScaler_, const double yScaler_) const
Scales the width and height of a rect by given amounts on the x- and y- axes.
virtual bool intersection(const ArtboardRect &rect2_, ArtboardRect &iRect__) const
Gets the intersection between two rects.
virtual ArtboardPoint topRight() const
Gets the top-right point of the rect.
virtual double top() const
Gets the position of the top bounding edge of the rectangle along the y-axis.
virtual RectLineIntersectionType lineIntersectionPoints(const ArtboardPoint &a_, const ArtboardPoint &b_, ArtboardPoint &iPt1__, ArtboardPoint &iPt2__) const
Finds the intersection points on a rectangle that a line has with it.
virtual void setTop(const double top_)
Sets the position of the top bounding edge of the rectangle along the y-axis.
virtual ArtboardPoint bottomLeft() const
Gets the bottom-left point of the rect.
virtual void setRight(const double right_)
Sets the position of the right bounding edge of the rectangle along the x-axis.
virtual ArtboardRect & operator=(const ArtboardRect &rhs_)
Allows one ArtboardRect object to be assigned from another.
virtual double bottom() const
Gets the position of the bottom bounding edge of the rectangle along the y-axis.
ArtboardRect(const ArtboardRect &rect_)
ArtboardRect copy constructor.
virtual bool overlaps(const ArtboardRect &rect2_) const
Checks whether the target rect overlaps a given rect.
Contains a width and height for a rectangular shape.
Definition: hdicoreSize.h:25
Header file for geometric point manipulation on the Illustrator artboard.
Header file for describing 2D dimensions (width and height)
BoundsPinPointType
These allow for simpler art transformation/bounds metadata access.
Definition: hdicoreTypes.h:794
RectLineIntersectionType
Describes which points were found when checking for intersections between a rect and a line.
Definition: hdicoreTypes.h:812