Point.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/string.h>
5 
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 
8 namespace Aspose
9 {
10 namespace Pdf
11 {
12 namespace Tests
13 {
14 class GraphicAbsorberTests;
15 class RegressionTests_v23_06;
16 namespace Text
17 {
18 class ParagraphAbsorberTests;
19 } // namespace Text
20 } // namespace Tests
21 } // namespace Pdf
22 } // namespace Aspose
23 namespace System
24 {
25 namespace Drawing
26 {
27 class PointF;
28 } // namespace Drawing
29 } // namespace System
30 
31 namespace Aspose {
32 
33 namespace Pdf {
34 
38 class ASPOSE_PDF_SHARED_CLASS Point final : public System::Object
39 {
40  typedef Point ThisType;
41  typedef System::Object BaseType;
42 
43  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
44  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
45 
46  friend class Aspose::Pdf::Tests::Text::ParagraphAbsorberTests;
47  friend class Aspose::Pdf::Tests::RegressionTests_v23_06;
48  friend class Aspose::Pdf::Tests::GraphicAbsorberTests;
49 
50 public:
51 
55  ASPOSE_PDF_SHARED_API double get_X() const;
59  ASPOSE_PDF_SHARED_API void set_X(double value);
63  ASPOSE_PDF_SHARED_API double get_Y() const;
67  ASPOSE_PDF_SHARED_API void set_Y(double value);
71  static ASPOSE_PDF_SHARED_API System::SharedPtr<Point> get_Trivial();
72 
82  ASPOSE_PDF_SHARED_API Point(double x, double y);
83 
88  ASPOSE_PDF_SHARED_API System::Drawing::PointF ToPoint();
95  static ASPOSE_PDF_SHARED_API double Distance(System::SharedPtr<Point> point1, System::SharedPtr<Point> point2);
100  ASPOSE_PDF_SHARED_API System::String ToString() const override;
101 
102 protected:
103 
104  bool NearEqual(System::SharedPtr<Point> another, double delta);
105 
106 private:
107 
108  double x, y;
109 
110  System::String ToString_NonConst();
111 
112 };
113 
114 } // namespace Pdf
115 } // namespace Aspose
116 
117 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Definition: Artifact.h:67
Represent point with fractional coordinates.
Definition: Point.h:38
Represents a pair of single-precision floating point X and Y coordinates of a point on a 2-dimensiona...
Definition: point_f.h:13
Definition: signed_info.h:13
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Definition: AFRelationship.h:4
means saving without change of format, i.e. as PDF use it please instead of &#39;SaveFormat.None&#39;, that is obsolete one
Whole PDF file will be submitted.