Circle.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include "Aspose.PDF.Cpp/Generator/Drawing/Shape.h"
5 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
6 
7 namespace Aspose
8 {
9 namespace Pdf
10 {
11 namespace Annotations
12 {
13 class RegistrationMarkAnnotation;
14 } // namespace Annotations
15 class Operator;
16 class PageGenerator;
17 class Rectangle;
18 } // namespace Pdf
19 } // namespace Aspose
20 namespace System
21 {
22 namespace Collections
23 {
24 namespace Generic
25 {
26 template <typename> class List;
27 } // namespace Generic
28 } // namespace Collections
29 namespace Xml
30 {
31 class XmlReader;
32 class XmlTextWriter;
33 } // namespace Xml
34 } // namespace System
35 
36 namespace Aspose {
37 
38 namespace Pdf {
39 
40 namespace Drawing {
41 
45 class ASPOSE_PDF_SHARED_CLASS Circle final : public Aspose::Pdf::Drawing::Shape
46 {
47  typedef Circle ThisType;
49 
50  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
51  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
52 
53  friend class Aspose::Pdf::PageGenerator;
55 
56 public:
57 
61  ASPOSE_PDF_SHARED_API double get_PosX() const;
65  ASPOSE_PDF_SHARED_API void set_PosX(double value);
69  ASPOSE_PDF_SHARED_API double get_PosY() const;
73  ASPOSE_PDF_SHARED_API void set_PosY(double value);
77  ASPOSE_PDF_SHARED_API double get_Radius() const;
81  ASPOSE_PDF_SHARED_API void set_Radius(double value);
82 
89  ASPOSE_PDF_SHARED_API Circle(float posX, float posY, float radius);
90 
91 protected:
92 
93  Circle();
94 
95  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Circle, CODEPORTING_ARGS());
96  ASPOSE_PDF_SHARED_API void GetPathOperators(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Operator>>> operators) override;
97  ASPOSE_PDF_SHARED_API System::SharedPtr<Pdf::Rectangle> GetRect() override;
98  ASPOSE_PDF_SHARED_API void Serialize(System::SharedPtr<System::Xml::XmlTextWriter> writer) override;
99  ASPOSE_PDF_SHARED_API void Deserialize(System::SharedPtr<System::Xml::XmlReader> reader) override;
100 
101 private:
102 
103  double posX;
104  double posY;
105  double radius;
106 
107 };
108 
109 } // namespace Drawing
110 } // namespace Pdf
111 } // namespace Aspose
112 
113 
virtual ASPOSE_PDF_SHARED_API void Serialize(System::SharedPtr< System::Xml::XmlTextWriter > writer)
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
virtual ASPOSE_PDF_SHARED_API void Deserialize(System::SharedPtr< System::Xml::XmlReader > reader)
Represents circle.
Definition: Circle.h:45
Definition: Artifact.h:67
Represents shape - the base graphics object.
Definition: Shape.h:60
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
means saving in XML format
Definition: AFRelationship.h:4
List forward declaration.
Definition: Artifact.h:74
Represents a Registration Mark annotation.
Definition: RegistrationMarkAnnotation.h:47
Whole PDF file will be submitted.