Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreArtboardSegPoint.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_ARTBOARD_SEG_POINT__
8#define __HDI_CORE_ARTBOARD_SEG_POINT__
9
10#if defined(HDI_CORE_AIP_MODE)
11
13
14namespace hdi
15{
16 namespace aip
17 {
18 class PathSegPoint;
19 }
20
21 namespace core
22 {
27 {
28 public:
33
38
43
47 bool corner;
48
56
65
74 ArtboardSegPoint(const ArtboardPoint& pt_, const bool corner_ = true);
75
87 const ArtboardPoint& p_,
88 const ArtboardPoint& in_,
89 const ArtboardPoint& out_,
90 const bool corner_ = true
91 );
92
99
109
118 virtual bool operator==(const ArtboardSegPoint& rhs_) const;
119
128 virtual bool operator!=(const ArtboardSegPoint& rhs_) const;
129
138 virtual bool curved(const ArtboardSegPoint& segPt2_) const;
139
140
141 private:
142 friend aip::PathSegPoint* __accessImpl(const ArtboardSegPoint&);
143 friend ArtboardSegPoint __accessCtor(const aip::PathSegPoint&);
144
148 aip::PathSegPoint* __impl;
149
155 ArtboardSegPoint(const aip::PathSegPoint&);
156 };
157
158 typedef std::unique_ptr<ArtboardSegPoint> ArtboardSegPointUP;
159 typedef std::shared_ptr<ArtboardSegPoint> ArtboardSegPointSP;
160 typedef std::weak_ptr<ArtboardSegPoint> ArtboardSegPointWP;
161
162 extern aip::PathSegPoint* __accessImpl(const ArtboardSegPoint&);
163 extern ArtboardSegPoint __accessCtor(const aip::PathSegPoint&);
164 }
165}
166
167#endif
168// HDI_CORE_AIP_MODE
169
170#endif
171// __HDI_CORE_ARTBOARD_SEG_POINT__
Describes a point on the Illustrator artboard.
Definition: hdicoreArtboardPoint.h:31
Describes a segment point of a bezier path on the Illustrator artboard.
Definition: hdicoreArtboardSegPoint.h:27
virtual bool operator==(const ArtboardSegPoint &rhs_) const
Tests whether a given ArtboardSegPoint object is the same as another.
ArtboardSegPoint(const ArtboardSegPoint &segPt_)
ArtboardSegPoint copy constructor.
virtual bool curved(const ArtboardSegPoint &segPt2_) const
Gets whether the path formed by two segment points is curved.
ArtboardSegPoint(const ArtboardPoint &p_, const ArtboardPoint &in_, const ArtboardPoint &out_, const bool corner_=true)
Constructs an ArtboardSegPoint from given points.
bool corner
Definition: hdicoreArtboardSegPoint.h:47
virtual ArtboardSegPoint & operator=(const ArtboardSegPoint &rhs_)
Sets an ArtboardSegPoint object from another ArtboardSegPoint object.
ArtboardSegPoint(const ArtboardPoint &pt_, const bool corner_=true)
Constructs an ArtboardSegPoint from a given point for the anchor and both control points.
virtual bool operator!=(const ArtboardSegPoint &rhs_) const
Tests whether a given ArtboardSegPoint object is not the same as another.
ArtboardPoint out
Segment "out" control point.
Definition: hdicoreArtboardSegPoint.h:42
ArtboardPoint p
Anchor point.
Definition: hdicoreArtboardSegPoint.h:32
ArtboardSegPoint()
Constructs an ArtboardSegPoint object with the p, in, and out points at (0,0) and corner set to false...
virtual ~ArtboardSegPoint()
ArtboardSegPoint destructor.
ArtboardPoint in
Segment "in" control point.
Definition: hdicoreArtboardSegPoint.h:37
Header file for geometric point manipulation on the Illustrator artboard.