CFx SDK Documentation  2020SP3
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__
OdResult
OdResult
Definition: OdResult.h:29
OdDbUnderlayDefinition::isLoaded
bool isLoaded() const
OdDbNavisworksDefinition::setDWGModelItemVisible
void setDWGModelItemVisible(bool bVisible)
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
OdDbUnderlayDefinition::setItemName
void setItemName(const OdString &item)
OdDbUnderlayDefinition
Definition: DbUnderlayDefinition.h:38
OdDbNavisworksDefinition::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbNavisworksDefinition::entityCount
int entityCount(int *pLockCount) const
OdDbNavisworksDefinition::getExtents
OdGeExtents3d getExtents() const
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdDbNavisworksDefinition::activeFileName
OdString activeFileName() const
DbObject.h
OdDbPdfDefinition
Definition: DbUnderlayDefinition.h:124
OdDbUnderlayDefinition::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbNavisworksDefinition::OdDbNavisworksDefinition
OdDbNavisworksDefinition()
OdDbObjectId
Definition: DbObjectId.h:99
OdDbUnderlayDefinition::setUnderlayItem
void setUnderlayItem(const OdString &sourceFileName, const OdString &activeFileName, OdDbUnderlayItemPtr pItem)
OdDbUnderlayDefinition::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbNavisworksDefinition::isLoaded
bool isLoaded() const
OdDbUnderlayDefinitionPtr
OdSmartPtr< OdDbUnderlayDefinition > OdDbUnderlayDefinitionPtr
Definition: DbUnderlayDefinition.h:73
OdDbNavisworksDefinition::fileType
OdString fileType() const
OdDbDgnDefinition
Definition: DbUnderlayDefinition.h:100
OdDbPdfDefinitionPtr
OdSmartPtr< OdDbPdfDefinition > OdDbPdfDefinitionPtr
Definition: DbUnderlayDefinition.h:131
TD_PackPop.h
OdDbDwfDefinitionPtr
OdSmartPtr< OdDbDwfDefinition > OdDbDwfDefinitionPtr
Definition: DbUnderlayDefinition.h:92
OdDbDgnDefinition::useMasterUnits
bool useMasterUnits() const
OdDbNavisworksDefinition
Definition: DbUnderlayDefinition.h:138
OdDbUnderlayDefinition::load
OdResult load(const OdString &password)
OdDbDwfDefinition::OdDbDwfDefinition
OdDbDwfDefinition()
OdDbNavisworksDefinitionPtr
OdSmartPtr< OdDbNavisworksDefinition > OdDbNavisworksDefinitionPtr
Definition: DbUnderlayDefinition.h:180
OdDbPdfDefinition::OdDbPdfDefinition
OdDbPdfDefinition()
OdRxClass
Definition: RxObject.h:865
OdDbUnderlayDefinition::unload
void unload()
OdDbDgnDefinition::setShowRasterRef
void setShowRasterRef(bool bShow)
OdDbDgnDefinition::setXrefDepth
void setXrefDepth(int depth)
OdSmartPtr
Definition: SmartPtr.h:58
OdDbNavisworksDefinition::load
OdResult load()
OdDbNavisworksDefinition::getDWGModelItemVisible
bool getDWGModelItemVisible() const
OdDbNavisworksDefinition::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbNavisworksDefinition)
OdDbNavisworksDefinition::unload
void unload()
OdDbNavisworksDefinition::fileFound
int fileFound() const
OdDbUnderlayDefinition::postDefinitionToDb
virtual OdDbObjectId postDefinitionToDb(OdDbDatabase *pDb, const OdString &defName)
OdDbDgnDefinition::xrefDepth
int xrefDepth() const
DbUnderlayHost.h
OdDbDgnDefinition::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbDgnDefinition)
OdDbUnderlayDefinition::getItemName
OdString getItemName() const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbDwfDefinition
Definition: DbUnderlayDefinition.h:83
TD_PackPush.h
OdDbNavisworksDefinition::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbNavisworksDefinition::setActiveFileName
OdResult setActiveFileName(const OdString &fname)
OdDbDgnDefinition::showRasterRef
bool showRasterRef() const
OdDbUnderlayDefinition::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbNavisworksDefinition::setSourceFileName
void setSourceFileName(const OdString &fname)
OdDbUnderlayDefinition::getUnderlayItem
OdDbUnderlayItemPtr getUnderlayItem() const
OdGeExtents3d
Definition: GeExtents3d.h:45
OdDbDgnDefinition::setUseMasterUnits
void setUseMasterUnits(bool useMaster)
OdDbDgnDefinitionPtr
OdSmartPtr< OdDbDgnDefinition > OdDbDgnDefinitionPtr
Definition: DbUnderlayDefinition.h:117
OdDbDgnDefinition::OdDbDgnDefinition
OdDbDgnDefinition()
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbNavisworksDefinition::sourceFileName
OdString sourceFileName() const
OdDbDwfDefinition::isDWFx
bool isDWFx() const
OdDbNavisworksDefinition::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbPdfDefinition::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbPdfDefinition)
OdDbDwfDefinition::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbDwfDefinition)
OdDbNavisworksDefinition::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbUnderlayDefinition::dictionaryKey
static OdString dictionaryKey(const OdRxClass *underlayDefinitionType)
OdDbUnderlayDefinition::getSourceFileName
OdString getSourceFileName() const
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbUnderlayDefinition::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbUnderlayDefinition)
OdDbUnderlayDefinition::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbUnderlayDefinition::setSourceFileName
void setSourceFileName(const OdString &name)
OdDbUnderlayDefinition::getActiveFileName
OdString getActiveFileName() const