CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
IfcGiContext.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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#ifndef _IFC_GICONTEXTFORIFCDATABASE_H_
24#define _IFC_GICONTEXTFORIFCDATABASE_H_
25
26#include "IfcCore.h"
27#include "IfcFile.h"
28#include "GiDefaultContext.h"
29#include "OdPlatform.h"
30#include "StaticRxObject.h"
31#include "Gs/Gs.h"
32
33#include "IfcBuildOptions.h"
34
36
38
43
48
53{
54 enum
55 {
56 kPlotGeneration = 1,
57 kUseGsModel = 2,
58 kOdGiZeroTextNormals = 4,
59 kDisableLayoutHelperLinkReactors = 8,
60 kTTFPolyDraw = 16,
61 kTrackDbDestroy = 32,
62 kManageContextualColors = 64,
63 kKeepPSLayoutHelperView = 128,
64 kErasePSLayoutHelperView = 256,
65 kLastFlag = kErasePSLayoutHelperView
66 };
67
68 OdUInt32 m_fflags;
69
70 OdIfcFile* m_pDb;
71
72 OdGiAuxDataForIfcPtr m_pCtxAuxData;
73 OdDAIObjectId m_pIfcReprContextCur;
74
75protected:
77
78public:
79 //DOM-IGNORE-BEGIN
81 //DOM-IGNORE-END
82
89
94
100 virtual OdDbBaseDatabase* database() const;
101
106 virtual bool isPlotGeneration() const;
107
114 virtual void setPlotGeneration(bool plotGeneration);
115
121
127 virtual OdGiDrawablePtr openDrawable(OdDbStub* drawableId);
128
134
139 void setDatabase(OdIfcFilePtr pIfcFile);
140
146
154
155//DOM-IGNORE-BEGIN
161 virtual OdIntPtr drawableFilterFunctionId(OdDbStub* viewportId) const;
162
172 virtual OdUInt32 drawableFilterFunction(OdIntPtr functionId, const OdGiPathNode* pPathNode, OdUInt32 nFlags);
173//DOM-IGNORE-END
174
179 bool useGsModel() const;
180
187 void enableGsModel(bool enable);
188
193 void setRepresentationContext(OdDAIObjectId idRC);
194
200
206};
207
208#endif // _IFC_GICONTEXTFORIFCDATABASE_H_
OdRxObject OdDbBaseDatabase
OdSmartPtr< OdIfcFile > OdIfcFilePtr
OdSmartPtr< OdGiDrawable > OdGiDrawablePtr
#define IFCCORE_EXPORT
OdSmartPtr< OdGiAuxDataForIfc > OdGiAuxDataForIfcPtr
OdSmartPtr< OdGiAuxDataForIfc > OdGiAuxDataForIfcPtr
OdSmartPtr< OdGiContextForIfcDatabase > OdGiContextForIfcDatabasePtr
#define ODCOLORREF
unsigned int OdUInt32
ptrdiff_t OdIntPtr
virtual void setPlotGeneration(bool plotGeneration)
virtual void setPaletteBackground(ODCOLORREF paletteBackground)
virtual OdUInt32 drawableFilterFunction(OdIntPtr functionId, const OdGiPathNode *pPathNode, OdUInt32 nFlags)
virtual OdGiDrawablePtr openDrawable(OdDbStub *drawableId)
virtual ODCOLORREF paletteBackground() const
ODRX_DECLARE_MEMBERS(OdGiContextForIfcDatabase)
virtual OdDbBaseDatabase * database() const
void setDatabase(OdIfcFilePtr pIfcFile)
virtual OdIntPtr drawableFilterFunctionId(OdDbStub *viewportId) const
OdGiAuxDataForIfc * getCtxAuxData()
OdIfcFile * getDatabase() const
void setRepresentationContext(OdDAIObjectId idRC)
virtual bool isPlotGeneration() const
virtual void fillGsClientViewInfo(OdGsClientViewInfo &viewInfo)
void enableGsModel(bool enable)
OdDAIObjectId getRepresentationContext()