CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
GsBaseModule.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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
114
119public:
120
125 {
126 OdGsBaseModule* m_pModule;
127 OdGsView* m_pView;
128 int m_flags;
129 public:
137 GsViewUpdateEvent(OdGsBaseModule* pModule, OdGsView* pView, int flags)
138 : m_pModule(pModule), m_pView(pView), m_flags(flags)
139 {
140 if (pModule)
141 pModule->fire_viewToBeUpdated(pView, flags);
142 }
144 {
145 if (m_pModule)
146 m_pModule->fire_viewWasUpdated(m_pView, m_flags);
147 }
148 };
149public:
151
160
167
174
181
188
193 void addReactor(OdGsReactor* pReactor);
194
199 void removeReactor(OdGsReactor* pReactor);
200
208 void initApp();
209
217 void uninitApp();
218};
219
224
234
244
245#include "TD_PackPop.h"
246
247#endif // ODGSBASEMODULE_INC
OdSmartPtr< OdGsDevice > OdGsDevicePtr
OdSmartPtr< OdGsBaseModule > OdGsBaseModulePtr
GS_TOOLKIT_EXPORT void odgsUninitialize()
GS_TOOLKIT_EXPORT void odgsInitialize()
#define GS_TOOLKIT_EXPORT
Definition GsExport.h:37
OdArray< OdRxObjectPtr > OdRxObjectPtrArray
Definition RxObject.h:1196
GsViewUpdateEvent(OdGsBaseModule *pModule, OdGsView *pView, int flags)
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:141