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-2021 by PDFTron Systems 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 
57  int GetPathCount() const;
58 
66  int GetPointCount(unsigned int pathindex) const;
67 
78  Point GetPoint(unsigned int pathindex, unsigned int pointindex) const;
79 
92  void SetPoint(unsigned int pathindex, unsigned int pointindex, const Point& pt);
93 
102  bool Erase(const Point& pt1, const Point& pt2, double width);
103 
109  bool GetHighlightIntent();
110 
116  void SetHighlightIntent(bool highlight);
117 
118 // @cond PRIVATE_DOC
119 #ifndef SWIGHIDDEN
120  Ink(TRN_Annot ink);
121 #endif
122 // @endcond
123 }; //class Ink
124  }; //namespace Annot
125  }; //namespace PDF
126 }; //namespace pdftron
127 #include <Impl/Page.inl>
128 
129 #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)
void SetHighlightIntent(bool highlight)
void SetPoint(unsigned int pathindex, unsigned int pointindex, const Point &pt)