- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PatternColor.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 #ifndef PDFTRON_H_CPPPDFPatternColor
6 #define PDFTRON_H_CPPPDFPatternColor
7
8 #include <SDF/Obj.h>
9 #include <Common/Matrix2D.h>
10 #include <PDF/Shading.h>
11 #include <C/PDF/TRN_PatternColor.h>
12
13
14 namespace pdftron {
15 namespace PDF {
16
42 class PatternColor
43 {
44 public:
45
46 // Common PatternColor methods ----------------------------------------------------
47
52 PatternColor (SDF::Obj pattern);
53
54 PatternColor(const PatternColor&);
55 PatternColor& operator=(const PatternColor&);
56
57 ~PatternColor();
58
59 enum Type
60 {
61 e_uncolored_tiling_pattern,
62 e_colored_tiling_pattern,
63 e_shading,
64 e_null
65 };
66
70 Type GetType() const;
71
75 SDF::Obj GetSDFObj ();
76
85 Common::Matrix2D GetMatrix();
86
87
88 // Specific ShadingPattern methods -----------------------------------------------
89
95 Shading GetShading();
96
97
98 // Specific TilingPattern methods ------------------------------------------------
99
100 enum TilingType
101 {
102 e_constant_spacing,
103 e_no_distortion,
104 e_constant_spacing_fast_fill
105 };
106
113 TilingType GetTilingType() const;
114
123 Rect GetBBox();
124
135 double GetXStep();
136
143 double GetYStep();
144
148 void Destroy();
149
150 // @cond PRIVATE_DOC
151 #ifndef SWIGHIDDEN
152 PatternColor(TRN_PatternColor impl);
153 PatternColor();
154 TRN_PatternColor mp_pc;
155 #endif
156 // @endcond
157 };
158
159
160
161 #include <Impl/PatternColor.inl>
162
163
164 }; // namespace PDF
165 }; // namespace pdftron
166
167 #endif // PDFTRON_H_CPPPDFPatternColor
pdftron::PDF::PatternColor::e_constant_spacing
Definition: PatternColor.h:102
pdftron::PDF::PatternColor::e_no_distortion
Definition: PatternColor.h:103
Shading.h
pdftron::PDF::PatternColor::GetMatrix
Common::Matrix2D GetMatrix()
pdftron::PDF::Shading
Definition: Shading.h:60
pdftron::PDF::PatternColor::GetBBox
Rect GetBBox()
Matrix2D.h
pdftron::PDF::PatternColor
Definition: PatternColor.h:42
pdftron::PDF::PatternColor::e_uncolored_tiling_pattern
Definition: PatternColor.h:61
pdftron::PDF::PatternColor::e_colored_tiling_pattern
Definition: PatternColor.h:62
pdftron::PDF::Rect
Definition: Rect.h:28
pdftron::PDF::PatternColor::TilingType
TilingType
Definition: PatternColor.h:100
pdftron::PDF::PatternColor::GetSDFObj
SDF::Obj GetSDFObj()
pdftron::PDF::PatternColor::GetXStep
double GetXStep()
pdftron::PDF::PatternColor::~PatternColor
~PatternColor()
pdftron::PDF::PatternColor::e_shading
Definition: PatternColor.h:63
pdftron::Common::Matrix2D
Definition: Matrix2D.h:103
pdftron::PDF::PatternColor::operator=
PatternColor & operator=(const PatternColor &)
pdftron::PDF::PatternColor::GetTilingType
TilingType GetTilingType() const
Obj.h
pdftron::PDF::PatternColor::GetType
Type GetType() const
pdftron::PDF::PatternColor::Destroy
void Destroy()
pdftron::PDF::PatternColor::Type
Type
Definition: PatternColor.h:59
pdftron::PDF::PatternColor::GetShading
Shading GetShading()
pdftron::PDF::PatternColor::PatternColor
PatternColor(SDF::Obj pattern)
pdftron::PDF::PatternColor::e_constant_spacing_fast_fill
Definition: PatternColor.h:104
pdftron::SDF::Obj
Definition: Obj.h:40
pdftron::PDF::PatternColor::e_null
Definition: PatternColor.h:64
pdftron::PDF::PatternColor::GetYStep
double GetYStep()