00001
00002
00003
00004
00005
00006 #ifndef H_PDFTRON_PDF_CPPWRAP_INK
00007 #define H_PDFTRON_PDF_CPPWRAP_INK
00008
00009 #include <PDF/Annots/Markup.h>
00010 #include <PDF/QuadPoint.h>
00011
00012 namespace pdftron {
00013 namespace PDF {
00014 namespace Annots {
00020 class Ink : public Markup
00021 {
00022 public:
00028 Ink(SDF::Obj d = 0);
00029
00035 Ink(const Annot& ann) : Markup(ann.GetSDFObj()) {}
00036
00045 static Ink Create(SDF::SDFDoc& doc, const Rect& pos);
00046
00056 int GetPathCount() const;
00057
00065 int GetPointCount(unsigned int pathindex) const;
00066
00077 Point GetPoint(unsigned int pathindex, unsigned int pointindex) const;
00078
00091 void SetPoint(unsigned int pathindex, unsigned int pointindex, const Point& pt);
00092
00094 Ink(TRN_Annot ink);
00096 };
00097 };
00098 };
00099 };
00100 #include <Impl/Page.inl>
00101 #endif