Foxit PDF SDK
|
Public Types | |
enum | SnappedPointType { e_TypeNone = 0, e_TypeEndpoint = 1, e_TypeMidpoint = 2, e_TypeIntersectionPoint = 3, e_TypeNearestPoint = 4 } |
Enumeration for snapped point type. More... | |
Public Member Functions | |
SnappedPoint (const SnappedPoint &other) | |
Constructor, with another snapped point object. More... | |
~SnappedPoint () | |
Destructor. | |
PointF | GetPoint () |
Get the point value. More... | |
SnappedPointType | GetType () |
Get the snapped point type. More... | |
bool | IsEmpty () const |
Check whether current object is empty or not. More... | |
bool | operator!= (const SnappedPoint &other) const |
Not equal operator. More... | |
SnappedPoint & | operator= (const SnappedPoint &other) |
Assign operator. More... | |
bool | operator== (const SnappedPoint &other) const |
Equal operator. More... | |
![]() | |
FS_HANDLE | Handle () const |
Get the handle of current object. More... | |
This class represents information of a snapped point, which is snapped with specified snapping flags by class SnapPointMgr.
Enumeration for snapped point type.
Values of this enumeration should be used alone.
foxit::pdf::SnappedPoint::SnappedPoint | ( | const SnappedPoint & | other | ) |
Constructor, with another snapped point object.
[in] | other | Another snapped point object. |
PointF foxit::pdf::SnappedPoint::GetPoint | ( | ) |
Get the point value.
Point value represents a point in a path.
SnappedPointType foxit::pdf::SnappedPoint::GetType | ( | ) |
Get the snapped point type.
bool foxit::pdf::SnappedPoint::IsEmpty | ( | ) | const |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
bool foxit::pdf::SnappedPoint::operator!= | ( | const SnappedPoint & | other | ) | const |
Not equal operator.
[in] | other | Another snapped point object. This function will check if current object is not equal to this one. |
SnappedPoint& foxit::pdf::SnappedPoint::operator= | ( | const SnappedPoint & | other | ) |
Assign operator.
[in] | other | Another snapped point object, whose value would be assigned to current object. |
bool foxit::pdf::SnappedPoint::operator== | ( | const SnappedPoint & | other | ) | const |
Equal operator.
[in] | other | Another snapped point object. This function will check if current object is equal to this one. |