All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
QuadPoint.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2024 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFQuadPoint
6 #define PDFTRON_H_CPPPDFQuadPoint
7 
8 #include <PDF/Point.h>
9 #include <PDF/Rect.h>
10 
11 namespace pdftron {
12  namespace PDF {
13 
14  class QuadPoint
15  {
16  public:
18  {
19  p1.x = 0;
20  p1.y = 0;
21  p2.x = 0;
22  p2.y = 0;
23  p3.x = 0;
24  p3.y = 0;
25  p4.x = 0;
26  p4.y = 0;
27  }
28 
29  QuadPoint(Point p11, Point p22, Point p33, Point p44)
30  {
31  p1.x = p11.x;
32  p1.y = p11.y;
33  p2.x = p22.x;
34  p2.y = p22.y;
35  p3.x = p33.x;
36  p3.y = p33.y;
37  p4.x = p44.x;
38  p4.y = p44.y;
39  }
40 
41  QuadPoint(const Rect& r)
42  {
43  p1.x = r.GetX1();
44  p1.y = r.GetY1();
45  p2.x = r.GetX2();
46  p2.y = r.GetY1();
47  p3.x = r.GetX2();
48  p3.y = r.GetY2();
49  p4.x = r.GetX1();
50  p4.y = r.GetY2();
51  }
52 
57  };
58 
59  } // namespace PDF
60 } // namespace pdftron
61 
62 #endif // PDFTRON_H_CPPPDFQuadPoint
double GetY1() const
QuadPoint(const Rect &r)
Definition: QuadPoint.h:41
double GetX2() const
double GetY2() const
QuadPoint(Point p11, Point p22, Point p33, Point p44)
Definition: QuadPoint.h:29
double GetX1() const