7#ifndef __HDI_CORE_ARTBOARD_POINT__
8#define __HDI_CORE_ARTBOARD_POINT__
10#if defined(HDI_CORE_AIP_MODE)
25 class TransformMatrix;
33 typedef std::vector<ArtboardPoint> ArtboardPointVector;
429 friend aip::ArtboardPoint* __accessImpl(
const ArtboardPoint&);
430 friend ArtboardPoint __accessCtor(
const aip::ArtboardPoint&);
435 aip::ArtboardPoint* __impl;
445 typedef std::unique_ptr<ArtboardPoint> ArtboardPointUP;
446 typedef std::shared_ptr<ArtboardPoint> ArtboardPointSP;
447 typedef std::weak_ptr<ArtboardPoint> ArtboardPointWP;
449 extern aip::ArtboardPoint* __accessImpl(
const ArtboardPoint&);
450 extern ArtboardPoint __accessCtor(
const aip::ArtboardPoint&);
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
virtual ArtboardPoint operator-(const double rhs_) const
Allows a value to be subtracted from both this->x and this->y using the - operator.
double y
Position on the y-axis.
Definition: hdicoreArtboardPoint.h:43
virtual ArtboardPoint offset(const double tx_, const double ty_) const
Offsets a point along the x- and y-axes by given amounts.
ArtboardPoint(const ArtboardPoint &pt_)
ArtboardPoint copy constructor.
virtual bool operator>=(const ArtboardPoint &rhs_) const
Allows two ArtboardPoint objects to be compared with the >= operator.
ArtboardPoint(const double x_, const double y_)
ArtboardPoint constructor, taking x and y arguments.
virtual bool operator>(const ArtboardPoint &rhs_) const
Allows two ArtboardPoint objects to be compared with the > operator.
virtual ~ArtboardPoint()
ArtboardPoint destructor.
virtual ArtboardPoint operator/(const double rhs_) const
Allows both this->x and this->y to be divided by a value using the / operator.
virtual ArtboardPoint & operator*=(const double rhs_)
Allows a value to be multiplied with, and assigned to, both this->x and this->y using the = operator.
virtual ArtboardPoint operator*(const double rhs_) const
Allows a value to be multiplied with both this->x and this->y using the * operator.
virtual ArtboardPoint transform(const TransformMatrix &m_) const
Transforms a point via a 2-dimensional transformation matrix.
virtual bool operator<=(const ArtboardPoint &rhs_) const
Allows two ArtboardPoint objects to be compared with the <= operator.
virtual ArtboardPoint move(const double length_, const Angle &angle_) const
"Moves" a point by a given length and angle away from its current position
virtual ArtboardPoint & operator/=(const double rhs_)
Allows both this->x and this->y to be divided by a value, and assigned, using the /= operator.
virtual double operator|(const ArtboardPoint &rhs_) const
Gets the distance between this and rhs_.
virtual ArtboardPoint & operator/=(const ArtboardPoint &rhs_)
Allows two points to have their x and y values divided and assigned using the /= operator.
virtual double dotProduct(const ArtboardPoint &p2_) const
Gets the dot product of two ArtboardPoint objects.
virtual ArtboardPoint & operator=(const ArtboardPoint &rhs_)
Allows one ArtboardPoint object to be assigned from another.
virtual Angle operator^(const ArtboardPoint &rhs_) const
Gets the angle of the vector (this, rhs_), if this were moved to the origin.
virtual ArtboardPoint & operator-=(const double rhs_)
Allows a value to be subtracted from, and assigned to, both this->x and this->y using the -= operator...
virtual ArtboardPoint operator+(const ArtboardPoint &rhs_) const
Allows two points to have their x and y values added using the + operator.
virtual bool closeTo(const ArtboardPoint &compare_, const double tol_) const
Gets whether a given point is within a certain tolerance ("close to") the target point.
virtual ArtboardPoint & operator*=(const ArtboardPoint &rhs_)
Allows two points to have their x and y values multiplied and assigned using the *= operator.
virtual bool operator==(const ArtboardPoint &rhs_) const
Allows two ArtboardPoint objects to be compared with the == operator.
virtual bool insidePolygon(const ArtboardPointVector &points_) const
Checks if the point is within the provided polygon.
virtual ArtboardPoint operator+(const double rhs_) const
Allows a value to be added to both this->x and this->y using the + operator.
virtual ArtboardPoint & operator-=(const ArtboardPoint &rhs_)
Allows two points to have their x and y values subtracted and assigned using the -= operator.
virtual ArtboardPoint & operator+=(const double rhs_)
Allows a value to be added and assigned to both this->x and this->y using the += operator.
static ArtboardPoint LengthAngle(const double length_, const Angle &angle_)
"Named constructor" for a point that is a given length and angle away from the origin
virtual bool operator<(const ArtboardPoint &rhs_) const
Allows two ArtboardPoint objects to be compared with the < operator.
virtual ArtboardPoint rotate(const ArtboardPoint &origin_, const Angle &angle_) const
Rotates the point about a given "origin" point by a certain angle.
virtual ArtboardPoint operator-(const ArtboardPoint &rhs_) const
Allows two points to have their x and y values subtracted using the - operator.
ArtboardPoint()
Default ArtboardPoint constructor, setting the point to (0,0)
virtual ArtboardPoint operator/(const ArtboardPoint &rhs_) const
Allows two points to have their x and y values divided using the / operator.
virtual ArtboardPoint operator*(const ArtboardPoint &rhs_) const
Allows two points to have their x and y values multiplied using the * operator.
double x
Position on the x-axis.
Definition: hdicoreArtboardPoint.h:38
virtual ArtboardPoint & operator+=(const ArtboardPoint &rhs_)
Allows two points to have their x and y values added and assigned using the += operator.
virtual bool operator!=(const ArtboardPoint &rhs_) const
Allows two ArtboardPoint objects to be compared with the != operator.
Header file for describing angles.