- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
Point.h
pdftron::PDF::GeometryCollection::eLineIntersection
Definition: GeometryCollection.h:32
UString.h
pdftron::PDF::GeometryCollection::SnappingMode
SnappingMode
Definition: GeometryCollection.h:28
pdftron::PDF::GeometryCollection::m_impl
TRN_GeometryCollection m_impl
Definition: GeometryCollection.h:72
pdftron::PDF::GeometryCollection::eLineMidpoint
Definition: GeometryCollection.h:31
pdftron::PDF::GeometryCollection::~GeometryCollection
~GeometryCollection()
pdftron::PDF::GeometryCollection::CreateInternal
static GeometryCollection * CreateInternal(ptrdiff_t impl)
pdftron::PDF::GeometryCollection::ePathEndpoint
Definition: GeometryCollection.h:33
pdftron::PDF::Point
Definition: Point.h:12
pdftron::PDF::GeometryCollection::Destroy
void Destroy()
pdftron::UInt32
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
pdftron::PDF::GeometryCollection::ePointOnLine
Definition: GeometryCollection.h:30
pdftron::PDF::GeometryCollection::SnapToNearest
Point SnapToNearest(double x, double y, UInt32 mode) const
pdftron::PDF::GeometryCollection::operator=
GeometryCollection & operator=(const GeometryCollection &other)
PDFDoc.h
pdftron::PDF::GeometryCollection::GeometryCollection
GeometryCollection()
BasicTypes.h
pdftron::PDF::GeometryCollection
Definition: GeometryCollection.h:24
pdftron::PDF::GeometryCollection::GetHandleInternal
ptrdiff_t GetHandleInternal()
pdftron::PDF::GeometryCollection::eDefaultSnapMode
Definition: GeometryCollection.h:29
pdftron::PDF::GeometryCollection::SnapToNearestPixel
Point SnapToNearestPixel(double x, double y, double dpi, UInt32 mode) const