00001
00002
00003
00004
00005
00006 #ifndef H_PDFTRON_PDF_CPPW_PDFQuadPoint
00007 #define H_PDFTRON_PDF_CPPW_PDFQuadPoint
00008
00009 #include <PDF/Point.h>
00010 #include <PDF/Rect.h>
00011
00012 namespace pdftron {
00013 namespace PDF {
00014
00015 class QuadPoint: public TRN_QuadPoint
00016 {
00017 public:
00018 QuadPoint()
00019 {
00020 p1.x = 0;
00021 p1.y = 0;
00022 p2.x = 0;
00023 p2.y = 0;
00024 p3.x = 0;
00025 p3.y = 0;
00026 p4.x = 0;
00027 p4.y = 0;
00028 }
00029
00030 QuadPoint(Point p11, Point p22, Point p33, Point p44)
00031 {
00032 p1.x = p11.x;
00033 p1.y = p11.y;
00034 p2.x = p22.x;
00035 p2.y = p22.y;
00036 p3.x = p33.x;
00037 p3.y = p33.y;
00038 p4.x = p44.x;
00039 p4.y = p44.y;
00040 }
00041
00042 QuadPoint( const Rect& r )
00043 {
00044 p1.x = r.GetX1();
00045 p1.y = r.GetY1();
00046 p2.x = r.GetX2();
00047 p2.y = r.GetY1();
00048 p3.x = r.GetX2();
00049 p3.y = r.GetY2();
00050 p4.x = r.GetX1();
00051 p4.y = r.GetY2();
00052 }
00053
00054
00055 };
00056
00057 }
00058 }
00059
00060 #endif