Line.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/Generator/Drawing/Shape.h"
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 class Operator;
14 class PageGenerator;
15 class Rectangle;
16 } // namespace Pdf
17 } // namespace Aspose
18 namespace System
19 {
20 namespace Collections
21 {
22 namespace Generic
23 {
24 template <typename> class List;
25 } // namespace Generic
26 } // namespace Collections
27 namespace Xml
28 {
29 class XmlReader;
30 class XmlTextWriter;
31 } // namespace Xml
32 } // namespace System
33 
34 namespace Aspose {
35 
36 namespace Pdf {
37 
38 namespace Drawing {
39 
43 class ASPOSE_PDF_SHARED_CLASS Line final : public Aspose::Pdf::Drawing::Shape
44 {
45  typedef Line ThisType;
47 
48  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
49  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
50 
51  friend class Aspose::Pdf::PageGenerator;
52 
53 public:
54 
60  ASPOSE_PDF_SHARED_API System::ArrayPtr<float> get_PositionArray() const;
66  ASPOSE_PDF_SHARED_API void set_PositionArray(System::ArrayPtr<float> value);
67 
72  ASPOSE_PDF_SHARED_API Line(System::ArrayPtr<float> positionArray);
73 
74 protected:
75 
76  Line();
77 
78  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Line, CODEPORTING_ARGS());
79  ASPOSE_PDF_SHARED_API void GetPathOperators(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Operator>>> operators) override;
80  ASPOSE_PDF_SHARED_API System::SharedPtr<Pdf::Rectangle> GetRect() override;
81  ASPOSE_PDF_SHARED_API void Serialize(System::SharedPtr<System::Xml::XmlTextWriter> writer) override;
82  ASPOSE_PDF_SHARED_API void Deserialize(System::SharedPtr<System::Xml::XmlReader> reader) override;
83 
84 private:
85 
86  System::ArrayPtr<float> positionArray;
87 
88 };
89 
90 } // namespace Drawing
91 } // namespace Pdf
92 } // namespace Aspose
93 
94 
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
Represents line.
Definition: Line.h:43
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
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.