CFx SDK Documentation  2023 SP0
DbShape.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 
25 
26 
27 #ifndef _OD_DB_SHAPE_
28 #define _OD_DB_SHAPE_
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbEntity.h"
33 
34 
51 {
52 public:
53 
54  /*
55  OdDbShape(const OdGePoint3d& position,
56  double size,
57  const OdChar* name,
58  double rotation = 0,
59  double widthFactor = 0);
60  */
61 
63 
69 
76  const OdGePoint3d& position);
77 
81  double size() const;
82 
87  void setSize(
88  double size);
89 
95  OdString name() const;
96 
105  const OdString& name);
106 
112  double rotation() const;
113 
121  double rotation);
122 
126  double widthFactor() const;
127 
134  double widthFactor);
135 
147  double oblique() const;
148 
162  double oblique);
163 
170  double thickness() const;
171 
179  double thickness);
180 
185 
190  void setNormal(
191  const OdGeVector3d& normal);
192 
193  bool isPlanar() const;
194 
196  OdGePlane& plane,
197  OdDb::Planarity& planarity) const;
198 
206 
215  OdInt16 shapeNumber);
216 
226 
237  OdDbObjectId styleId);
238 
240  OdGiWorldDraw* pWd) const;
241 
243  OdDbDwgFiler* pFiler);
244 
246  OdDbDwgFiler* pFiler) const;
247 
249  OdDbDxfFiler* pFiler);
250 
252  OdDbDxfFiler* pFiler) const;
253 
254  void dxfOut(
255  OdDbDxfFiler* pFiler) const;
256 
258  OdDbDxfFiler* pFiler);
259 
261  OdDbDxfFiler* pFiler) const;
262 
264  void* pClsid) const;
265 
267  const OdGeMatrix3d& xfm);
268 
270 };
271 
276 
277 #include "TD_PackPop.h"
278 
279 #endif
280 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbShape > OdDbShapePtr
Definition: DbShape.h:275
short OdInt16
OdResult
Definition: OdResult.h:29
void setOblique(double oblique)
bool subWorldDraw(OdGiWorldDraw *pWd) const
void dwgOutFields(OdDbDwgFiler *pFiler) const
void dxfOut(OdDbDxfFiler *pFiler) const
double size() const
OdResult setStyleId(OdDbObjectId styleId)
OdGePoint3d position() const
OdResult subGetClassID(void *pClsid) const
void setWidthFactor(double widthFactor)
ODDB_DECLARE_MEMBERS(OdDbShape)
void setPosition(const OdGePoint3d &position)
virtual OdResult getPlane(OdGePlane &plane, OdDb::Planarity &planarity) const
double thickness() const
OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
void setThickness(double thickness)
double widthFactor() const
void setSize(double size)
OdInt16 shapeNumber() const
void dxfOutFields(OdDbDxfFiler *pFiler) const
bool isPlanar() const
void setShapeNumber(OdInt16 shapeNumber)
OdGeMatrix3d getEcs() const
OdResult setName(const OdString &name)
OdString name() const
void setNormal(const OdGeVector3d &normal)
void setRotation(double rotation)
OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
double oblique() const
OdGeVector3d normal() const
void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
double rotation() const
OdDbObjectId styleId() const
GLsizeiptr size
Definition: gles2_ext.h:182
GLuint const GLchar * name
Definition: gles2_ext.h:265
Planarity
Definition: DbEntity.h:74