#include <GeometryCollection.h>
The class GeometryCollection. A Preprocessed PDF geometry collection
Definition at line 24 of file GeometryCollection.h.
| Enumerator |
|---|
| eDefaultSnapMode |
|
| ePointOnLine |
|
| eLineMidpoint |
|
| eLineIntersection |
|
| ePathEndpoint |
|
Definition at line 28 of file GeometryCollection.h.
| pdftron::PDF::GeometryCollection::GeometryCollection |
( |
| ) |
|
| pdftron::PDF::GeometryCollection::GeometryCollection |
( |
TRN_GeometryCollection |
impl | ) |
|
| pdftron::PDF::GeometryCollection::~GeometryCollection |
( |
| ) |
|
| static GeometryCollection* pdftron::PDF::GeometryCollection::CreateInternal |
( |
ptrdiff_t |
impl | ) |
|
|
static |
| void pdftron::PDF::GeometryCollection::Destroy |
( |
| ) |
|
| ptrdiff_t pdftron::PDF::GeometryCollection::GetHandleInternal |
( |
| ) |
|
| 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.
| 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.
| TRN_GeometryCollection pdftron::PDF::GeometryCollection::m_impl |
The documentation for this class was generated from the following file: