Foxit PDF SDK
|
Public Types | |
enum | SnapPointFlags { e_FlagEndpoint = 0x0001, e_FlagMidpoint = 0x0002, e_FlagIntersectionPoint = 0x0004, e_FlagNearestPoint = 0x0008 } |
Enumeration for snapping point flags which are used to specify what kind of point in a path is to be snapped. More... | |
Public Member Functions | |
SnapPointMgr (const PDFPage &page) | |
Constructor, from a parsed PDF page object. More... | |
SnapPointMgr (const SnapPointMgr &other) | |
Constructor, with another snap point manager object. More... | |
~SnapPointMgr () | |
Destructor. | |
SnappedPoint | GetSnappedPointAtPos (const PointF &position, foxit::uint32 flags) |
Get the snapped point information at/around a specified position in PDF coordinate system. More... | |
bool | IsEmpty () const |
Check whether current object is empty or not. More... | |
bool | operator != (const SnapPointMgr &other) const |
Not equal operator. More... | |
SnapPointMgr & | operator= (const SnapPointMgr &other) |
Assign operator. More... | |
bool | operator== (const SnapPointMgr &other) const |
Equal operator. More... | |
void | Reload () |
Reload current manager. More... | |
![]() | |
FS_HANDLE | Handle () const |
Get the handle of current object. More... | |
This class represents a manager for snapping point. This class can be used to snap point in a path with specified snapping flags.
Enumeration for snapping point flags which are used to specify what kind of point in a path is to be snapped.
Values of this enumeration can be used alone or in combination.
|
explicit |
Constructor, from a parsed PDF page object.
[in] | page | A valid PDF page object. This page should has been parsed. |
foxit::pdf::SnapPointMgr::SnapPointMgr | ( | const SnapPointMgr & | other | ) |
Constructor, with another snap point manager object.
[in] | other | Another snap point manager object. |
SnappedPoint foxit::pdf::SnapPointMgr::GetSnappedPointAtPos | ( | const PointF & | position, |
foxit::uint32 | flags | ||
) |
Get the snapped point information at/around a specified position in PDF coordinate system.
[in] | position | A specified position, in PDF coordinate system. |
[in] | flags | Flags for snapping point. Please refer to values starting from SnapPointMgr::e_FlagEndpoint and this should be one or a combination of these values. |
bool foxit::pdf::SnapPointMgr::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::SnapPointMgr::operator != | ( | const SnapPointMgr & | other | ) | const |
Not equal operator.
[in] | other | Another snap point manager object. This function will check if current object is not equal to this one. |
SnapPointMgr& foxit::pdf::SnapPointMgr::operator= | ( | const SnapPointMgr & | other | ) |
Assign operator.
[in] | other | Another snap point manager object, whose value would be assigned to current object. |
bool foxit::pdf::SnapPointMgr::operator== | ( | const SnapPointMgr & | other | ) | const |
Equal operator.
[in] | other | Another snap point manager object. This function will check if current object is equal to this one. |
void foxit::pdf::SnapPointMgr::Reload | ( | ) |
Reload current manager.
This function should be called after any path in related PDF page has been modified.