CFx SDK Documentation  2023 SP0
PdfPublish2dGeometryBlock.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
26 //
27 // PdfPublish2dGeometryBlock.h
28 //
30 
31 #ifndef _PDF_PUBLISH_2DGEOM_BLOCK_INCLUDED_
32 #define _PDF_PUBLISH_2DGEOM_BLOCK_INCLUDED_
33 
34 #include "PdfPublishCommon.h"
35 #include "PdfPublishBaseObject.h"
36 #include "PdfPublishImage.h"
37 #include "PdfPublishText.h"
38 
39 #include "Ge/GeEllipArc2d.h"
40 
44 namespace OdPdfPublish{
45 
50 {
51 public:
52  //DOM-IGNORE-BEGIN
55  //DOM-IGNORE-END
56 
61 
65  virtual ~Od2dGeometryBlock();
66 
67  void setOrigin(const OdGePoint2d& origin);
68 
69  void addLine(const OdGePoint2dArray& points);
70  void addLine(const OdGePoint2d& start, const OdGePoint2d& end);
71  void addLine(OdUInt32 nPoints, const OdGePoint2d* pPoints);
72  void addCircle(const OdGeCircArc2d& circle);
73  void addEllipse(const OdGeEllipArc2d& ellipse);
74  void addCurve(const OdGeNurbCurve2d& nurb);
75 
76  void putColor(ODCOLORREF color);
77  void putLineWeight(double lw);
80  void putTransform(const OdGeMatrix2d& transform);
81 
82  //start drawing contour
83  void startContour();
84  //finish contour using rule
86 
87  void addText(const OdTextPtr& text, const OdRect& location);
88  void addImage(const OdImagePtr& image, const OdRect& location);
89 };
90 
95 
96 }
97 #endif // _PDF_PUBLISH_2DGEOM_BLOCK_INCLUDED_
98 
#define ODCOLORREF
Definition: OdPlatform.h:883
unsigned int OdUInt32
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
void putLineJoin(Geometry::PDFLineJoin lineJoin)
void addLine(OdUInt32 nPoints, const OdGePoint2d *pPoints)
void putLineCap(Geometry::PDFLineCap lineCap)
void addText(const OdTextPtr &text, const OdRect &location)
void addCircle(const OdGeCircArc2d &circle)
ODRX_DECLARE_MEMBERS(Od2dGeometryBlock)
void addEllipse(const OdGeEllipArc2d &ellipse)
void addLine(const OdGePoint2dArray &points)
void addImage(const OdImagePtr &image, const OdRect &location)
void setOrigin(const OdGePoint2d &origin)
void putTransform(const OdGeMatrix2d &transform)
void finishContour(Geometry::PDFFinishRule rule)
void addLine(const OdGePoint2d &start, const OdGePoint2d &end)
void addCurve(const OdGeNurbCurve2d &nurb)
void putColor(ODCOLORREF color)
GLint location
Definition: gles2_ext.h:284
SMARTPTR(OdFile)