CFx SDK Documentation  2022 SP0
IfcGiContext.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2019, 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-2019 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 "IfcCore.h"
32 #include "Gs/Gs.h"
33 
34 #include "IfcBuildOptions.h"
35 
37 
42 
47 {
48 //DOM-IGNORE-BEGIN
49  enum
50  {
51  kPlotGeneration = 1,
52  kUseGsModel = 2,
53  kOdGiZeroTextNormals = 4,
54  kDisableLayoutHelperLinkReactors = 8,
55  kTTFPolyDraw = 16,
56  kTrackDbDestroy = 32,
57  kManageContextualColors = 64,
58  kKeepPSLayoutHelperView = 128,
59  kErasePSLayoutHelperView = 256,
60  kLastFlag = kErasePSLayoutHelperView
61  };
62 
63  OdUInt32 m_fflags;
64 
65  OdIfc::OdIfcFile* m_pDb;
66  OdDAIObjectId m_pIfcReprContextCur;
67 
68 protected:
70 //DOM-IGNORE-END
71 
72 public:
73  //DOM-IGNORE-BEGIN
75  //DOM-IGNORE-END
76 
82  OdGiContextForIfcDatabase() : m_fflags(0), m_paletteBackground(ODRGB(0, 0, 0)) {}
83 
88 
94  virtual OdDbBaseDatabase* database() const;
95 
100  virtual bool isPlotGeneration() const;
101 
108  virtual void setPlotGeneration(bool plotGeneration);
109 
114  virtual void setPaletteBackground(ODCOLORREF paletteBackground);
115 
121  virtual OdGiDrawablePtr openDrawable(OdDbStub* drawableId);
122 
127  virtual ODCOLORREF paletteBackground() const;
128 
134 
140 
147  virtual void fillGsClientViewInfo(OdGsClientViewInfo& viewInfo);
148 
149 //DOM-IGNORE-BEGIN
155  virtual OdIntPtr drawableFilterFunctionId(OdDbStub* viewportId) const;
156 
166  virtual OdUInt32 drawableFilterFunction(OdIntPtr functionId, const OdGiDrawable *pDrawable, OdUInt32 nFlags);
167 //DOM-IGNORE-END
168 
173  bool useGsModel() const;
174 
181  void enableGsModel(bool enable);
182 
188 
194 };
195 
196 #endif // _IFC_GICONTEXTFORIFCDATABASE_H_
@ kTTFPolyDraw
#define IFCCORE_EXPORT
OdSmartPtr< OdGiContextForIfcDatabase > OdGiContextForIfcDatabasePtr
Definition: IfcGiContext.h:36
#define ODRGB(r, g, b)
Definition: OdPlatform.h:884
#define ODCOLORREF
Definition: OdPlatform.h:883
unsigned int OdUInt32
ptrdiff_t OdIntPtr
void setDatabase(OdIfc::OdIfcFilePtr pIfcFile)
virtual void setPlotGeneration(bool plotGeneration)
ODCOLORREF m_paletteBackground
Definition: IfcGiContext.h:69
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
OdIfc::OdIfcFile * getDatabase() const
virtual OdIntPtr drawableFilterFunctionId(OdDbStub *viewportId) const
void setRepresentationContext(OdDAIObjectId idRC)
virtual bool isPlotGeneration() const
virtual void fillGsClientViewInfo(OdGsClientViewInfo &viewInfo)
void enableGsModel(bool enable)
OdDAIObjectId getRepresentationContext()