Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Describes a point on the Illustrator artboard. More...
#include <hdicoreArtboardPoint.h>
Public Types | |
typedef std::vector< ArtboardPoint > | ArtboardPointVector |
Public Member Functions | |
ArtboardPoint () | |
Default ArtboardPoint constructor, setting the point to (0,0) | |
ArtboardPoint (const ArtboardPoint &pt_) | |
ArtboardPoint copy constructor. | |
ArtboardPoint (const double x_, const double y_) | |
ArtboardPoint constructor, taking x and y arguments. | |
virtual | ~ArtboardPoint () |
ArtboardPoint destructor. | |
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 double | dotProduct (const ArtboardPoint &p2_) const |
Gets the dot product of two ArtboardPoint objects. | |
virtual ArtboardPoint | offset (const double tx_, const double ty_) const |
Offsets a point along the x- and y-axes by given amounts. | |
virtual ArtboardPoint | rotate (const ArtboardPoint &origin_, const Angle &angle_) const |
Rotates the point about a given "origin" point by a certain angle. | |
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 | transform (const TransformMatrix &m_) const |
Transforms a point via a 2-dimensional transformation matrix. | |
virtual bool | insidePolygon (const ArtboardPointVector &points_) const |
Checks if the point is within the provided polygon. | |
virtual ArtboardPoint & | operator= (const ArtboardPoint &rhs_) |
Allows one ArtboardPoint object to be assigned from another. | |
virtual bool | operator== (const ArtboardPoint &rhs_) const |
Allows two ArtboardPoint objects to be compared with the == operator. | |
virtual bool | operator!= (const ArtboardPoint &rhs_) const |
Allows two ArtboardPoint objects to be compared with the != operator. | |
virtual bool | operator< (const ArtboardPoint &rhs_) const |
Allows two ArtboardPoint objects to be compared with the < operator. | |
virtual bool | operator<= (const ArtboardPoint &rhs_) const |
Allows two ArtboardPoint objects to be compared with the <= operator. | |
virtual bool | operator> (const ArtboardPoint &rhs_) const |
Allows two ArtboardPoint objects to be compared with the > operator. | |
virtual bool | operator>= (const ArtboardPoint &rhs_) const |
Allows two ArtboardPoint objects to be compared with the >= operator. | |
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 double rhs_) const |
Allows a value to be subtracted from 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 | 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 ArtboardPoint &rhs_) const |
Allows two points to have their x and y values added using the + operator. | |
virtual ArtboardPoint | operator- (const ArtboardPoint &rhs_) const |
Allows two points to have their x and y values subtracted using the - operator. | |
virtual ArtboardPoint | operator* (const ArtboardPoint &rhs_) const |
Allows two points to have their x and y values multiplied using the * operator. | |
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 double rhs_) |
Allows a value to be added and assigned to both this->x and this->y using the += operator. | |
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 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_) |
Allows both this->x and this->y to be divided by a value, and assigned, using the /= operator. | |
virtual ArtboardPoint & | operator+= (const ArtboardPoint &rhs_) |
Allows two points to have their x and y values added and assigned 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 ArtboardPoint &rhs_) |
Allows two points to have their x and y values multiplied and assigned using the *= operator. | |
virtual ArtboardPoint & | operator/= (const ArtboardPoint &rhs_) |
Allows two points to have their x and y values divided and assigned using the /= operator. | |
virtual Angle | operator^ (const ArtboardPoint &rhs_) const |
Gets the angle of the vector (this, rhs_), if this were moved to the origin. | |
virtual double | operator| (const ArtboardPoint &rhs_) const |
Gets the distance between this and rhs_. | |
Static Public Member Functions | |
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 | |
Public Attributes | |
double | x |
Position on the x-axis. | |
double | y |
Position on the y-axis. | |
Friends | |
aip::ArtboardPoint * | __accessImpl (const ArtboardPoint &) |
ArtboardPoint | __accessCtor (const aip::ArtboardPoint &) |
Describes a point on the Illustrator artboard.
hdi::core::ArtboardPoint::ArtboardPoint | ( | ) |
Default ArtboardPoint constructor, setting the point to (0,0)
hdi::core::ArtboardPoint::ArtboardPoint | ( | const ArtboardPoint & | pt_ | ) |
hdi::core::ArtboardPoint::ArtboardPoint | ( | const double | x_, |
const double | y_ | ||
) |
ArtboardPoint constructor, taking x and y arguments.
x_ | Location of the item on the x-axis |
y_ | Location of the item on the y-axis |
|
virtual |
ArtboardPoint destructor.
|
virtual |
Gets whether a given point is within a certain tolerance ("close to") the target point.
compare_ | Point to compare with |
tol_ | Tolerance between the points; a definition of what constitutes "close" |
|
virtual |
Gets the dot product of two ArtboardPoint objects.
p2_ | Second ArtboardPoint object with which the dot product is calculated |
|
virtual |
Checks if the point is within the provided polygon.
points_[] | Points that describe the polygon |
|
static |
"Named constructor" for a point that is a given length and angle away from the origin
length_ | Length away from the origin |
angle_ | Angle that the point is rotated about the origin and away from the x-axis |
|
virtual |
"Moves" a point by a given length and angle away from its current position
length_ | Length away from the current position |
angle_ | Angle that the point is moved from the current position |
|
virtual |
Offsets a point along the x- and y-axes by given amounts.
tx_ | Amount to offset along the x-axis |
ty_ | Amount to offset along the y-axis |
|
virtual |
Allows two ArtboardPoint objects to be compared with the != operator.
rhs_ | Righthand side of the != operator |
|
virtual |
Allows two points to have their x and y values multiplied using the * operator.
rhs_ | Righthand side of the * operator |
|
virtual |
Allows a value to be multiplied with both this->x and this->y using the * operator.
rhs_ | Righthand side of the * operator |
|
virtual |
Allows two points to have their x and y values multiplied and assigned using the *= operator.
rhs_ | Righthand side of the *= operator |
|
virtual |
Allows a value to be multiplied with, and assigned to, both this->x and this->y using the = operator.
rhs_ | Righthand side of the *= operator |
|
virtual |
Allows two points to have their x and y values added using the + operator.
rhs_ | Righthand side of the + operator |
|
virtual |
Allows a value to be added to both this->x and this->y using the + operator.
rhs_ | Righthand side of the + operator |
|
virtual |
Allows two points to have their x and y values added and assigned using the += operator.
rhs_ | Righthand side of the += operator |
|
virtual |
Allows a value to be added and assigned to both this->x and this->y using the += operator.
rhs_ | Righthand side of the += operator |
|
virtual |
Allows two points to have their x and y values subtracted using the - operator.
rhs_ | Righthand side of the - operator |
|
virtual |
Allows a value to be subtracted from both this->x and this->y using the - operator.
rhs_ | Righthand side of the - operator |
|
virtual |
Allows two points to have their x and y values subtracted and assigned using the -= operator.
rhs_ | Righthand side of the -= operator |
|
virtual |
Allows a value to be subtracted from, and assigned to, both this->x and this->y using the -= operator.
rhs_ | Righthand side of the -= operator |
|
virtual |
Allows two points to have their x and y values divided using the / operator.
rhs_ | Righthand side of the / operator |
|
virtual |
Allows both this->x and this->y to be divided by a value using the / operator.
rhs_ | Righthand side of the / operator |
|
virtual |
Allows two points to have their x and y values divided and assigned using the /= operator.
rhs_ | Righthand side of the /= operator |
|
virtual |
Allows both this->x and this->y to be divided by a value, and assigned, using the /= operator.
rhs_ | Righthand side of the /= operator |
|
virtual |
Allows two ArtboardPoint objects to be compared with the < operator.
rhs_ | Righthand side of the < operator |
|
virtual |
Allows two ArtboardPoint objects to be compared with the <= operator.
rhs_ | Righthand side of the <= operator |
|
virtual |
Allows one ArtboardPoint object to be assigned from another.
rhs_ | Righthand side of the = operator; the object to copy values from |
|
virtual |
Allows two ArtboardPoint objects to be compared with the == operator.
rhs_ | Righthand side of the == operator |
|
virtual |
Allows two ArtboardPoint objects to be compared with the > operator.
rhs_ | Righthand side of the > operator |
|
virtual |
Allows two ArtboardPoint objects to be compared with the >= operator.
rhs_ | Righthand side of the >= operator |
|
virtual |
Gets the angle of the vector (this, rhs_), if this were moved to the origin.
rhs_ | Righthand side of the ^ operator (called the angle operator in this case) |
|
virtual |
Gets the distance between this and rhs_.
rhs_ | Righthand side of the | operator (called the length operator in this case) |
|
virtual |
Rotates the point about a given "origin" point by a certain angle.
origin_ | New "origin" to rotate around |
angle_ | Angle to rotate by |
|
virtual |
Transforms a point via a 2-dimensional transformation matrix.
m_ | Transformation matrix to apply to the point |