CFx SDK Documentation  2020SP3
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 
OdResult
OdResult
Definition: OdResult.h:29
OdGePlane
Definition: GePlane.h:45
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
OdDbShape::dwgInFields
OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbShape::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbShape)
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdDb::Planarity
Planarity
Definition: DbEntity.h:74
OdDbShape::dxfOutFields_R12
void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
OdDbShape::setRotation
void setRotation(double rotation)
OdDbShape::styleId
OdDbObjectId styleId() const
OdDbObjectId
Definition: DbObjectId.h:99
OdDbShapePtr
OdSmartPtr< OdDbShape > OdDbShapePtr
Definition: DbShape.h:275
TD_PackPop.h
OdDbShape::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdInt16
short OdInt16
Definition: OdPlatformSettings.h:756
size
GLsizeiptr size
Definition: gles2_ext.h:182
OdDbShape::dxfOutFields
void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbShape
Definition: DbShape.h:51
OdDbShape::dxfInFields_R12
OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
OdDbShape::widthFactor
double widthFactor() const
OdDbShape::getPlane
virtual OdResult getPlane(OdGePlane &plane, OdDb::Planarity &planarity) const
OdDbShape::size
double size() const
OdDbShape::setPosition
void setPosition(const OdGePoint3d &position)
OdDbShape::subWorldDraw
bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbShape::dxfInFields
OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
DbEntity.h
OdDbShape::setName
OdResult setName(const OdString &name)
OdDbShape::getEcs
OdGeMatrix3d getEcs() const
OdDbShape::rotation
double rotation() const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbShape::setShapeNumber
void setShapeNumber(OdInt16 shapeNumber)
OdDbShape::name
OdString name() const
OdDbShape::setWidthFactor
void setWidthFactor(double widthFactor)
OdDbShape::oblique
double oblique() const
OdDbShape::dwgOutFields
void dwgOutFields(OdDbDwgFiler *pFiler) const
TD_PackPush.h
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbShape::setOblique
void setOblique(double oblique)
OdDbShape::normal
OdGeVector3d normal() const
OdDbEntity
Definition: DbEntity.h:90
OdDbShape::thickness
double thickness() const
OdDbShape::OdDbShape
OdDbShape()
OdDbShape::position
OdGePoint3d position() const
OdDbShape::dxfOut
void dxfOut(OdDbDxfFiler *pFiler) const
OdDbShape::setThickness
void setThickness(double thickness)
OdDbShape::setSize
void setSize(double size)
OdDbShape::shapeNumber
OdInt16 shapeNumber() const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbShape::setNormal
void setNormal(const OdGeVector3d &normal)
OdDbShape::setStyleId
OdResult setStyleId(OdDbObjectId styleId)
OdDbShape::isPlanar
bool isPlanar() const
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbShape::subGetClassID
OdResult subGetClassID(void *pClsid) const