Loading...
Searching...
No Matches
GeometryCollection.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5// !Warning! This file is autogenerated, modify the .codegen file, not this one
6// (any changes here will be wiped out during the autogen process)
7
8#ifndef PDFTRON_H_CPPPDFGeometryCollection
9#define PDFTRON_H_CPPPDFGeometryCollection
10#include <C/PDF/TRN_GeometryCollection.h>
11#include <PDF/Point.h>
12
13#include <Common/BasicTypes.h>
14#include <Common/UString.h>
15#include <PDF/PDFDoc.h>
16
17 namespace pdftron { namespace PDF {
18
19
24 class GeometryCollection
25{
26 public:
27 //enums:
28 enum SnappingMode {
29 eDefaultSnapMode = 14,
30 ePointOnLine = 1,
31 eLineMidpoint = 2,
32 eLineIntersection = 4,
33 ePathEndpoint = 8
34 };
35 GeometryCollection();
36 GeometryCollection(const GeometryCollection& other);
37 GeometryCollection(TRN_GeometryCollection impl);
38 GeometryCollection& operator= (const GeometryCollection& other);
39 ~GeometryCollection();
40
41 void Destroy();
42
43 //methods:
44
53 Point SnapToNearest(double x, double y, UInt32 mode) const;
54
64 Point SnapToNearestPixel(double x, double y, double dpi, UInt32 mode) const;
65
66 //for xamarin use only
67 static GeometryCollection* CreateInternal(ptrdiff_t impl);
68 ptrdiff_t GetHandleInternal();
69
70
71#ifndef SWIGHIDDEN
72 TRN_GeometryCollection m_impl;
73#endif
74
75 private:
76
77#ifndef SWIGHIDDEN
78 mutable bool m_owner;
79#endif
80};
81
82#include <Impl/GeometryCollection.inl>
83} //end pdftron
84} //end PDF
85
86
87#endif //PDFTRON_H_CPPPDFGeometryCollection
BasicTypes.h
PDFDoc.h
Point.h
UString.h
pdftron::PDF::GeometryCollection::SnapToNearestPixel
Point SnapToNearestPixel(double x, double y, double dpi, UInt32 mode) const
pdftron::PDF::GeometryCollection::SnapToNearest
Point SnapToNearest(double x, double y, UInt32 mode) const
pdftron::PDF::GeometryCollection::SnappingMode
SnappingMode
Definition GeometryCollection.h:28
pdftron::PDF::GeometryCollection::ePointOnLine
@ ePointOnLine
Definition GeometryCollection.h:30
pdftron::PDF::GeometryCollection::eDefaultSnapMode
@ eDefaultSnapMode
Definition GeometryCollection.h:29
pdftron::PDF::GeometryCollection::eLineIntersection
@ eLineIntersection
Definition GeometryCollection.h:32
pdftron::PDF::GeometryCollection::eLineMidpoint
@ eLineMidpoint
Definition GeometryCollection.h:31
pdftron::PDF::GeometryCollection::ePathEndpoint
@ ePathEndpoint
Definition GeometryCollection.h:33
pdftron::PDF::GeometryCollection::GeometryCollection
GeometryCollection()
pdftron::PDF::GeometryCollection::m_impl
TRN_GeometryCollection m_impl
Definition GeometryCollection.h:72
pdftron::PDF::GeometryCollection::GeometryCollection
GeometryCollection(TRN_GeometryCollection impl)
pdftron::PDF::GeometryCollection::GeometryCollection
GeometryCollection(const GeometryCollection &other)
pdftron::PDF::GeometryCollection::Destroy
void Destroy()
pdftron::PDF::GeometryCollection::~GeometryCollection
~GeometryCollection()
pdftron::PDF::GeometryCollection::CreateInternal
static GeometryCollection * CreateInternal(ptrdiff_t impl)
pdftron::PDF::GeometryCollection::operator=
GeometryCollection & operator=(const GeometryCollection &other)
pdftron::PDF::GeometryCollection::GetHandleInternal
ptrdiff_t GetHandleInternal()
pdftron::PDF::Point
Definition Point.h:13
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10
pdftron::UInt32
TRN_UInt32 UInt32
Definition BasicTypes.h:13