CFx SDK Documentation  2022 SP0
PdfPublish2dGeometryReference.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 // PdfPublish2dGeometryReference.h
28 //
30 
31 #ifndef _PDF_PUBLISH_2DGEOM_REF_INCLUDED_
32 #define _PDF_PUBLISH_2DGEOM_REF_INCLUDED_
33 
34 #include "PdfPublishCommon.h"
35 #include "PdfPublishBaseObject.h"
37 
41 namespace OdPdfPublish{
42 
47 {
48 public:
49  //DOM-IGNORE-BEGIN
52  //DOM-IGNORE-END
53 
58 
63 
64  void setBorder(bool state);
66  void getBorder(bool& state) const;
67  void getBorderColor(ODCOLORREF& color) const;
68 
69  void setTransform(const OdGeMatrix2d& xfm); //transformation matrix which overrides scale, rotation and location of the reference
70  void getTransform(OdGeMatrix2d& xfm) const;
71 
72  void setGeometryBlock(const Od2dGeometryBlockPtr& block);
73  void getGeometryBlock(Od2dGeometryBlockPtr& block) const;
74 
75  void setScale(double scale); /*0 means scale to rectangle*/
76  void getScale(double& scale) const;
77 
78  void setRotation(double rotation = 0); /*in radians*/
79  void getRotation(double& rotation) const;
80 };
81 
86 
87 }
88 #endif // _PDF_PUBLISH_2DGEOM_REF_INCLUDED_
89 
scale
Definition: DimVarDefs.h:1684
#define ODCOLORREF
Definition: OdPlatform.h:883
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
void getGeometryBlock(Od2dGeometryBlockPtr &block) const
void setGeometryBlock(const Od2dGeometryBlockPtr &block)
void getScale(double &scale) const
void setTransform(const OdGeMatrix2d &xfm)
ODRX_DECLARE_MEMBERS(Od2dGeometryReference)
void getBorderColor(ODCOLORREF &color) const
void getRotation(double &rotation) const
void getBorder(bool &state) const
void setBorderColor(ODCOLORREF color)
void getTransform(OdGeMatrix2d &xfm) const
void setRotation(double rotation=0)
SMARTPTR(OdFile)