CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbUnderlayDefinition.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#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 void applyPartialUndo(OdDbDwgFiler* pFiler, OdRxClass* pClass);
73};
74
76
77
78// These inheritants are for registering OdDbUnderlayHostPE protocol extension
79
85{
86public:
88
90
91 bool isDWFx() const;
92};
93
95
96
102{
103public:
105
107
108 // Specific DGNUnderlay functions
109 bool useMasterUnits() const;
110 void setUseMasterUnits(bool useMaster);
111
112 int xrefDepth() const;
113 void setXrefDepth(int depth);
114
115 bool showRasterRef() const;
116 void setShowRasterRef(bool bShow);
117};
118
120
126{
127public:
128 //DOM-IGNORE-BEGIN
130 //DOM-IGNORE-END
131
136
142};
143
148
154{
155public:
157
159
160 void setSourceFileName( const OdString& fname );
162
165
167 void setDWGModelItemVisible( bool bVisible );
168
170
172 void unload();
173 bool isLoaded() const;
174
176
177 int entityCount( int *pLockCount ) const;
178
179 int fileFound() const;
180
182 OdDbDwgFiler* pFiler );
183
184 virtual void dwgOutFields(
185 OdDbDwgFiler* pFiler ) const;
186
188 OdDbDxfFiler* pFiler );
189
190 virtual void dxfOutFields(
191 OdDbDxfFiler* pFiler ) const;
192
193
194};
195
197
198#include "TD_PackPop.h"
199
200#endif // __OD_DB_UNDERLAY_DEFINITION__
#define DBENT_EXPORT
Definition: DbExport.h:67
OdSmartPtr< OdDbUnderlayDefinition > OdDbUnderlayDefinitionPtr
OdSmartPtr< OdDbPdfDefinition > OdDbPdfDefinitionPtr
OdSmartPtr< OdDbDgnDefinition > OdDbDgnDefinitionPtr
OdSmartPtr< OdDbDwfDefinition > OdDbDwfDefinitionPtr
OdSmartPtr< OdDbNavisworksDefinition > OdDbNavisworksDefinitionPtr
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)
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
OdString getActiveFileName() const
OdString getSourceFileName() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void applyPartialUndo(OdDbDwgFiler *pFiler, OdRxClass *pClass)
virtual OdDbObjectId postDefinitionToDb(OdDbDatabase *pDb, const OdString &defName)
GLuint const GLchar * name
Definition: gles2_ext.h:265