#include <GeometryCollection.h>
The class GeometryCollection. A Preprocessed PDF geometry collection
Definition at line 24 of file GeometryCollection.h.
◆ SnappingMode
| Enumerator |
|---|
| eDefaultSnapMode | |
| ePointOnLine | |
| eLineMidpoint | |
| eLineIntersection | |
| ePathEndpoint | |
Definition at line 28 of file GeometryCollection.h.
◆ GeometryCollection() [1/3]
| pdftron::PDF::GeometryCollection::GeometryCollection |
( |
| ) |
|
◆ GeometryCollection() [2/3]
◆ GeometryCollection() [3/3]
| pdftron::PDF::GeometryCollection::GeometryCollection |
( |
TRN_GeometryCollection | impl | ) |
|
◆ ~GeometryCollection()
| pdftron::PDF::GeometryCollection::~GeometryCollection |
( |
| ) |
|
◆ CreateInternal()
◆ Destroy()
| void pdftron::PDF::GeometryCollection::Destroy |
( |
| ) |
|
◆ GetHandleInternal()
| ptrdiff_t pdftron::PDF::GeometryCollection::GetHandleInternal |
( |
| ) |
|
◆ operator=()
◆ SnapToNearest()
| Point pdftron::PDF::GeometryCollection::SnapToNearest |
( |
double | x, |
|
|
double | y, |
|
|
UInt32 | mode ) const |
return the point within the collection which is closest to the queried point. All values are in the page coordinate space.
- Parameters
-
| x | – the x coordinate to snap, in page coordinates. |
| y | – the y coordinate to snap, in page coordinates. |
| mode | – a combination of flags from the SnappingMode enumeration. |
- Returns
- a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged.
◆ SnapToNearestPixel()
| Point pdftron::PDF::GeometryCollection::SnapToNearestPixel |
( |
double | x, |
|
|
double | y, |
|
|
double | dpi, |
|
|
UInt32 | mode ) const |
return the point within the collection which is closest to the queried point. All values are in the page coordinate space.
- Parameters
-
| x | – the x coordinate to snap. |
| y | – the y coordinate to snap. |
| dpi | – the resolution of the rendered page, in pixels per inch. |
| mode | – a combination of flags from the SnappingMode enumeration. |
- Returns
- a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged.
◆ m_impl
| TRN_GeometryCollection pdftron::PDF::GeometryCollection::m_impl |
The documentation for this class was generated from the following file: