Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreSegPoint.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_SEG_POINT__
8#define __HDI_CORE_SEG_POINT__
9
10#include "hdicorePoint.h"
11
12namespace hdi
13{
14 namespace core
15 {
20 {
21 public:
26
31
36
43
51 SegPoint(const SegPoint& segPt_);
52
60 SegPoint(const Point& pt_);
61
72 const Point& p_,
73 const Point& in_,
74 const Point& out_
75 );
76
82 virtual ~SegPoint();
83
92 virtual SegPoint& operator=(const SegPoint& rhs_);
93
102 virtual bool operator==(const SegPoint& rhs_) const;
103
112 virtual bool operator!=(const SegPoint& rhs_) const;
113
122 virtual bool curved(const SegPoint& segPt2_) const;
123 };
124
125 typedef std::unique_ptr<SegPoint> SegPointUP;
126 typedef std::shared_ptr<SegPoint> SegPointSP;
127 typedef std::weak_ptr<SegPoint> SegPointWP;
128 }
129}
130
131#endif
132// __HDI_CORE_SEG_POINT__
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:38
Describes a segment point of a bezier path, typically in an Illustrator document view.
Definition: hdicoreSegPoint.h:20
virtual ~SegPoint()
SegPoint destructor.
Point p
Anchor point.
Definition: hdicoreSegPoint.h:25
SegPoint(const Point &p_, const Point &in_, const Point &out_)
Constructs a SegPoint from given points.
virtual bool operator==(const SegPoint &rhs_) const
Tests whether a given SegPoint object is the same as another.
Point out
Segment "out" control point.
Definition: hdicoreSegPoint.h:35
Point in
Segment "in" control point.
Definition: hdicoreSegPoint.h:30
virtual bool curved(const SegPoint &segPt2_) const
Gets whether the path formed by two segment points is curved.
SegPoint()
Constructs a SegPoint object with the p, in, and out points at (0,0)
virtual SegPoint & operator=(const SegPoint &rhs_)
Sets a SegPoint object from another SegPoint object.
virtual bool operator!=(const SegPoint &rhs_) const
Tests whether a given SegPoint object is not the same as another.
SegPoint(const SegPoint &segPt_)
SegPoint copy constructor.
SegPoint(const Point &pt_)
Constructs a SegPoint from a given point for the anchor and both control points.
Header file for describing 2D points.