CFx SDK Documentation  2023 SP0
IfcGsManager.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 
24 #ifndef _IFC_GSMANAGER_H_
25 #define _IFC_GSMANAGER_H_
26 
27 #include "IfcBuildOptions.h"
28 
29 class OdDAIObjectId;
30 class OdIfcFile;
32 
33 #include "Gs/Gs.h"
34 
39 {
40 public:
41  //DOM-IGNORE-BEGIN
43  //DOM-IGNORE-END
44 
49  virtual OdDAIObjectId layoutId() const = 0;
50 
55  virtual OdGsViewPtr activeView() const = 0;
56 
61  virtual void makeViewActive(OdGsView* pView) = 0;
62 
67  virtual OdGsModel* gsModel() = 0;
68 
73  virtual OdGsDevicePtr underlyingDevice() const = 0;
74 
80  virtual bool setActiveViewport(const OdGePoint2d& screenPt) = 0;
81 
87  virtual bool setActiveViewport(const OdDAIObjectId& id) = 0;
88 
92  virtual void restoreGsViewDbLinkState() = 0;
93 };
94 
99 
108 {
109 public:
110  //DOM-IGNORE-BEGIN
112  //DOM-IGNORE-END
113 };
114 
119 
120 
124 namespace OdIfcGsManager
125 {
134 
135 //DOM-IGNORE-BEGIN
145 //DOM-IGNORE-END
146 //IFCCORE_EXPORT OdGsIfcLayoutHelperPtr setupLayoutViews(OdIfc::OdIfcRepresentationContextPtr layoutId, OdGsDevice* pDevice,
147 // OdGiContextForIfcDatabase* pGiCtx);
148 
157  OdDbStub* layoutId = 0, ODCOLORREF palBackground = ODRGBA(0, 0, 0, 0));
158 }
159 
160 #endif // _IFC_GSMANAGER_H_
161 
#define IFCCORE_EXPORT
OdSmartPtr< OdGsIfcModelHelper > OdGsIfcModelHelperPtr
Definition: IfcGsManager.h:118
OdSmartPtr< OdGsIfcLayoutHelper > OdGsIfcLayoutHelperPtr
Definition: IfcGsManager.h:98
#define ODCOLORREF
Definition: OdPlatform.h:883
#define ODRGBA(r, g, b, a)
Definition: OdPlatform.h:885
virtual void makeViewActive(OdGsView *pView)=0
virtual void restoreGsViewDbLinkState()=0
virtual OdGsModel * gsModel()=0
ODRX_DECLARE_MEMBERS(OdGsIfcLayoutHelper)
virtual OdGsViewPtr activeView() const =0
virtual bool setActiveViewport(const OdGePoint2d &screenPt)=0
virtual OdDAIObjectId layoutId() const =0
virtual bool setActiveViewport(const OdDAIObjectId &id)=0
virtual OdGsDevicePtr underlyingDevice() const =0
ODRX_DECLARE_MEMBERS(OdGsIfcModelHelper)
Definition: Gs.h:133
IFCCORE_EXPORT OdGsIfcLayoutHelperPtr setupActiveLayoutViews(OdDAIObjectId reprContextId, OdGsDevice *pDevice, OdGiContextForIfcDatabase *pGiCtx)
IFCCORE_EXPORT void setupPalette(OdGsDevice *device, OdGiContextForIfcDatabase *giContext, OdDbStub *layoutId=0, ODCOLORREF palBackground=ODRGBA(0, 0, 0, 0))