CFx SDK Documentation  2020SP3
DbBody.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 GEOMENT_DBBODY_H
28 #define GEOMENT_DBBODY_H
29 
30 #include "TD_PackPush.h"
31 #include "ModelerDefs.h"
32 #include "DbEntity.h"
33 #include "DbSubentId.h"
34 
35 class OdModelerGeometry;
36 class OdStreamBuf;
37 class OdBrBrep;
38 class OdBrEntity;
39 class OdBrMesh2dFilter;
40 class OdBrMesh2d;
41 
55 {
56 public:
58 
63 
67  bool isNull() const;
68 
78  OdStreamBuf* pStreamBuf,
79  AfTypeVer typeVer = kAfTypeVerAny);
80 
90  static OdResult acisOut(
91  const OdString& filename,
92  const OdDbEntityPtrArray& solids,
93  AfTypeVer typeVer = kAfVer700|kAfTypeASCII);
94 
108  OdStreamBuf* pStreamBuf,
109  AfTypeVer *pTypeVer = 0);
110 
123  static OdResult acisIn(
124  const OdString& filename,
125  OdDbEntityPtrArray& solids);
126 
132  void brep(
133  OdBrBrep& brep);
134 
136  OdDbDwgFiler* pFiler);
137 
138  virtual void dwgOutFields(
139  OdDbDwgFiler* pFiler) const;
140 
142  OdDbDxfFiler* pFiler);
143 
144  virtual void dxfOutFields(
145  OdDbDxfFiler* pFiler) const;
146 
152  virtual bool subWorldDraw(
153  OdGiWorldDraw* pWd) const;
154 
161  virtual void subViewportDraw(
162  OdGiViewportDraw* pVd) const;
163 
186  OdDb::DwgVersion ver,
187  OdDbObjectId& replaceId,
188  bool& exchangeXData);
189 
190 
198  virtual OdResult setBody( const void* pGeometry );
199 
203  virtual void *body( ) const;
204 
222  OdRxObjectPtrArray& entitySet) const;
223 
233  const OdGeMatrix3d& xfn );
234 
244  virtual void saveAs(
245  OdGiWorldDraw* pWd,
246  OdDb::DwgVersion ver ) const;
247 
248 
257 
268  virtual OdResult subGetGsMarkersAtSubentPath(const OdDbFullSubentPath& subPath, OdGsMarkerArray& gsMarkers) const;
269 
285  OdGsMarker gsMark,
286  const OdGePoint3d& pickPoint,
287  const OdGeMatrix3d& viewXform,
288  OdDbFullSubentPathArray& subentPaths,
289  const OdDbObjectIdArray* pEntAndInsertStack ) const;
293  virtual OdUInt32 numChanges() const;
294 
300  virtual OdDbSubentId internalSubentId(void* ent) const;
301 
307  virtual void* internalSubentPtr(const OdDbSubentId& id) const;
308 
320 
329  virtual OdResult subGetGeomExtents( OdGeExtents3d& extents) const;
330 
335 
346  static OdResult generateMesh(const OdDbEntity *pEnt, const OdBrMesh2dFilter & filter, OdBrMesh2d &mesh2d);
347 };
348 
353 
354 #include "TD_PackPop.h"
355 
356 #endif
357 
OdResult
OdResult
Definition: OdResult.h:29
AfTypeVer
int AfTypeVer
Definition: ModelerDefs.h:29
OdString
Definition: OdString.h:95
OdDbBody::internalSubentPtr
virtual void * internalSubentPtr(const OdDbSubentId &id) const
OdDbBody::subViewportDraw
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdDbBody::acisOut
OdResult acisOut(OdStreamBuf *pStreamBuf, AfTypeVer typeVer=kAfTypeVerAny)
OdDbObjectId
Definition: DbObjectId.h:99
OdDbBody::numChanges
virtual OdUInt32 numChanges() const
kAfTypeVerAny
@ kAfTypeVerAny
Definition: ModelerDefs.h:80
OdDbFullSubentPath
Definition: DbSubentId.h:49
OdDbBody::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdArray< OdDbEntityPtr >
TD_PackPop.h
OdGsMarker
ptrdiff_t OdGsMarker
Definition: OdPlatformSettings.h:889
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbBody::body
virtual void * body() const
OdDbBody::acisIn
static OdResult acisIn(const OdString &filename, OdDbEntityPtrArray &solids)
OdDbBody::isNull
bool isNull() const
OdDb::DwgVersion
DwgVersion
Definition: OdaDefs.h:46
OdDbBody::setBody
virtual OdResult setBody(const void *pGeometry)
OdDbBody::decomposeForSave
virtual OdDbObjectPtr decomposeForSave(OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
OdDbBody
Definition: DbBody.h:55
OdDbBody::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
kAfVer700
@ kAfVer700
Definition: ModelerDefs.h:46
OdSmartPtr< OdDbObject >
OdGePoint3d
Definition: GePoint3d.h:55
DbEntity.h
OdDb::SubentType
SubentType
Definition: DbBaseSubentId.h:38
OdDbBody::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbBody::subGetGsMarkersAtSubentPath
virtual OdResult subGetGsMarkersAtSubentPath(const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const
OdDbBody::acisIn
OdResult acisIn(OdStreamBuf *pStreamBuf, AfTypeVer *pTypeVer=0)
OdDbBodyPtr
OdSmartPtr< OdDbBody > OdDbBodyPtr
Definition: DbBody.h:352
OdDbBody::saveAs
virtual void saveAs(OdGiWorldDraw *pWd, OdDb::DwgVersion ver) const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbBody::generateMesh
static OdResult generateMesh(const OdDbEntity *pEnt, const OdBrMesh2dFilter &filter, OdBrMesh2d &mesh2d)
OdModelerGeometry
Definition: ModelerGeometry.h:78
TD_PackPush.h
OdDbBody::subGetGeomExtents
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
OdBrMesh2dFilter
Definition: BrMesh2dFilter.h:42
OdBrBrep
Definition: BrBrep.h:45
OdDbBody::acisOut
static OdResult acisOut(const OdString &filename, const OdDbEntityPtrArray &solids, AfTypeVer typeVer=kAfVer700|kAfTypeASCII)
OdGiWorldDraw
Definition: GiWorldDraw.h:44
kAfTypeASCII
@ kAfTypeASCII
Definition: ModelerDefs.h:68
OdBrEntity
Definition: BrEntity.h:54
OdDbEntity
Definition: DbEntity.h:90
OdDbBody::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbBody::OdDbBody
OdDbBody()
OdDbBody::subGetSubentPathsAtGsMarker
virtual OdResult subGetSubentPathsAtGsMarker(OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &viewXform, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack) const
OdDbBody::subExplode
virtual OdResult subExplode(OdRxObjectPtrArray &entitySet) const
OdDbBody::brep
void brep(OdBrBrep &brep)
OdGiDrawableTraits
Definition: Gi.h:71
OdStreamBuf
Definition: OdStreamBuf.h:67
OdDbBody::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdGeExtents3d
Definition: GeExtents3d.h:45
OdDbBody::subSubentPtr
virtual OdDbEntityPtr subSubentPtr(const OdDbFullSubentPath &id) const
ModelerDefs.h
OdDbBody::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfn)
OdBrMesh2d
Definition: BrMesh2d.h:41
OdDbBody::setSubentPath
static OdResult setSubentPath(OdBrEntity &ent, OdDbFullSubentPath &subpath)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbBody::internalSubentId
virtual OdDbSubentId internalSubentId(void *ent) const
DbSubentId.h
OdDbBody::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbBody::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbBody)
OdDbSubentId
Definition: DbBaseSubentId.h:72
OdGiViewportDraw
Definition: GiViewportDraw.h:50