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-2018 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 
105 #ifndef SWIGHIDDEN
106  Ink(TRN_Annot ink);
107 #endif
108 }; //class Ink
110  }; //namespace Annot
111  }; //namespace PDF
112 }; //namespace pdftron
113 #include <Impl/Page.inl>
114 
115 #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 SetPoint(unsigned int pathindex, unsigned int pointindex, const Point &pt)

© 2002-2014 PDFTron Systems Inc.