This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > ID > IDynamicMapEvents Interface > IDynamicMapEvents.AfterDynamicDraw Method (ArcObjects .NET 10.5 SDK) |
Fired after the specified phase is drawn.
[Visual Basic .NET] Public Sub AfterDynamicDraw ( _ ByVal DynamicMapDrawPhase As esriDynamicMapDrawPhase, _ ByVal Display As IDisplay, _ ByVal dynamicDisplay As IDynamicDisplay _ )
[C#] public void AfterDynamicDraw ( esriDynamicMapDrawPhase DynamicMapDrawPhase, IDisplay Display, IDynamicDisplay dynamicDisplay );
[C++]
HRESULT AfterDynamicDraw(
esriDynamicMapDrawPhase DynamicMapDrawPhase,
IDisplay* Display,
IDynamicDisplay* dynamicDisplay
);
[C++]
Parameters DynamicMapDrawPhase [in]
DynamicMapDrawPhase is a parameter of type esriDynamicMapDrawPhase Display [in]
Display is a parameter of type IDisplay dynamicDisplay [in]
dynamicDisplay is a parameter of type IDynamicDisplay
The AfterDynamicDraw event is getting fired with two different phases (enum esriDynamicMapDrawPhase). Each phase has a different meaning and usage:
esriDMDPLayers – When the Dynamic Map is sensing that it needs to fetch tiles in order to be able to render the scene, the BeforeDynamicDraw will get fired. When the last missing tile will be available and rendered the AfterDynamicDraw event will get fired.Note that it is not valid to use the DynamicDisplay API, nor the OpenGL API in this context, since the OpenGL Rendering Context is not fully setup. Use this context if you need to monitor when the Dynamic Map is still in a process of fetching tiles for rendering the display.