CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbShape.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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#include "DwgDeclareMembers.h"
34
35
52{
53public:
54
55 /*
56 OdDbShape(const OdGePoint3d& position,
57 double size,
58 const OdChar* name,
59 double rotation = 0,
60 double widthFactor = 0);
61 */
62
64
70
77 const OdGePoint3d& position);
78
82 double size() const;
83
88 void setSize(
89 double size);
90
96 OdString name() const;
97
106 const OdString& name);
107
113 double rotation() const;
114
122 double rotation);
123
127 double widthFactor() const;
128
135 double widthFactor);
136
148 double oblique() const;
149
163 double oblique);
164
171 double thickness() const;
172
180 double thickness);
181
186
192 const OdGeVector3d& normal);
193
194 bool isPlanar() const;
195
197 OdGePlane& plane,
198 OdDb::Planarity& planarity) const;
199
207
216 OdInt16 shapeNumber);
217
227
238 OdDbObjectId styleId);
239
241 OdGiWorldDraw* pWd) const;
242
244 OdDbDwgFiler* pFiler);
245
247 OdDbDwgFiler* pFiler) const;
248
250 OdDbDxfFiler* pFiler);
251
253 OdDbDxfFiler* pFiler) const;
254
255 void dxfOut(
256 OdDbDxfFiler* pFiler) const;
257
259 OdDbDxfFiler* pFiler);
260
262 OdDbDxfFiler* pFiler) const;
263
265 void* pClsid) const;
266
268 const OdGeMatrix3d& xfm);
269
271};
272
277
278#include "TD_PackPop.h"
279
280#endif
281
#define DBENT_EXPORT
Definition: DbExport.h:67
OdSmartPtr< OdDbShape > OdDbShapePtr
Definition: DbShape.h:276
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)
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
DWGMAP_DECLARE_MEMBERS(OdDbShape)
GLsizeiptr size
Definition: gles2_ext.h:182
GLuint const GLchar * name
Definition: gles2_ext.h:265
Planarity
Definition: DbEntity.h:74