- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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-2025 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:
17 QuadPoint()
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
53 Point p1;
54 Point p2;
55 Point p3;
56 Point p4;
57 };
58
59 } // namespace PDF
60 } // namespace pdftron
61
62 #endif // PDFTRON_H_CPPPDFQuadPoint
Point.h
pdftron::PDF::Rect::GetY1
double GetY1() const
pdftron::PDF::QuadPoint::p3
Point p3
Definition: QuadPoint.h:55
pdftron::PDF::QuadPoint::p4
Point p4
Definition: QuadPoint.h:56
pdftron::PDF::QuadPoint::p1
Point p1
Definition: QuadPoint.h:53
pdftron::PDF::QuadPoint
Definition: QuadPoint.h:14
pdftron::PDF::QuadPoint::QuadPoint
QuadPoint(const Rect &r)
Definition: QuadPoint.h:41
pdftron::PDF::Rect
Definition: Rect.h:28
pdftron::PDF::Point
Definition: Point.h:12
pdftron::PDF::Rect::GetX2
double GetX2() const
pdftron::PDF::Rect::GetY2
double GetY2() const
pdftron::PDF::QuadPoint::p2
Point p2
Definition: QuadPoint.h:54
pdftron::PDF::QuadPoint::QuadPoint
QuadPoint(Point p11, Point p22, Point p33, Point p44)
Definition: QuadPoint.h:29
pdftron::PDF::Rect::GetX1
double GetX1() const
Rect.h
pdftron::PDF::QuadPoint::QuadPoint
QuadPoint()
Definition: QuadPoint.h:17