Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
hdi::core::SegPoint Class Reference

Describes a segment point of a bezier path, typically in an Illustrator document view. More...

#include <hdicoreSegPoint.h>

Collaboration diagram for hdi::core::SegPoint:
Collaboration graph
[legend]

Public Member Functions

 SegPoint ()
 Constructs a SegPoint object with the p, in, and out points at (0,0)
 
 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.
 
 SegPoint (const Point &p_, const Point &in_, const Point &out_)
 Constructs a SegPoint from given points.
 
virtual ~SegPoint ()
 SegPoint destructor.
 
virtual SegPointoperator= (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 the same as another.
 
virtual bool operator!= (const SegPoint &rhs_) const
 Tests whether a given SegPoint object is not the same as another.
 
virtual bool curved (const SegPoint &segPt2_) const
 Gets whether the path formed by two segment points is curved.
 

Public Attributes

Point p
 Anchor point.
 
Point in
 Segment "in" control point.
 
Point out
 Segment "out" control point.
 

Detailed Description

Describes a segment point of a bezier path, typically in an Illustrator document view.

Constructor & Destructor Documentation

◆ SegPoint() [1/4]

hdi::core::SegPoint::SegPoint ( )

Constructs a SegPoint object with the p, in, and out points at (0,0)

Author
GW
Date
07/2014

◆ SegPoint() [2/4]

hdi::core::SegPoint::SegPoint ( const SegPoint segPt_)

SegPoint copy constructor.

Author
GW
Date
07/2014
Parameters
segPt_Existing SegPoint object to copy values from

◆ SegPoint() [3/4]

hdi::core::SegPoint::SegPoint ( const Point pt_)

Constructs a SegPoint from a given point for the anchor and both control points.

Author
GW
Date
07/2014
Parameters
pt_Anchor point, control points

◆ SegPoint() [4/4]

hdi::core::SegPoint::SegPoint ( const Point p_,
const Point in_,
const Point out_ 
)

Constructs a SegPoint from given points.

Author
GW
Date
07/2014
Parameters
p_Anchor point
in_"In" control point
out_"Out" control point

◆ ~SegPoint()

virtual hdi::core::SegPoint::~SegPoint ( )
virtual

SegPoint destructor.

Author
GW
Date
07/2014

Member Function Documentation

◆ curved()

virtual bool hdi::core::SegPoint::curved ( const SegPoint segPt2_) const
virtual

Gets whether the path formed by two segment points is curved.

Author
GW
Date
07/2014
Parameters
segPt2_Second segment point in the path
Returns
true if the path formed by the two points is curved, false otherwise

◆ operator!=()

virtual bool hdi::core::SegPoint::operator!= ( const SegPoint rhs_) const
virtual

Tests whether a given SegPoint object is not the same as another.

Author
GW
Date
07/2014
Parameters
rhs_SegPoint to compare against (righthand side of inequality operator)
Returns
true for the target and rhs_ being different segment points, false otherwise

◆ operator=()

virtual SegPoint & hdi::core::SegPoint::operator= ( const SegPoint rhs_)
virtual

Sets a SegPoint object from another SegPoint object.

Author
GW
Date
07/2014
Parameters
rhs_Righthand side of the = operator; the SegPoint to pull values from
Returns
The target SegPoint object, with its values updated

◆ operator==()

virtual bool hdi::core::SegPoint::operator== ( const SegPoint rhs_) const
virtual

Tests whether a given SegPoint object is the same as another.

Author
GW
Date
07/2014
Parameters
rhs_SegPoint to compare against (righthand side of equality operator)
Returns
true for the target and rhs_ being the same segment point, false otherwise