CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbUnderlayDefinition.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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#ifndef __OD_DB_UNDERLAY_DEFINITION__
26#define __OD_DB_UNDERLAY_DEFINITION__
27
28#include "TD_PackPush.h"
29
30#include "DbObject.h"
31#include "DbUnderlayHost.h"
32
38{
39public:
41
44
46
47 void setItemName(const OdString& item);
49
50 void setUnderlayItem(const OdString& sourceFileName, const OdString& activeFileName, OdDbUnderlayItemPtr pItem);
52
53 OdResult load(const OdString& password);
54 void unload();
55 bool isLoaded() const;
56 static OdString dictionaryKey(const OdRxClass* underlayDefinitionType);
57
59 OdDbDwgFiler* pFiler);
60
61 virtual void dwgOutFields(
62 OdDbDwgFiler* pFiler) const;
63
65 OdDbDxfFiler* pFiler);
66
67 virtual void dxfOutFields(
68 OdDbDxfFiler* pFiler) const;
69
71
72 virtual void applyPartialUndo(OdDbDwgFiler* pFiler, OdRxClass* pClass) ODRX_OVERRIDE;
73
74 virtual OdDbObjectPtr subWblockClone(OdDbIdMapping& ownerIdMap, OdDbObject* pOwner, bool bPrimary) const ODRX_OVERRIDE;
75};
76
78
79
80// These derived classes are for registering OdDbUnderlayHostPE protocol extension
81
95
97
98
104{
105public:
107
109
110 // Specific DGNUnderlay functions
111 bool useMasterUnits() const;
112 void setUseMasterUnits(bool useMaster);
113
114 int xrefDepth() const;
115 void setXrefDepth(int depth);
116
117 bool showRasterRef() const;
118 void setShowRasterRef(bool bShow);
119};
120
122
128{
129public:
130 //DOM-IGNORE-BEGIN
132 //DOM-IGNORE-END
133
138
144};
145
150
156{
157public:
159
161
162 void setSourceFileName( const OdString& fname );
164
167
169 void setDWGModelItemVisible( bool bVisible );
170
172
174 void unload();
175 bool isLoaded() const;
176
178
179 int entityCount( int *pLockCount ) const;
180
181 int fileFound() const;
182
184 OdDbDwgFiler* pFiler );
185
186 virtual void dwgOutFields(
187 OdDbDwgFiler* pFiler ) const;
188
190 OdDbDxfFiler* pFiler );
191
192 virtual void dxfOutFields(
193 OdDbDxfFiler* pFiler ) const;
194
195
196};
197
199
200#include "TD_PackPop.h"
201
202#endif // __OD_DB_UNDERLAY_DEFINITION__
#define DBENT_EXPORT
Definition DbExport.h:67
OdSmartPtr< OdDbObject > OdDbObjectPtr
Definition DbObject.h:1750
OdSmartPtr< OdDbUnderlayDefinition > OdDbUnderlayDefinitionPtr
OdSmartPtr< OdDbPdfDefinition > OdDbPdfDefinitionPtr
OdSmartPtr< OdDbDgnDefinition > OdDbDgnDefinitionPtr
OdSmartPtr< OdDbDwfDefinition > OdDbDwfDefinitionPtr
OdSmartPtr< OdDbNavisworksDefinition > OdDbNavisworksDefinitionPtr
OdSmartPtr< OdDbUnderlayItem > OdDbUnderlayItemPtr
OdSmartPtr< OdRxModule > OdRxModulePtr
#define ODRX_OVERRIDE
OdResult
Definition OdResult.h:29
int xrefDepth() const
void setShowRasterRef(bool bShow)
bool useMasterUnits() const
ODDB_DECLARE_MEMBERS(OdDbDgnDefinition)
void setUseMasterUnits(bool useMaster)
void setXrefDepth(int depth)
bool showRasterRef() const
ODDB_DECLARE_MEMBERS(OdDbDwfDefinition)
bool isDWFx() const
OdString sourceFileName() const
OdResult setActiveFileName(const OdString &fname)
int entityCount(int *pLockCount) const
OdGeExtents3d getExtents() const
ODDB_DECLARE_MEMBERS(OdDbNavisworksDefinition)
void setSourceFileName(const OdString &fname)
void setDWGModelItemVisible(bool bVisible)
bool getDWGModelItemVisible() const
OdString fileType() const
OdString activeFileName() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
static OdRxModulePtr loadPdfUnderlayModule()
ODDB_DECLARE_MEMBERS(OdDbPdfDefinition)
OdResult load(const OdString &password)
OdString getItemName() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
static OdString dictionaryKey(const OdRxClass *underlayDefinitionType)
void setSourceFileName(const OdString &name)
virtual OdDbObjectPtr subWblockClone(OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const ODRX_OVERRIDE
void setUnderlayItem(const OdString &sourceFileName, const OdString &activeFileName, OdDbUnderlayItemPtr pItem)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setItemName(const OdString &item)
ODDB_DECLARE_MEMBERS(OdDbUnderlayDefinition)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbUnderlayItemPtr getUnderlayItem() const
virtual void applyPartialUndo(OdDbDwgFiler *pFiler, OdRxClass *pClass) ODRX_OVERRIDE
OdString getActiveFileName() const
OdString getSourceFileName() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdDbObjectId postDefinitionToDb(OdDbDatabase *pDb, const OdString &defName)
GLuint const GLchar * name
Definition gles2_ext.h:265