CFx SDK Documentation  2022 SP0
DbUnderlayDefinition.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 #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 {
39 public:
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 
70  virtual OdDbObjectId postDefinitionToDb(OdDbDatabase* pDb, const OdString& defName);
71 };
72 
74 
75 
76 // These inheritants are for registering OdDbUnderlayHostPE protocol extension
77 
83 {
84 public:
86 
88 
89  bool isDWFx() const;
90 };
91 
93 
94 
100 {
101 public:
103 
105 
106  // Specific DGNUnderlay functions
107  bool useMasterUnits() const;
108  void setUseMasterUnits(bool useMaster);
109 
110  int xrefDepth() const;
111  void setXrefDepth(int depth);
112 
113  bool showRasterRef() const;
114  void setShowRasterRef(bool bShow);
115 };
116 
118 
124 {
125 public:
127 
129 };
130 
132 
138 {
139 public:
141 
143 
144  void setSourceFileName( const OdString& fname );
146 
149 
151  void setDWGModelItemVisible( bool bVisible );
152 
154 
156  void unload();
157  bool isLoaded() const;
158 
160 
161  int entityCount( int *pLockCount ) const;
162 
163  int fileFound() const;
164 
166  OdDbDwgFiler* pFiler );
167 
168  virtual void dwgOutFields(
169  OdDbDwgFiler* pFiler ) const;
170 
172  OdDbDxfFiler* pFiler );
173 
174  virtual void dxfOutFields(
175  OdDbDxfFiler* pFiler ) const;
176 
177 
178 };
179 
181 
182 #include "TD_PackPop.h"
183 
184 #endif // __OD_DB_UNDERLAY_DEFINITION__
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
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
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
virtual OdDbObjectId postDefinitionToDb(OdDbDatabase *pDb, const OdString &defName)
GLuint const GLchar * name
Definition: gles2_ext.h:265