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