CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbBody.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 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#include "DwgDeclareMembers.h"
35
37class OdStreamBuf;
38class OdBrBrep;
39class OdBrEntity;
41class OdBrMesh2d;
42namespace GeMesh { class OdGeTrMesh; }
44
55{
56public:
57 //DOM-IGNORE-BEGIN
59 //DOM-IGNORE-END
60
65
73 bool isNull() const;
74
84 OdStreamBuf* pStreamBuf,
85 AfTypeVer typeVer = kAfTypeVerAny) const;
86
97 const OdString& filename,
98 const OdDbEntityPtrArray& solids,
100
114 OdStreamBuf* pStreamBuf,
115 AfTypeVer *pTypeVer = 0);
116
135 const OdString& filename,
136 OdDbEntityPtrArray& solids,
137 ColorConversionType convAcisColors = kConvNone);
138
144 void brep(
145 OdBrBrep& brep);
146
147 bool getFaceMesh(GeMesh::OdGeTrMesh& mesh, OdGsMarker iFace, const wrTriangulationParams& triangulationParams) const;
148
150 OdDbDwgFiler* pFiler);
151
152 virtual void dwgOutFields(
153 OdDbDwgFiler* pFiler) const;
154
156 OdDbDxfFiler* pFiler);
157
158 virtual void dxfOutFields(
159 OdDbDxfFiler* pFiler) const;
160
169 virtual bool subWorldDraw(
170 OdGiWorldDraw* pWd) const;
171
179 virtual void subViewportDraw(
180 OdGiViewportDraw* pVd) const;
181
212 OdDbObjectId& replaceId,
213 bool& exchangeXData);
214
223 virtual OdResult setBody(const void* pGeometry);
224
228 virtual void* body() const;
229
247 OdRxObjectPtrArray& entitySet) const;
248
258 const OdGeMatrix3d& xfn );
259
270 virtual void saveAs(
271 OdGiWorldDraw* pWd,
272 OdDb::DwgVersion ver ) const;
273
282
293
309 OdGsMarker gsMark,
310 const OdGePoint3d& pickPoint,
311 const OdGeMatrix3d& viewXform,
312 OdDbFullSubentPathArray& subentPaths,
313 const OdDbObjectIdArray* pEntAndInsertStack ) const;
314
320 virtual OdUInt32 numChanges() const;
321
329 virtual OdDbSubentId internalSubentId(void* ent) const;
330
336 virtual void* internalSubentPtr(const OdDbSubentId& id) const;
337
351
361 virtual OdResult subGetGeomExtents( OdGeExtents3d& extents) const;
362
367 virtual void subClose();
368
379
390 static OdResult generateMesh(const OdDbEntity *pEnt, const OdBrMesh2dFilter &filter, OdBrMesh2d &mesh2d);
391
392 //DOM-IGNORE-BEGIN
393 virtual void copyFrom(const OdRxObject* pSource) ODRX_OVERRIDE;
394 //DOM-IGNORE-END
395};
396
402
403#include "TD_PackPop.h"
404
405#endif
406
OdSmartPtr< OdDbBody > OdDbBodyPtr
Definition: DbBody.h:401
#define DBENT_EXPORT
Definition: DbExport.h:67
ColorConversionType
Definition: ModelerDefs.h:171
@ kConvNone
Definition: ModelerDefs.h:173
@ kAfTypeVerAny
Definition: ModelerDefs.h:80
@ kAfTypeASCII
Definition: ModelerDefs.h:68
@ kAfVer700
Definition: ModelerDefs.h:46
int AfTypeVer
Definition: ModelerDefs.h:29
ptrdiff_t OdGsMarker
unsigned int OdUInt32
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual void saveAs(OdGiWorldDraw *pWd, OdDb::DwgVersion ver) const
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
bool isNull() const
OdResult acisIn(OdStreamBuf *pStreamBuf, AfTypeVer *pTypeVer=0)
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
virtual void * body() const
virtual OdResult setBody(const void *pGeometry)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdResult acisOut(OdStreamBuf *pStreamBuf, AfTypeVer typeVer=kAfTypeVerAny) const
virtual OdDbEntityPtr subSubentPtr(const OdDbFullSubentPath &id) const
virtual void copyFrom(const OdRxObject *pSource) ODRX_OVERRIDE
DWGMAP_DECLARE_MEMBERS(OdDbBody)
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
static OdResult setSubentPath(OdBrEntity &ent, OdDbFullSubentPath &subpath)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void brep(OdBrBrep &brep)
virtual OdUInt32 numChanges() const
virtual OdResult subExplode(OdRxObjectPtrArray &entitySet) const
virtual void * internalSubentPtr(const OdDbSubentId &id) const
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
static OdResult acisIn(const OdString &filename, OdDbEntityPtrArray &solids, ColorConversionType convAcisColors=kConvNone)
virtual void subClose()
bool getFaceMesh(GeMesh::OdGeTrMesh &mesh, OdGsMarker iFace, const wrTriangulationParams &triangulationParams) const
virtual OdDbObjectPtr decomposeForSave(OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
virtual OdResult subTransformBy(const OdGeMatrix3d &xfn)
virtual OdResult subGetSubentPathsAtGsMarker(OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &viewXform, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack) const
virtual OdDbSubentId internalSubentId(void *ent) const
static OdResult generateMesh(const OdDbEntity *pEnt, const OdBrMesh2dFilter &filter, OdBrMesh2d &mesh2d)
static OdResult acisOut(const OdString &filename, const OdDbEntityPtrArray &solids, AfTypeVer typeVer=kAfVer700|kAfTypeASCII)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdResult subGetGsMarkersAtSubentPath(const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
DwgVersion
Definition: OdaDefs.h:47