All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Ink.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFAnnotsInk
6 #define PDFTRON_H_CPPPDFAnnotsInk
7 
8 #include <PDF/Annots/Markup.h>
9 #include <PDF/QuadPoint.h>
10 
11 namespace pdftron {
12  namespace PDF {
13  namespace Annots {
19 class Ink : public Markup
20 {
21  public:
28  Ink(SDF::Obj d = 0);
29 
36  Ink(const Annot& ann) : Markup(ann.GetSDFObj()) {}
37 
46  static Ink Create(SDF::SDFDoc& doc, const Rect& pos);
47  static Ink CreateAnnot(SDF::SDFDoc& doc, const Rect& pos);
48 
58  int GetPathCount() const;
59 
67  int GetPointCount(unsigned int pathindex) const;
68 
79  Point GetPoint(unsigned int pathindex, unsigned int pointindex) const;
80 
93  void SetPoint(unsigned int pathindex, unsigned int pointindex, const Point& pt);
94 
103  bool Erase(const Point& pt1, const Point& pt2, double width);
104 
110  bool GetHighlightIntent();
111 
117  void SetHighlightIntent(bool highlight);
118 
119 // @cond PRIVATE_DOC
120 #ifndef SWIGHIDDEN
121  Ink(TRN_Annot ink);
122 #endif
123 // @endcond
124 }; //class Ink
125  }; //namespace Annot
126  }; //namespace PDF
127 }; //namespace pdftron
128 #include <Impl/Page.inl>
129 
130 #endif // PDFTRON_H_CPPPDFAnnotsInk
SDF::Obj GetSDFObj() const
Ink(const Annot &ann)
Definition: Ink.h:36
bool Erase(const Point &pt1, const Point &pt2, double width)
Point GetPoint(unsigned int pathindex, unsigned int pointindex) const
int GetPointCount(unsigned int pathindex) const
static Ink Create(SDF::SDFDoc &doc, const Rect &pos)
static Ink CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
void SetHighlightIntent(bool highlight)
void SetPoint(unsigned int pathindex, unsigned int pointindex, const Point &pt)