Loading...
Searching...
No Matches
Ink.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_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
Markup.h
QuadPoint.h
pdftron::PDF::Annot::Annot
Annot(SDF::Obj d=0)
pdftron::PDF::Annot::GetSDFObj
SDF::Obj GetSDFObj() const
pdftron::PDF::Annots::Ink::CreateAnnot
static Ink CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
pdftron::PDF::Annots::Ink::GetPathCount
int GetPathCount() const
pdftron::PDF::Annots::Ink::Ink
Ink(const Annot &ann)
Definition Ink.h:36
pdftron::PDF::Annots::Ink::Create
static Ink Create(SDF::SDFDoc &doc, const Rect &pos)
pdftron::PDF::Annots::Ink::Ink
Ink(SDF::Obj d=0)
pdftron::PDF::Annots::Ink::SetPoint
void SetPoint(unsigned int pathindex, unsigned int pointindex, const Point &pt)
pdftron::PDF::Annots::Ink::GetHighlightIntent
bool GetHighlightIntent()
pdftron::PDF::Annots::Ink::GetPoint
Point GetPoint(unsigned int pathindex, unsigned int pointindex) const
pdftron::PDF::Annots::Ink::GetPointCount
int GetPointCount(unsigned int pathindex) const
pdftron::PDF::Annots::Ink::SetHighlightIntent
void SetHighlightIntent(bool highlight)
pdftron::PDF::Annots::Ink::Erase
bool Erase(const Point &pt1, const Point &pt2, double width)
pdftron::PDF::Annots::Markup::Markup
Markup(SDF::Obj d=0)
pdftron::PDF::Point
Definition Point.h:13
pdftron::PDF::Rect
Definition Rect.h:29
pdftron::SDF::Obj
Definition Obj.h:41
pdftron::SDF::SDFDoc
Definition SDFDoc.h:68
pdftron::PDF::Annots
Definition Caret.h:12
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10