CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GsBaseModule.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
24#ifndef ODGSBASEMODULE_INC
25#define ODGSBASEMODULE_INC
26
27#include "TD_PackPush.h"
28#include "Gs/GsExport.h"
29#include "Gs/Gs.h"
30
31class OdGsViewImpl;
33
41{
42 OdRxObjectPtrArray m_reactors;
43protected:
52
59 void fire_viewToBeUpdated(OdGsView* pView, int flags);
60
67 void fire_viewWasUpdated(OdGsView* pView, int flags);
68
77
84
91
100
109
111
116public:
118 {
119 OdGsBaseModule* m_pModule;
120 OdGsView* m_pView;
121 int m_flags;
122 public:
123 GsViewUpdateEvent(OdGsBaseModule* pModule, OdGsView* pView, int flags)
124 : m_pModule(pModule), m_pView(pView), m_flags(flags)
125 {
126 if (pModule)
127 pModule->fire_viewToBeUpdated(pView, flags);
128 }
130 {
131 if (m_pModule)
132 m_pModule->fire_viewWasUpdated(m_pView, m_flags);
133 }
134 };
135public:
137
146
153
160
167
174
179 void addReactor(OdGsReactor* pReactor);
180
185 void removeReactor(OdGsReactor* pReactor);
186
194 void initApp();
195
203 void uninitApp();
204};
205
210
220
230
231#include "TD_PackPop.h"
232
233#endif // ODGSBASEMODULE_INC
OdSmartPtr< OdGsBaseModule > OdGsBaseModulePtr
Definition: GsBaseModule.h:209
GS_TOOLKIT_EXPORT void odgsUninitialize()
GS_TOOLKIT_EXPORT void odgsInitialize()
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
GsViewUpdateEvent(OdGsBaseModule *pModule, OdGsView *pView, int flags)
Definition: GsBaseModule.h:123
void fire_viewWasCreated(OdGsView *pView)
virtual OdSmartPtr< OdGsBaseVectorizeDevice > createBitmapDeviceObject()
void fire_viewWasUpdated(OdGsView *pView, int flags)
ODRX_DECLARE_MEMBERS(OdGsBaseModule)
void fire_gsToBeUnloaded(OdGsModule *pModule)
OdSmartPtr< OdGsViewImpl > createBitmapView()
void fire_viewToBeUpdated(OdGsView *pView, int flags)
virtual OdSmartPtr< OdGsBaseVectorizeDevice > createDeviceObject()=0
void onFinalRelease()
OdSmartPtr< OdGsViewImpl > createView()
void removeReactor(OdGsReactor *pReactor)
OdGsDevicePtr createBitmapDevice()
virtual OdSmartPtr< OdGsViewImpl > createViewObject()=0
void addReactor(OdGsReactor *pReactor)
OdGsDevicePtr createDevice()
void fire_viewToBeDestroyed(OdGsView *pView)
virtual OdSmartPtr< OdGsViewImpl > createBitmapViewObject()
Definition: Gs.h:140