CFx SDK Documentation  2023 SP0
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_
GS_TOOLKIT_EXPORT OdDbStub * odgsDbRedirectID(OdDbStub *&pId)
GS_TOOLKIT_EXPORT void odgsDbObjectIDSetLockingFlag(OdDbStub *pId, bool bSet)
GS_TOOLKIT_EXPORT bool odgsDbObjectIDErased(OdDbStub *pId)
GS_TOOLKIT_EXPORT void odgsDbObjectIDSetRedirected(OdDbStub *pId, bool bSet)
GS_TOOLKIT_EXPORT OdDbBaseDatabase * odgsDbGetDatabase(OdDbStub *pId)
GS_TOOLKIT_EXPORT OdDbBaseDatabase * odgsDbObjectIDRedirectedDatabase(OdDbStub *pId)
GS_TOOLKIT_EXPORT OdDbStub * odgsDbGetOwner(OdDbStub *pId)
GS_TOOLKIT_EXPORT bool odgsDbObjectIDRedirected(OdDbStub *pId)
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
#define NULL
Definition: GsProperties.h:177
static OdRxClass * getDbBaseBlockRefPEClass()
static OdRxClass * getDbBaseHostAppServicesClass()
static bool isInitializedAny()
static OdRxClass * getAbstractViewPEClass()
static OdAbstractViewPE * getAbstractViewPE(const OdRxObject *pViewport)
static OdDbBaseBlockRefPE * getDbBaseBlockRefPE(const OdRxObject *pBlockRef)
static OdRxClass * getDbBaseDatabasePEClass()
static OdDbBaseLayerPE * getDbBaseLayerPE(const OdRxObject *pLayer)
static OdRxClass * getDbBaseLongTransactionPEClass()
static OdRxClass * getDbBaseMaterialPEClass()
static OdDbBaseHatchPE * getDbBaseHatchPE(const OdRxObject *pHatch)
static OdDbBaseLayoutPE * getDbBaseLayoutPE(const OdRxObject *pLayout)
static OdDbBaseHostAppServices * getDatabaseDbBaseHostAppServices(const OdDbBaseDatabase *pDb)
static OdDbBaseDatabasePE * getDbBaseDatabasePE(const OdDbBaseDatabase *pDb)
static bool isBlockRefDrawable(const OdGiDrawable *pBlockRef, bool *bMInsert=NULL)
static OdRxClass * getDbBaseSortEntsPEClass()
static void uninitialize()
static bool displayWarning(const OdDbBaseDatabase *pDb, const OdString &message)
static OdDbBaseLongTransactionPE * getDbBaseLongTransactionPE(const OdRxObject *pLT)
static OdDbBaseDatabasePE * getDbBaseDatabasePEForDrawable(const OdGiDrawable *pDrw, OdDbBaseDatabase *&pDb)
static OdRxClass * getDbBaseHatchPEClass()
static bool isLayoutDrawable(const OdGiDrawable *pLayout)
static void initialize()
static OdDbBaseSortEntsPE * getDbBaseSortEntsPE(const OdRxObject *pSortents)
static OdRxClass * getDbBaseVisualStylePEClass()
static bool isInitialized()
static OdDbBaseMaterialPE * getDbBaseMaterialPE(const OdRxObject *pMaterial)
static OdDbBaseVisualStylePE * getDbBaseVisualStylePE(const OdRxObject *pVisualStyle)
static OdRxClass * getDbBaseAnnotationScalePEClass()
static OdRxClass * getDbBaseLayoutPEClass()
static bool isHatchDrawable(const OdGiDrawable *pHatch)
static OdDbBaseBlockPE * getDbBaseBlockPE(const OdRxObject *pBlock)
static OdRxClass * getDbBaseLayerPEClass()
static OdRxClass * getDbBaseBlockPEClass()
static OdDbBaseAnnotationScalePE * getDbBaseAnnotationScalePE(const OdRxObject *pView)
static OdDbBaseHostAppServices * getDbBaseHostAppServices(const OdRxObject *pServices)