CFx SDK Documentation  2020SP3
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 
GeEllipArc2d.h
PdfPublishText.h
PdfPublishCommon.h
PdfPublishImage.h
OdGeNurbCurve2d
Definition: GeNurbCurve2d.h:50
OdGsDCRect
Definition: GsDefs.h:111
OdPdfPublish::Od2dGeometryBlock::finishContour
void finishContour(Geometry::PDFFinishRule rule)
OdPdfPublish::Od2dGeometryBlock::putLineWeight
void putLineWeight(double lw)
OdPdfPublish::Od2dGeometryBlock::addCurve
void addCurve(const OdGeNurbCurve2d &nurb)
OdArray< OdGePoint2d, OdMemoryAllocator< OdGePoint2d > >
OdPdfPublish::Od2dGeometryBlock::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(Od2dGeometryBlock)
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdPdfPublish::Od2dGeometryBlock::addImage
void addImage(const OdImagePtr &image, const OdRect &location)
OdPdfPublish::Od2dGeometryBlock::putLineCap
void putLineCap(Geometry::PDFLineCap lineCap)
OdPdfPublish::Od2dGeometryBlock::putColor
void putColor(ODCOLORREF color)
OdPdfPublish::Od2dGeometryBlock::addLine
void addLine(const OdGePoint2d &start, const OdGePoint2d &end)
OdPdfPublish::SMARTPTR
SMARTPTR(OdFile)
OdGeCircArc2d
Definition: GeCircArc2d.h:47
OdPdfPublish::Geometry::PDFFinishRule
PDFFinishRule
Definition: PdfPublishCommon.h:476
PDFPUBLISH_TOOLKIT
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
OdPdfPublish::Geometry::PDFLineCap
PDFLineCap
Definition: PdfPublishCommon.h:460
OdPdfPublish::Od2dGeometryBlock::addCircle
void addCircle(const OdGeCircArc2d &circle)
OdPdfPublish::Geometry::PDFLineJoin
PDFLineJoin
Definition: PdfPublishCommon.h:468
OdPdfPublish::Od2dGeometryBlock::Od2dGeometryBlock
Od2dGeometryBlock()
OdPdfPublish::Od2dGeometryBlock::addLine
void addLine(const OdGePoint2dArray &points)
OdPdfPublish
Definition: PdfPublish.h:42
OdPdfPublish::Od2dGeometryBlock::ODRX_HEAP_OPERATORS
ODRX_HEAP_OPERATORS()
OdPdfPublish::Od2dGeometryBlock::addLine
void addLine(OdUInt32 nPoints, const OdGePoint2d *pPoints)
OdPdfPublish::Od2dGeometryBlock
Definition: PdfPublish2dGeometryBlock.h:50
OdPdfPublish::Od2dGeometryBlock::putTransform
void putTransform(const OdGeMatrix2d &transform)
location
GLint location
Definition: gles2_ext.h:284
PdfPublishBaseObject.h
OdGeMatrix2d
Definition: GeMatrix2d.h:73
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
OdPdfPublish::Od2dGeometryBlock::setOrigin
void setOrigin(const OdGePoint2d &origin)
OdPdfPublish::Od2dGeometryBlock::putLineJoin
void putLineJoin(Geometry::PDFLineJoin lineJoin)
OdPdfPublish::Od2dGeometryBlock::startContour
void startContour()
OdPdfPublish::Od2dGeometryBlock::~Od2dGeometryBlock
virtual ~Od2dGeometryBlock()
OdPdfPublish::Od2dGeometryBlock::addEllipse
void addEllipse(const OdGeEllipArc2d &ellipse)
OdPdfPublish::Od2dGeometryBlock::addText
void addText(const OdTextPtr &text, const OdRect &location)
OdGeEllipArc2d
Definition: GeEllipArc2d.h:58
OdGePoint2d
Definition: GePoint2d.h:60
OdPdfPublish::OdObject
Definition: PdfPublishBaseObject.h:71