CFx SDK Documentation  2020SP3
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_
OdGiContextForIfcDatabase::useGsModel
bool useGsModel() const
OdGiContextForIfcDatabase::setRepresentationContext
void setRepresentationContext(OdDAIObjectId idRC)
IFCCORE_EXPORT
#define IFCCORE_EXPORT
Definition: IfcBuildOptions.h:28
OdGiContextForIfcDatabase::setPlotGeneration
virtual void setPlotGeneration(bool plotGeneration)
OdPlatform.h
OdDAIObjectId
Definition: daiObjectId.h:67
OdGiContextForIfcDatabase::drawableFilterFunction
virtual OdUInt32 drawableFilterFunction(OdIntPtr functionId, const OdGiDrawable *pDrawable, OdUInt32 nFlags)
OdGiContextForIfcDatabase::OdGiContextForIfcDatabase
OdGiContextForIfcDatabase()
Definition: IfcGiContext.h:82
OdRxObject
Definition: RxObject.h:564
OdGiContextForIfcDatabasePtr
OdSmartPtr< OdGiContextForIfcDatabase > OdGiContextForIfcDatabasePtr
Definition: IfcGiContext.h:36
GiDefaultContext.h
OdGiContextForIfcDatabase::enableGsModel
void enableGsModel(bool enable)
ODRGB
#define ODRGB(r, g, b)
Definition: OdPlatform.h:884
OdIfc::OdIfcFile
Definition: IfcFile.h:46
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
IfcCore.h
OdGiContextForIfcDatabase::getRepresentationContext
OdDAIObjectId getRepresentationContext()
OdGiContextForIfcDatabase::drawableFilterFunctionId
virtual OdIntPtr drawableFilterFunctionId(OdDbStub *viewportId) const
OdSmartPtr
Definition: SmartPtr.h:58
OdGiContextForIfcDatabase::setDatabase
void setDatabase(OdIfc::OdIfcFilePtr pIfcFile)
OdGiContextForIfcDatabase::paletteBackground
virtual ODCOLORREF paletteBackground() const
IfcFile.h
Gs.h
OdGiDrawable
Definition: GiDrawable.h:49
OdGiContextForIfcDatabase::setPaletteBackground
virtual void setPaletteBackground(ODCOLORREF paletteBackground)
OdGiContextForIfcDatabase::database
virtual OdDbBaseDatabase * database() const
OdGiContextForIfcDatabase::isPlotGeneration
virtual bool isPlotGeneration() const
StaticRxObject.h
OdGiContextForIfcDatabase::~OdGiContextForIfcDatabase
~OdGiContextForIfcDatabase()
Definition: IfcGiContext.h:87
OdGiContextForIfcDatabase::getDatabase
OdIfc::OdIfcFile * getDatabase() const
OdGiContextForIfcDatabase::m_paletteBackground
ODCOLORREF m_paletteBackground
Definition: IfcGiContext.h:69
OdIntPtr
ptrdiff_t OdIntPtr
Definition: OdPlatformSettings.h:884
OdGiDefaultContext
Definition: GiDefaultContext.h:40
OdGsClientViewInfo
Definition: Gs.h:1021
OdGiContextForIfcDatabase::openDrawable
virtual OdGiDrawablePtr openDrawable(OdDbStub *drawableId)
OdGiContextForIfcDatabase
Definition: IfcGiContext.h:47
OdGiContextForIfcDatabase::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdGiContextForIfcDatabase)
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
OdGiContextForIfcDatabase::fillGsClientViewInfo
virtual void fillGsClientViewInfo(OdGsClientViewInfo &viewInfo)
kTTFPolyDraw
@ kTTFPolyDraw
Definition: GiGeomEntTypes2.h:70
IfcBuildOptions.h