CFx SDK Documentation  2020SP3
GsDbRootLinkage.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 #ifndef _ODGSDBROOTLINKAGE_H_INCLUDED_
25 #define _ODGSDBROOTLINKAGE_H_INCLUDED_
26 
27 #include "OdaCommon.h"
28 #include "RxObject.h"
29 #include "Gs/GsExport.h"
30 #include "Gi/GiDrawable.h"
31 #include "DbBaseHostAppServices.h"
32 #include "DbBaseDatabase.h"
33 #include "AbstractViewPE.h"
34 
35 #include "TD_PackPush.h"
36 
45 {
46  public:
48 
52  static void initialize();
56  static void uninitialize();
60  static bool isInitialized();
64  static bool isInitializedAny();
65 
80 
100  static bool displayWarning(const OdDbBaseDatabase *pDb, const OdString &message);
101 
111 
121 
122 
132 
142 
156  static bool isLayoutDrawable(const OdGiDrawable *pLayout);
157 
166  static OdAbstractViewPE *getAbstractViewPE(const OdRxObject *pViewport);
167 
177 
192  static bool isBlockRefDrawable(const OdGiDrawable *pBlockRef, bool *bMInsert = NULL);
193 
203 
213 
227  static bool isHatchDrawable(const OdGiDrawable *pHatch);
228 };
229 
230 // OdDbStub helpers
231 
237 
242 GS_TOOLKIT_EXPORT OdDbStub *odgsDbGetOwner(OdDbStub *pId);
243 
248 GS_TOOLKIT_EXPORT OdDbStub *odgsDbRedirectID(OdDbStub *&pId);
249 
255 
261 GS_TOOLKIT_EXPORT void odgsDbObjectIDSetRedirected(OdDbStub *pId, bool bSet);
262 
268 GS_TOOLKIT_EXPORT void odgsDbObjectIDSetLockingFlag(OdDbStub *pId, bool bSet);
269 
275 
281 
282 #include "TD_PackPop.h"
283 
284 #endif // _ODGSDBROOTLINKAGE_H_INCLUDED_
OdGsDbRootLinkage::getAbstractViewPE
static OdAbstractViewPE * getAbstractViewPE(const OdRxObject *pViewport)
OdGsDbRootLinkage::getDbBaseAnnotationScalePE
static OdDbBaseAnnotationScalePE * getDbBaseAnnotationScalePE(const OdRxObject *pView)
AbstractViewPE.h
OdGsDbRootLinkage::getAbstractViewPEClass
static OdRxClass * getAbstractViewPEClass()
OdGsDbRootLinkage::getDbBaseDatabasePE
static OdDbBaseDatabasePE * getDbBaseDatabasePE(const OdDbBaseDatabase *pDb)
OdString
Definition: OdString.h:95
OdGsDbRootLinkage::getDbBaseBlockRefPE
static OdDbBaseBlockRefPE * getDbBaseBlockRefPE(const OdRxObject *pBlockRef)
NULL
#define NULL
Definition: GsProperties.h:177
OdDbBaseLayerPE
Definition: DbBaseDatabase.h:527
OdGsDbRootLinkage::getDbBaseSortEntsPE
static OdDbBaseSortEntsPE * getDbBaseSortEntsPE(const OdRxObject *pSortents)
OdGsDbRootLinkage::getDbBaseLongTransactionPEClass
static OdRxClass * getDbBaseLongTransactionPEClass()
OdDbBaseHatchPE
Definition: DbBaseDatabase.h:1122
OdRxObject
Definition: RxObject.h:564
OdGsDbRootLinkage::isHatchDrawable
static bool isHatchDrawable(const OdGiDrawable *pHatch)
OdGsDbRootLinkage::initialize
static void initialize()
odgsDbObjectIDRedirected
GS_TOOLKIT_EXPORT bool odgsDbObjectIDRedirected(OdDbStub *pId)
odgsDbGetDatabase
GS_TOOLKIT_EXPORT OdDbBaseDatabase * odgsDbGetDatabase(OdDbStub *pId)
OdGsDbRootLinkage::isInitializedAny
static bool isInitializedAny()
OdGsDbRootLinkage
Definition: GsDbRootLinkage.h:45
OdGsDbRootLinkage::getDbBaseHatchPEClass
static OdRxClass * getDbBaseHatchPEClass()
TD_PackPop.h
OdGsDbRootLinkage::getDbBaseLayerPE
static OdDbBaseLayerPE * getDbBaseLayerPE(const OdRxObject *pLayer)
RxObject.h
OdDbBaseBlockRefPE
Definition: DbBaseDatabase.h:961
odgsDbObjectIDSetLockingFlag
GS_TOOLKIT_EXPORT void odgsDbObjectIDSetLockingFlag(OdDbStub *pId, bool bSet)
OdGsDbRootLinkage::uninitialize
static void uninitialize()
OdDbBaseBlockPE
Definition: DbBaseDatabase.h:907
OdGsDbRootLinkage::getDbBaseAnnotationScalePEClass
static OdRxClass * getDbBaseAnnotationScalePEClass()
odgsDbObjectIDErased
GS_TOOLKIT_EXPORT bool odgsDbObjectIDErased(OdDbStub *pId)
OdDbBaseHostAppServices
Definition: DbBaseHostAppServices.h:85
OdRxClass
Definition: RxObject.h:865
OdDbBaseLayoutPE
Definition: DbBaseDatabase.h:663
OdGsDbRootLinkage::isBlockRefDrawable
static bool isBlockRefDrawable(const OdGiDrawable *pBlockRef, bool *bMInsert=NULL)
OdGsDbRootLinkage::getDbBaseHatchPE
static OdDbBaseHatchPE * getDbBaseHatchPE(const OdRxObject *pHatch)
OdDbBaseSortEntsPE
Definition: DbBaseDatabase.h:1043
OdGsDbRootLinkage::getDbBaseHostAppServices
static OdDbBaseHostAppServices * getDbBaseHostAppServices(const OdRxObject *pServices)
OdGsDbRootLinkage::getDbBaseBlockRefPEClass
static OdRxClass * getDbBaseBlockRefPEClass()
OdGiDrawable
Definition: GiDrawable.h:49
OdGsDbRootLinkage::OdGsDbRootLinkage
OdGsDbRootLinkage()
Definition: GsDbRootLinkage.h:47
odgsDbRedirectID
GS_TOOLKIT_EXPORT OdDbStub * odgsDbRedirectID(OdDbStub *&pId)
DbBaseDatabase.h
OdDbBaseLongTransactionPE
Definition: DbBaseDatabase.h:1072
OdDbBaseAnnotationScalePE
Definition: DbBaseDatabase.h:638
OdaCommon.h
DbBaseHostAppServices.h
OdGsDbRootLinkage::getDbBaseSortEntsPEClass
static OdRxClass * getDbBaseSortEntsPEClass()
TD_PackPush.h
GsExport.h
OdGsDbRootLinkage::isInitialized
static bool isInitialized()
OdDbBaseVisualStylePE
Definition: DbBaseDatabase.h:600
OdGsDbRootLinkage::isLayoutDrawable
static bool isLayoutDrawable(const OdGiDrawable *pLayout)
odgsDbObjectIDRedirectedDatabase
GS_TOOLKIT_EXPORT OdDbBaseDatabase * odgsDbObjectIDRedirectedDatabase(OdDbStub *pId)
OdGsDbRootLinkage::getDbBaseBlockPE
static OdDbBaseBlockPE * getDbBaseBlockPE(const OdRxObject *pBlock)
OdGsDbRootLinkage::getDbBaseMaterialPEClass
static OdRxClass * getDbBaseMaterialPEClass()
OdGsDbRootLinkage::getDbBaseDatabasePEForDrawable
static OdDbBaseDatabasePE * getDbBaseDatabasePEForDrawable(const OdGiDrawable *pDrw, OdDbBaseDatabase *&pDb)
OdDbBaseMaterialPE
Definition: DbBaseDatabase.h:1247
odgsDbObjectIDSetRedirected
GS_TOOLKIT_EXPORT void odgsDbObjectIDSetRedirected(OdDbStub *pId, bool bSet)
OdGsDbRootLinkage::getDbBaseBlockPEClass
static OdRxClass * getDbBaseBlockPEClass()
OdGsDbRootLinkage::getDbBaseVisualStylePE
static OdDbBaseVisualStylePE * getDbBaseVisualStylePE(const OdRxObject *pVisualStyle)
GS_TOOLKIT_EXPORT
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
OdGsDbRootLinkage::getDbBaseLongTransactionPE
static OdDbBaseLongTransactionPE * getDbBaseLongTransactionPE(const OdRxObject *pLT)
GiDrawable.h
OdAbstractViewPE
Definition: AbstractViewPE.h:57
OdGsDbRootLinkage::getDbBaseMaterialPE
static OdDbBaseMaterialPE * getDbBaseMaterialPE(const OdRxObject *pMaterial)
OdDbBaseDatabasePE
Definition: DbBaseDatabase.h:60
OdGsDbRootLinkage::getDbBaseLayoutPE
static OdDbBaseLayoutPE * getDbBaseLayoutPE(const OdRxObject *pLayout)
OdGsDbRootLinkage::displayWarning
static bool displayWarning(const OdDbBaseDatabase *pDb, const OdString &message)
OdGsDbRootLinkage::getDbBaseHostAppServicesClass
static OdRxClass * getDbBaseHostAppServicesClass()
OdGsDbRootLinkage::getDatabaseDbBaseHostAppServices
static OdDbBaseHostAppServices * getDatabaseDbBaseHostAppServices(const OdDbBaseDatabase *pDb)
OdGsDbRootLinkage::getDbBaseDatabasePEClass
static OdRxClass * getDbBaseDatabasePEClass()
OdGsDbRootLinkage::getDbBaseLayerPEClass
static OdRxClass * getDbBaseLayerPEClass()
OdGsDbRootLinkage::getDbBaseLayoutPEClass
static OdRxClass * getDbBaseLayoutPEClass()
OdGsDbRootLinkage::getDbBaseVisualStylePEClass
static OdRxClass * getDbBaseVisualStylePEClass()
odgsDbGetOwner
GS_TOOLKIT_EXPORT OdDbStub * odgsDbGetOwner(OdDbStub *pId)