Shape.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/array.h>
5 
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 
8 namespace Aspose
9 {
10 namespace Pdf
11 {
12 class Color;
13 namespace Drawing
14 {
15 class Arc;
16 class Circle;
17 class Curve;
18 class Ellipse;
19 class Graph;
20 class Line;
21 class Path;
22 class Rectangle;
23 } // namespace Drawing
24 class GraphInfo;
25 class Operator;
26 class Page;
27 class Point;
28 class Rectangle;
29 namespace Text
30 {
31 class TextFragment;
32 } // namespace Text
33 } // namespace Pdf
34 } // namespace Aspose
35 namespace System
36 {
37 namespace Collections
38 {
39 namespace Generic
40 {
41 template <typename> class List;
42 } // namespace Generic
43 } // namespace Collections
44 namespace Xml
45 {
46 class XmlReader;
47 class XmlTextWriter;
48 } // namespace Xml
49 } // namespace System
50 
51 namespace Aspose {
52 
53 namespace Pdf {
54 
55 namespace Drawing {
56 
60 class ASPOSE_PDF_SHARED_CLASS Shape : public System::Object
61 {
62  typedef Shape ThisType;
63  typedef System::Object BaseType;
64 
65  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
66  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
67 
76 
77 public:
78 
83  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::GraphInfo> get_GraphInfo() const;
88  ASPOSE_PDF_SHARED_API void set_GraphInfo(System::SharedPtr<Aspose::Pdf::GraphInfo> value);
96  ASPOSE_PDF_SHARED_API void set_Text(System::SharedPtr<Aspose::Pdf::Text::TextFragment> value);
97 
98  ASPOSE_PDF_SHARED_API Shape();
99 
100 protected:
101 
111  virtual ASPOSE_PDF_SHARED_API void ClipShading(System::SharedPtr<Point> start, System::SharedPtr<Point> end);
113  virtual ASPOSE_PDF_SHARED_API void Serialize(System::SharedPtr<System::Xml::XmlTextWriter> writer);
114  virtual ASPOSE_PDF_SHARED_API void Deserialize(System::SharedPtr<System::Xml::XmlReader> reader);
117 
118 private:
119 
122 
124 
125 };
126 
127 } // namespace Drawing
128 } // namespace Pdf
129 } // namespace Aspose
130 
131 
Represents graph - graphics generator paragraph.
Definition: Graph.h:53
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
Represents circle.
Definition: Circle.h:41
ASPOSE_PDF_SHARED_API System::SharedPtr< Pdf::Rectangle > GetRect() override
ASPOSE_PDF_SHARED_API void set_Text(System::SharedPtr< Aspose::Pdf::Text::TextFragment > value)
Sets a text for shape
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::GraphInfo > get_GraphInfo() const
Gets a GraphInfo object that indicates the graph info,such as color, line width,etc.
Represents line.
Definition: Line.h:43
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
Represents bezier curve.
Definition: Curve.h:43
ASPOSE_PDF_SHARED_API void Serialize(System::SharedPtr< System::Xml::XmlTextWriter > writer) override
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Text::TextFragment > get_Text() const
Gets a text for shape
Represents arc.
Definition: Arc.h:50
Represents arc.
Definition: Path.h:42
Represents shape - the base graphics object.
Definition: Shape.h:60
System::String GetArrayString(System::ArrayPtr< float > floatArray)
ASPOSE_PDF_SHARED_API void GetPathOperators(System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator >>> operators) override
ASPOSE_PDF_SHARED_API void Deserialize(System::SharedPtr< System::Xml::XmlReader > reader) override
static void SetTransparency(System::SharedPtr< Page > page, System::SharedPtr< Color > color, System::SharedPtr< Color > strokeColor, System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator >>> operators)
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
ASPOSE_PDF_SHARED_API Shape()
Represents ellipse.
Definition: Ellipse.h:41
A printer&#39;s point (1/72 of an inch).
List forward declaration.
Definition: Artifact.h:74
The coordinates are in the page coordinate context.
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > GetTextOperators(System::SharedPtr< Page > page)
void GetOperators(System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator >>> operators, System::SharedPtr< Page > page, double curX, double curY)
ASPOSE_PDF_SHARED_API void set_GraphInfo(System::SharedPtr< Aspose::Pdf::GraphInfo > value)
Sets a GraphInfo object that indicates the graph info,such as color, line width,etc.
System::ArrayPtr< float > GetArrayFromString(System::String split)
The LocalPath data.
Represents rectangle.
Definition: Rectangle.h:43
ASPOSE_PDF_SHARED_API void ClipShading(System::SharedPtr< Point > start, System::SharedPtr< Point > end) override
Sets clip shading. Start point.End point.
Whole PDF file will be submitted.