CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
IfcGiContext.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#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//DOM-IGNORE-BEGIN
55 enum
56 {
57 kPlotGeneration = 1,
58 kUseGsModel = 2,
59 kOdGiZeroTextNormals = 4,
60 kDisableLayoutHelperLinkReactors = 8,
61 kTTFPolyDraw = 16,
62 kTrackDbDestroy = 32,
63 kManageContextualColors = 64,
64 kKeepPSLayoutHelperView = 128,
65 kErasePSLayoutHelperView = 256,
66 kLastFlag = kErasePSLayoutHelperView
67 };
68
69 OdUInt32 m_fflags;
70
71 OdIfcFile* m_pDb;
72
73 OdGiAuxDataForIfcPtr m_pCtxAuxData;
74 OdDAIObjectId m_pIfcReprContextCur;
75
76protected:
78//DOM-IGNORE-END
79
80public:
81 //DOM-IGNORE-BEGIN
83 //DOM-IGNORE-END
84
91
96
102 virtual OdDbBaseDatabase* database() const;
103
108 virtual bool isPlotGeneration() const;
109
116 virtual void setPlotGeneration(bool plotGeneration);
117
122 virtual void setPaletteBackground(ODCOLORREF paletteBackground);
123
129 virtual OdGiDrawablePtr openDrawable(OdDbStub* drawableId);
130
136
141 void setDatabase(OdIfcFilePtr pIfcFile);
142
148
156
157//DOM-IGNORE-BEGIN
163 virtual OdIntPtr drawableFilterFunctionId(OdDbStub* viewportId) const;
164
174 virtual OdUInt32 drawableFilterFunction(OdIntPtr functionId, const OdGiDrawable *pDrawable, OdUInt32 nFlags);
175//DOM-IGNORE-END
176
181 bool useGsModel() const;
182
189 void enableGsModel(bool enable);
190
195 void setRepresentationContext(OdDAIObjectId idRC);
196
202
208};
209
210#endif // _IFC_GICONTEXTFORIFCDATABASE_H_
@ kTTFPolyDraw
#define IFCCORE_EXPORT
OdSmartPtr< OdGiAuxDataForIfc > OdGiAuxDataForIfcPtr
Definition: IfcGiContext.h:42
OdSmartPtr< OdGiContextForIfcDatabase > OdGiContextForIfcDatabasePtr
Definition: IfcGiContext.h:47
#define ODCOLORREF
Definition: OdPlatform.h:933
unsigned int OdUInt32
ptrdiff_t OdIntPtr
virtual void setPlotGeneration(bool plotGeneration)
ODCOLORREF m_paletteBackground
Definition: IfcGiContext.h:77
virtual void setPaletteBackground(ODCOLORREF paletteBackground)
virtual OdGiDrawablePtr openDrawable(OdDbStub *drawableId)
virtual ODCOLORREF paletteBackground() const
ODRX_DECLARE_MEMBERS(OdGiContextForIfcDatabase)
virtual OdUInt32 drawableFilterFunction(OdIntPtr functionId, const OdGiDrawable *pDrawable, OdUInt32 nFlags)
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()