CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
TrVisRenditionMt.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// Multithreaded protection rendition redirection interface
24
25#ifndef ODTRVISRENDITIONMT
26#define ODTRVISRENDITIONMT
27
28#include "TD_PackPush.h"
29
31
32#include "StaticRxObject.h"
33#include "ThreadsCounter.h"
34
39{
40 protected:
42 {
47 void resetMutexes(OdMutexPtr *pMutex1 = NULL, OdMutexPtr *pMutex2 = NULL, OdMutexPtr *pMutex3 = NULL, OdMutexPtr *pMutex4 = NULL)
48 { m_pMutex[3] = pMutex4; m_pMutex[2] = pMutex3; m_pMutex[1] = pMutex2; m_pMutex[0] = pMutex1; }
50 { for (int nMutex = 0; nMutex < 4; nMutex++) { if (m_pMutex[nMutex] == pMutex) { m_pMutex[nMutex] = NULL; } } }
58 protected:
59 mutable struct IdRegistratorMt : public IdRegistrator
60 {
64 virtual void reg(DataType type, OdTrVisId id, OdDbStub *pPersId);
65 virtual void reg(DataType type, OdTrVisId id, const OdGiDrawable *pTransId);
66 virtual void reg(DataType type, OdTrVisId id, const OdTrVisUniqueID &uId);
67 virtual void kill(DataType type, OdTrVisId id);
68 virtual OdTrVisUniqueID *get(DataType type, OdTrVisId id, bool bKill = false) const;
69 void getset(IdRegistrator *pBaseRegistrator) { m_pBaseRegistrator = pBaseRegistrator; }
70 IdRegistrator *setget() { return (m_pBaseRegistrator) ? this : NULL; }
72 public:
75
76 // Initialize Mt rendition
77 void init(OdTrVisRendition *pRendition);
78 // Check does rendition is ready for Mt
79 bool isMt() const;
80
81 // High-level callbacks
82
83 // Called on starting vectorizer update.
85 // Called on ending vectorizer update.
86 virtual void onDeviceUpdateEnd(OdTrVisRenderClient *pDevice, bool bRender = true);
87
88 // Returns Id registrator, or NULL if no registration supported
89 virtual IdRegistrator *idRegistrator() const;
90
91 // Returns true if metafile streams accessible directly, returns stream by Id
92 virtual bool queryMetafileStream(OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, const OdTrVisDisplayId *pDisplayId,
93 OdUInt32 nPathLength, const OdTrVisMetafileContainer **pStream);
94 // Unlock metafile stream, queried by queryMetafileStream method
95 virtual bool unlockMetafileStream(const OdTrVisMetafileContainer *pStream);
96
97 // Returns block metafile list in case if it is accessible.
99
100 // Returns extension object by Id.
102
103 // Returns non-kTrVisNegativeId in case if vectorizer supports ProgramID's embedded into metafile stream
105 OdTrVisGeomType geomType = OdTrVisGeomType_Default, OdUInt16 attrFlags = 0, OdUInt16 shadingFlags = 0) const;
106
107 // Mid-level callbacks
108
109 // Client information
110
111 // Returns rendering client settings.
112 virtual void obtainClientSettings(ClientSettings &clientSets);
113
114 // Surface
115
116 // Called when output render surface parameters changed.
117 virtual void onSurfaceChanged(const OdTrVisSurfaceDef &pDef);
118 // Called when rendering surface needs to be invalidated forcibly.
119 virtual void onSurfaceInvalidated();
120
121 // Overlays
122
123 // Called when new overlay added into device.
124 virtual void onOverlayAdded(OdTrVisOverlayId overlayId, const OdTrVisOverlayDef &pDef);
125 // Called when exist overlay removed from device.
126 virtual void onOverlayDeleted(OdTrVisOverlayId overlayId);
127 // Called when overlay visibility changed.
128 virtual void onOverlayVisibilityChanged(OdTrVisOverlayId overlayId, bool bVisibility);
129 // Called when overlay rendering order changed.
130 virtual void onOverlayRenderOrderChanged(OdTrVisOverlayId overlayId, OdInt16 nRenderOrder);
131
132 // Viewports
133
134 // Called when new viewport added into device.
135 virtual void onViewportAdded(OdTrVisViewportId viewportId, const OdTrVisViewportDef &pDef);
136 // Called when viewport inserted in list with some index.
137 virtual void onViewportInserted(OdTrVisViewportId viewportId, int nIndex, const OdTrVisViewportDef &pDef);
138 // Called when viewport removed from device.
139 virtual void onViewportDeleted(OdTrVisViewportId viewportId);
140 // Called when viewport visibility changed.
141 virtual void onViewportVisibilityChanged(OdTrVisViewportId viewportId, bool bVisibility);
142
143 // Primary viewports configuration
144
145 // Called when viewport view parameters is modified.
147 // Called when viewport linestyle settings is modified.
149 // Called when viewport fading settings is modified.
151 // Called when viewport lineweight settings is modified.
153 // Called when viewport rendering mode is modified.
155 // Called when viewport clipping region is modified.
157 bool bNrcClipModified = true, bool bBorderModified = true);
158
159 // Extended viewports configuration
160
161 // Called when background stream in viewport is changed.
163 OdTrVisProgramId baseProgramId = kTrVisNegativeId);
164 // Called when viewport fog changed.
165 virtual void onViewportFogChanged(OdTrVisViewportId viewportId, const OdTrVisFogDef &pDef = OdTrVisFogDef());
166 // Called when viewport sectioning modified.
168 // Called when viewport anti-aliasing setting changed.
169 virtual void onViewportAntiAliasingChanged(OdTrVisViewportId viewportId, OdUInt32 nAntiAliasing);
170 // Called when viewport ssao setting changed.
172
173 // Viewport default lights configuration
174
175 // Called when viewport ambient light setting modified.
176 virtual void onViewportAmbientLightChanged(OdTrVisViewportId viewportId, const OdTrVisMaterialColor &ambientLight);
177 // Called when viewport default light setting modified.
178 virtual void onViewportDefaultLightsChanged(OdTrVisViewportId viewportId, bool bDefaultLightsOn,
179 const OdTrVisLightDef *pLightsList = NULL, OdUInt32 nLightsListEntries = 0);
180
181 // Viewport lights management
182
183 // Called when light source added into viewport light sources list.
185 OdUInt32 nOverrides = 0, const OdTrVisLightDef &pOverrides = OdTrVisLightDef());
186 // Called when light source removed from viewport light sources list.
188
189 // Per-overlay viewport overrides
190
191 // Called when viewport needs override view parameters for specific overlay.
192 virtual void onOverlayViewParamsOverride(OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, bool bOverride,
194 // Called when viewport extents changed.
195 virtual void onOverlayExtentsOverride(OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, const OdTrVisExtentsDef &pDef);
196
197 // Viewports ordering lists
198
199 // Called when order of metafiles in viewport is changed.
200 virtual void onMetafileOrderChanged(OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, const OdTrVisDisplayId *pList, OdUInt32 nEntries);
201 // Called when order of metafiles in viewport is changed (for obtain modified part of list by renderer).
202 virtual void onMetafileOrderChanged(OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, OdUInt32 nInvalidFrom, OdUInt32 nInvalidLen,
203 const OdTrVisDisplayId *pValidFrom, OdUInt32 nValidLen);
204 // Called when order of metafiles can be inherit from other source.
205 virtual void onMetafileOrderInheritance( OdTrVisViewportId viewportId1, OdTrVisOverlayId overlayId1, OdTrVisViewportId viewportId2 );
206
207 // Metafiles
208
209 // Called when new metafile added (returns visualId, equal to metafileId by default).
211 // Called when exist metafile deleted.
212 virtual void onMetafileDeleted(OdTrVisMetafileId metafileId);
213 // Called when exist metafile changed.
214 //virtual void onMetafileModified(OdTrVisMetafileId metafileId, const OdTrVisMetafileDef &pDef);
215 // Called when exist metafile visibility changed.
216 virtual void onMetafileVisibilityChanged(OdTrVisMetafileId metafileId, bool bVisibility);
217 // Called when exist metafile highlighting changed.
218 virtual void onMetafileHighlightingChanged(OdTrVisMetafileId metafileId, bool bHighlight);
219 // Called when exist metafile fading changed.
220 virtual void onMetafileFadingChanged(OdTrVisMetafileId metafileId, bool bFade);
221
222 // Lights
223
224 // Called when new light source added.
225 virtual void onLightAdded(OdTrVisLightId lightId, const OdTrVisLightDef &pDef);
226 // Called when exist light source modified.
227 virtual void onLightModified(OdTrVisLightId lightId, OdUInt32 nKindOfMod, const OdTrVisLightDef &pDef);
228 // Called when exist light source deleted.
229 virtual void onLightDeleted(OdTrVisLightId lightId);
230
231 // State branches (highlighting, hide)
232
233 // Called when new state branch added.
234 virtual void onStateBranchAdded(OdTrVisStateBranchId stateBranchId, const OdTrVisStateBranchDef &pDef);
235 // Called when exist state branch modified.
236 virtual void onStateBranchModified(OdTrVisStateBranchId stateBranchId, const OdTrVisStateBranchDef &pDef,
237 bool bChildsModified, bool bMarkersModified);
238 // Called when exist state branch deleted.
239 virtual void onStateBranchDeleted(OdTrVisStateBranchId stateBranchId);
240
241 // Textures
242
243 // Called when new texture added.
244 virtual void onTextureAdded(OdTrVisTextureId textureId, const OdTrVisTextureDef &pDef);
245 // Called when exist texture deleted.
246 virtual void onTextureDeleted(OdTrVisTextureId textureId);
247
248 // Materials
249
250 // Called when new material added.
251 virtual void onMaterialAdded(OdTrVisMaterialId materialId, const OdTrVisMaterialDef &pDef);
252 // Called when exist material deleted.
253 virtual void onMaterialDeleted(OdTrVisMaterialId materialId);
254
255 // Visual Styles
256
257 // Called when new visual style added.
258 virtual void onVisualStyleAdded(OdTrVisVisualStyleId visualStyleId, const OdTrVisVisualStyle &pDef);
259 // Called when exist visual style modified.
260 virtual void onVisualStyleModified(OdTrVisVisualStyleId visualStyleId, const OdTrVisVisualStyle &pDef);
261 // Called when exist visual style deleted.
262 virtual void onVisualStyleDeleted(OdTrVisVisualStyleId visualStyleId);
263
264 // Layers
265
266 // Called when new layer added.
267 virtual void onLayerAdded(OdTrVisLayerId layerId, const OdTrVisLayerDef &pDef);
268 // Called when exist layer modified.
269 //virtual void onLayerModified(OdTrVisLayerId layerId, const OdTrVisLayerDef &pDef);
270 // Called when exist layer deleted.
271 virtual void onLayerDeleted(OdTrVisLayerId layerId);
272 // Called when exist layer visibility changed.
273 virtual void onLayerVisibilityChanged(OdTrVisLayerId layerId, bool bVisibility);
274 // Called when exist layer fading changed.
275 virtual void onLayerFadingChanged(OdTrVisLayerId layerId, bool bFade);
276 // Called when layer viewport-dependent properties changed.
277 virtual void onLayerVpDepPropsOverride(OdTrVisLayerId layerId, OdTrVisViewportId viewportId, bool bOverride,
278 const OdTrVisLayerProps &pProps = OdTrVisLayerProps());
279
280 // Extension objects
281
282 // Called when new extension object added.
284 // Called when exist extension object deleted.
286 // Called to send special extension object specific data.
288 // Called to change extension object visibility.
289 virtual void onExtensionObjectVisibilityChanged(OdTrVisExtensionId extId, bool bVisibility);
290
291 // Blocks
292
293 // Called when new block added.
294 virtual void onBlockAdded(OdTrVisBlockId blockId, const OdTrVisDisplayId *pList, OdUInt32 nEntries);
295 // Called when block display list changed.
296 virtual void onBlockModified(OdTrVisBlockId blockId, OdUInt32 nInvalidFrom, OdUInt32 nInvalidLen,
297 const OdTrVisDisplayId *pValidFrom, OdUInt32 nValidLen);
298 // Called when exist block deleted.
299 virtual void onBlockDeleted(OdTrVisBlockId blockId);
300
301 // Groups
302
303 // Called when new group added.
304 virtual void onGroupAdded(OdTrVisGroupId groupId);
305 // Called when exist group deleted.
306 virtual void onGroupDeleted(OdTrVisGroupId groupId);
307 // Called to attach metafiles to group.
308 virtual void onGroupMetafilesAttached(OdTrVisGroupId groupId, const OdTrVisMetafileId *pMetafilesList, OdUInt32 nMetafiles);
309 // Called to detach metafiles from group (if no metafiles specified - clear entire list of groupped metafiles).
310 virtual void onGroupMetafilesDetached(OdTrVisGroupId groupId, const OdTrVisMetafileId *pMetafilesList, OdUInt32 nMetafiles);
311 // Called to delete all groupped metafiles from graphics scene.
312 //virtual void onGroupMetafilesDeleted(OdTrVisGroupId groupId);
313 // Called to change visibility state for all groupped metafiles.
314 virtual void onGroupMetafilesVisibilityChanged(OdTrVisGroupId groupId, bool bVisibility);
315 // Called to change highlighting state for all groupped metafiles.
316 virtual void onGroupMetafilesHighlightingChanged(OdTrVisGroupId groupId, bool bHighlight);
317 // Called to change fading state for all groupped metafiles.
318 virtual void onGroupMetafilesFadingChanged(OdTrVisGroupId groupId, bool bFade);
319
320 // Properties
321
322 // Metafile-related properties.
323 // Called to attach property to metafile.
324 virtual void onMetafilePropertyAttached(OdTrVisMetafileId metafileId, const OdTrVisPropertyDef &propDef);
325 // Called to detach property from metafile.
327 // Group-related properties.
328 // Called to attach property to group.
329 virtual void onGroupPropertyAttached(OdTrVisGroupId groupId, const OdTrVisPropertyDef &propDef);
330 // Called to detach property from group.
332 // Layer-related properties.
333 // Called to attach property to layer.
334 virtual void onLayerPropertyAttached(OdTrVisLayerId layerId, const OdTrVisPropertyDef &propDef);
335 // Called to detach property from layer.
337 // VisualStyle-related properties.
338 // Called to attach property to visual style.
339 virtual void onVisualStylePropertyAttached(OdTrVisVisualStyleId visualStyleId, const OdTrVisPropertyDef &propDef);
340 // Called to detach property from visual style.
342 // Material-related properties.
343 // Called to attach property to material.
344 virtual void onMaterialPropertyAttached(OdTrVisMaterialId materialId, const OdTrVisPropertyDef &propDef);
345 // Called to detach property from material.
347 // Texture-related properties.
348 // Called to attach property to texture.
349 virtual void onTexturePropertyAttached(OdTrVisTextureId textureId, const OdTrVisPropertyDef &propDef);
350 // Called to detach property from texture.
352 // Light-related properties.
353 // Called to attach property to light source.
354 virtual void onLightPropertyAttached(OdTrVisLightId lightId, const OdTrVisPropertyDef &propDef);
355 // Called to detach property from light source.
357 // StateBranch-related properties.
358 // Called to attach property to state branch.
359 virtual void onStateBranchPropertyAttached(OdTrVisStateBranchId stateBranchId, const OdTrVisPropertyDef &propDef);
360 // Called to detach property from state branch.
362 // Viewport-related properties.
363 // Called to attach property to viewport.
364 virtual void onViewportPropertyAttached(OdTrVisViewportId viewportId, const OdTrVisPropertyDef &propDef);
365 // Called to detach property from viewport.
367 // Overlay-related properties.
368 // Called to attach property to overlay.
369 virtual void onOverlayPropertyAttached(OdTrVisOverlayId overlayId, const OdTrVisPropertyDef &propDef);
370 // Called to detach property from overlay.
372 // ExtensionObject-related properties.
373 // Called to attach property to extension object.
375 // Called to detach property from extension object.
377 // Block-related properties.
378 // Called to attach property to block.
379 virtual void onBlockPropertyAttached(OdTrVisBlockId blockId, const OdTrVisPropertyDef &propDef);
380 // Called to detach property from viewport.
382};
383
384#include "TD_PackPop.h"
385
386#endif // ODTRVISRENDITIONMT
unsigned int OdUInt32
short OdInt16
unsigned short OdUInt16
#define ODRX_OVERRIDE
const OdTrVisId kTrVisNegativeId
Definition: TrVisDefs.h:128
OdTrVisGeomType
@ OdTrVisGeomType_Default
RenderMode
Definition: Gs.h:148
virtual void onStateBranchPropertyDetached(OdTrVisStateBranchId stateBranchId, OdTrVisPropertyDef::PropertyType propType)
virtual void onDeviceUpdateBegin(OdTrVisRenderClient *pDevice)
virtual void onViewportSectioningChanged(OdTrVisViewportId viewportId, const OdTrVisSectionDef &pDef=OdTrVisSectionDef())
OdMutexPtr m_pGlobalMutex
virtual void onViewportInserted(OdTrVisViewportId viewportId, int nIndex, const OdTrVisViewportDef &pDef)
virtual void onExtensionObjectPropertyAttached(OdTrVisExtensionId extId, const OdTrVisPropertyDef &propDef)
virtual void onViewportFadingModified(OdTrVisViewportId viewportId, const OdTrVisViewportFadingDef &pDef)
virtual void onStateBranchModified(OdTrVisStateBranchId stateBranchId, const OdTrVisStateBranchDef &pDef, bool bChildsModified, bool bMarkersModified)
virtual void onLayerPropertyDetached(OdTrVisLayerId layerId, OdTrVisPropertyDef::PropertyType propType)
virtual void onStateBranchDeleted(OdTrVisStateBranchId stateBranchId)
virtual void onExtensionObjectVisibilityChanged(OdTrVisExtensionId extId, bool bVisibility)
virtual void onGroupMetafilesDetached(OdTrVisGroupId groupId, const OdTrVisMetafileId *pMetafilesList, OdUInt32 nMetafiles)
virtual void onExtensionObjectPropertyDetached(OdTrVisExtensionId extId, OdTrVisPropertyDef::PropertyType propType)
virtual void onBlockDeleted(OdTrVisBlockId blockId)
virtual void onMaterialPropertyAttached(OdTrVisMaterialId materialId, const OdTrVisPropertyDef &propDef)
virtual void onLayerVisibilityChanged(OdTrVisLayerId layerId, bool bVisibility)
virtual void onViewportDefaultLightsChanged(OdTrVisViewportId viewportId, bool bDefaultLightsOn, const OdTrVisLightDef *pLightsList=NULL, OdUInt32 nLightsListEntries=0)
virtual void onExtensionObjectDeleted(OdTrVisExtensionId extId)
virtual void obtainClientSettings(ClientSettings &clientSets)
virtual OdTrVisExtensionObjectPtr queryExtensionObject(OdTrVisExtensionId extId)
virtual void onOverlayViewParamsOverride(OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, bool bOverride, const OdTrVisViewParamsDef &pDef=OdTrVisViewParamsDef())
virtual void onBlockPropertyAttached(OdTrVisBlockId blockId, const OdTrVisPropertyDef &propDef)
virtual void onOverlayDeleted(OdTrVisOverlayId overlayId)
virtual void onGroupMetafilesFadingChanged(OdTrVisGroupId groupId, bool bFade)
virtual void onLightPropertyDetached(OdTrVisLightId lightId, OdTrVisPropertyDef::PropertyType propType)
virtual void onLayerVpDepPropsOverride(OdTrVisLayerId layerId, OdTrVisViewportId viewportId, bool bOverride, const OdTrVisLayerProps &pProps=OdTrVisLayerProps())
virtual void onVisualStylePropertyAttached(OdTrVisVisualStyleId visualStyleId, const OdTrVisPropertyDef &propDef)
virtual void onOverlayVisibilityChanged(OdTrVisOverlayId overlayId, bool bVisibility)
virtual void onVisualStyleModified(OdTrVisVisualStyleId visualStyleId, const OdTrVisVisualStyle &pDef)
virtual void onMetafileOrderInheritance(OdTrVisViewportId viewportId1, OdTrVisOverlayId overlayId1, OdTrVisViewportId viewportId2)
virtual void onMaterialAdded(OdTrVisMaterialId materialId, const OdTrVisMaterialDef &pDef)
virtual void onMetafileFadingChanged(OdTrVisMetafileId metafileId, bool bFade)
virtual void onOverlayPropertyAttached(OdTrVisOverlayId overlayId, const OdTrVisPropertyDef &propDef)
virtual void onOverlayRenderOrderChanged(OdTrVisOverlayId overlayId, OdInt16 nRenderOrder)
virtual void onDeviceUpdateEnd(OdTrVisRenderClient *pDevice, bool bRender=true)
virtual void onMetafileDeleted(OdTrVisMetafileId metafileId)
virtual void onGroupDeleted(OdTrVisGroupId groupId)
virtual OdTrVisDisplayId onMetafileAdded(OdTrVisMetafileId metafileId, const OdTrVisMetafileDef &pDef)
virtual void onVisualStylePropertyDetached(OdTrVisVisualStyleId visualStyleId, OdTrVisPropertyDef::PropertyType propType)
virtual void onMaterialDeleted(OdTrVisMaterialId materialId)
virtual void onTextureDeleted(OdTrVisTextureId textureId)
virtual void onBlockModified(OdTrVisBlockId blockId, OdUInt32 nInvalidFrom, OdUInt32 nInvalidLen, const OdTrVisDisplayId *pValidFrom, OdUInt32 nValidLen)
virtual void onLayerDeleted(OdTrVisLayerId layerId)
struct OdTrVisRenditionMt::DataTypeEntry m_dataTypes[kNDataTypes]
virtual void onGroupPropertyDetached(OdTrVisGroupId groupId, OdTrVisPropertyDef::PropertyType propType)
OdStaticRxObject< OdTrVisRenditionRecorder > m_recordRenditionHandler
OdStaticRxObject< OdTrVisRenditionDef > m_skipRenditionHandler
virtual void onViewportClipModified(OdTrVisViewportId viewportId, const OdTrVisViewportClipDef &pDef, bool bNrcClipModified=true, bool bBorderModified=true)
virtual void onViewportLightDetached(OdTrVisViewportId viewportId, OdTrVisLightId lightId)
virtual void onMetafileHighlightingChanged(OdTrVisMetafileId metafileId, bool bHighlight)
virtual void onViewportViewParamsModified(OdTrVisViewportId viewportId, const OdTrVisViewParamsDef &pDef)
virtual void onBlockAdded(OdTrVisBlockId blockId, const OdTrVisDisplayId *pList, OdUInt32 nEntries)
virtual void onBlockPropertyDetached(OdTrVisBlockId blockId, OdTrVisPropertyDef::PropertyType propType)
virtual void onMetafileOrderChanged(OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, const OdTrVisDisplayId *pList, OdUInt32 nEntries)
virtual void onSurfaceChanged(const OdTrVisSurfaceDef &pDef)
virtual void onTexturePropertyDetached(OdTrVisTextureId textureId, OdTrVisPropertyDef::PropertyType propType)
virtual OdTrVisProgramId queryProgramId(OdGsView::RenderMode mode, OdTrVisVisualStyleId vsId=kTrVisNegativeId, OdTrVisGeomType geomType=OdTrVisGeomType_Default, OdUInt16 attrFlags=0, OdUInt16 shadingFlags=0) const
virtual void onViewportLineweightsModified(OdTrVisViewportId viewportId, const OdTrVisViewportLineweightsDef &pDef)
virtual void onViewportLineStylesModified(OdTrVisViewportId viewportId, const OdTrVisViewportLineStyleDef &pDef)
virtual void onMaterialPropertyDetached(OdTrVisMaterialId materialId, OdTrVisPropertyDef::PropertyType propType)
virtual void onGroupMetafilesAttached(OdTrVisGroupId groupId, const OdTrVisMetafileId *pMetafilesList, OdUInt32 nMetafiles)
virtual void onStateBranchAdded(OdTrVisStateBranchId stateBranchId, const OdTrVisStateBranchDef &pDef)
virtual void onVisualStyleDeleted(OdTrVisVisualStyleId visualStyleId)
OdMutexPtr m_pRecordMutex
bool isMt() const
virtual IdRegistrator * idRegistrator() const
virtual void onOverlayExtentsOverride(OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, const OdTrVisExtentsDef &pDef)
virtual void onLightPropertyAttached(OdTrVisLightId lightId, const OdTrVisPropertyDef &propDef)
virtual void onViewportBackgroundChanged(OdTrVisViewportId viewportId, OdTrVisFlatMetafileContainerPtr pStream, OdTrVisProgramId baseProgramId=kTrVisNegativeId)
virtual void onMetafileVisibilityChanged(OdTrVisMetafileId metafileId, bool bVisibility)
OdTrVisRenditionMt::IdRegistratorMt m_mtRegistrator
virtual void onMetafilePropertyDetached(OdTrVisMetafileId metafileId, OdTrVisPropertyDef::PropertyType propType)
virtual void onViewportShadingModified(OdTrVisViewportId viewportId, const OdTrVisViewportShadingDef &pDef)
virtual void onViewportPropertyAttached(OdTrVisViewportId viewportId, const OdTrVisPropertyDef &propDef)
virtual void onViewportAdded(OdTrVisViewportId viewportId, const OdTrVisViewportDef &pDef)
virtual void onOverlayAdded(OdTrVisOverlayId overlayId, const OdTrVisOverlayDef &pDef)
virtual void onLightDeleted(OdTrVisLightId lightId)
virtual void onLightModified(OdTrVisLightId lightId, OdUInt32 nKindOfMod, const OdTrVisLightDef &pDef)
virtual bool unlockMetafileStream(const OdTrVisMetafileContainer *pStream)
virtual void onViewportFogChanged(OdTrVisViewportId viewportId, const OdTrVisFogDef &pDef=OdTrVisFogDef())
virtual void onLayerAdded(OdTrVisLayerId layerId, const OdTrVisLayerDef &pDef)
virtual void onLayerFadingChanged(OdTrVisLayerId layerId, bool bFade)
virtual void onOverlayPropertyDetached(OdTrVisOverlayId overlayId, OdTrVisPropertyDef::PropertyType propType)
virtual void onTextureAdded(OdTrVisTextureId textureId, const OdTrVisTextureDef &pDef)
virtual void onViewportAntiAliasingChanged(OdTrVisViewportId viewportId, OdUInt32 nAntiAliasing)
virtual void onGroupAdded(OdTrVisGroupId groupId)
virtual void onExtensionObjectAdded(OdTrVisExtensionId extId, const OdTrVisExtensionObject *pObj)
virtual void onExtensionObjectSpecificData(OdTrVisExtensionId extId, OdUInt32 nDataId, const OdTrVisPropertyDef &propDef)
virtual void onViewportVisibilityChanged(OdTrVisViewportId viewportId, bool bVisibility)
void onViewportSSAOChanged(OdTrVisViewportId viewportId, bool bEnabled) ODRX_OVERRIDE
virtual void onViewportDeleted(OdTrVisViewportId viewportId)
virtual void onLightAdded(OdTrVisLightId lightId, const OdTrVisLightDef &pDef)
virtual void onViewportAmbientLightChanged(OdTrVisViewportId viewportId, const OdTrVisMaterialColor &ambientLight)
void init(OdTrVisRendition *pRendition)
virtual void onSurfaceInvalidated()
virtual void onGroupPropertyAttached(OdTrVisGroupId groupId, const OdTrVisPropertyDef &propDef)
virtual void onVisualStyleAdded(OdTrVisVisualStyleId visualStyleId, const OdTrVisVisualStyle &pDef)
virtual void onGroupMetafilesVisibilityChanged(OdTrVisGroupId groupId, bool bVisibility)
virtual void onStateBranchPropertyAttached(OdTrVisStateBranchId stateBranchId, const OdTrVisPropertyDef &propDef)
virtual void onViewportLightAttached(OdTrVisViewportId viewportId, OdTrVisLightId lightId, OdUInt32 nOverrides=0, const OdTrVisLightDef &pOverrides=OdTrVisLightDef())
virtual void onTexturePropertyAttached(OdTrVisTextureId textureId, const OdTrVisPropertyDef &propDef)
virtual bool queryMetafileStream(OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, const OdTrVisDisplayId *pDisplayId, OdUInt32 nPathLength, const OdTrVisMetafileContainer **pStream)
virtual const OdTrVisDisplayId * queryBlockMetafilesList(OdTrVisBlockId blockId, OdUInt32 &numEntries)
virtual void onMetafileOrderChanged(OdTrVisViewportId viewportId, OdTrVisOverlayId overlayId, OdUInt32 nInvalidFrom, OdUInt32 nInvalidLen, const OdTrVisDisplayId *pValidFrom, OdUInt32 nValidLen)
virtual void onMetafilePropertyAttached(OdTrVisMetafileId metafileId, const OdTrVisPropertyDef &propDef)
ClientSettings m_cliSets
virtual void onLayerPropertyAttached(OdTrVisLayerId layerId, const OdTrVisPropertyDef &propDef)
virtual void onViewportPropertyDetached(OdTrVisViewportId viewportId, OdTrVisPropertyDef::PropertyType propType)
virtual void onGroupMetafilesHighlightingChanged(OdTrVisGroupId groupId, bool bHighlight)
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
void cleaningMutex(OdMutexPtr *pMutex)
OdMutexPtr m_ownMutex
OdMutexPtr * m_pMutex[4]
MtHandlerType m_handler
DataTypeEntry()
OdTrVisRendition * m_pRendition
void resetMutexes(OdMutexPtr *pMutex1=NULL, OdMutexPtr *pMutex2=NULL, OdMutexPtr *pMutex3=NULL, OdMutexPtr *pMutex4=NULL)
void getset(IdRegistrator *pBaseRegistrator)
virtual void reg(DataType type, OdTrVisId id, const OdGiDrawable *pTransId)
OdMutexPtr m_pMutex[kNGenericDataTypes]
virtual void reg(DataType type, OdTrVisId id, OdDbStub *pPersId)
virtual void kill(DataType type, OdTrVisId id)
virtual OdTrVisUniqueID * get(DataType type, OdTrVisId id, bool bKill=false) const
virtual void reg(DataType type, OdTrVisId id, const OdTrVisUniqueID &uId)