AGI STK Esri Display 11 Send comments on this topic.
OnDrawBegin Event (AgEsri3dRenderer)
See Also 
Renderer
The source of the event.
West
West limit of the full extent in world coordinates.
South
South limit of the full extent in world coordinates.
East
East limit of the full extent in world coordinates.
North
North limit of the full extent in world coordinates.
Left
Left side coordinate of the devive frame (in device coordinates).
Top
Top side coordinate of the devive frame (in device coordinates).
Right
Right side coordinate of the devive frame (in device coordinates).
Bottom
Bottom side coordinate of the devive frame (in device coordinates).
ScaleRatio
The current map scale ratio.





Description

Fired at the beginning of draw.

Syntax

[Visual Basic .NET]
Public Event OnDrawBegin( _
   ByVal Renderer As AgEsri3dRenderer, _
   ByVal West As Double, _
   ByVal South As Double, _
   ByVal East As Double, _
   ByVal North As Double, _
   ByVal Left As Integer, _
   ByVal Top As Integer, _
   ByVal Right As Integer, _
   ByVal Bottom As Integer, _
   ByVal ScaleRatio As Double _
)

[C#]
public void OnDrawBegin(
AgEsri3dRenderer Renderer,
double West,
double South,
double East,
double North,
int Left,
int Top,
int Right,
int Bottom,
double ScaleRatio
);

[Managed C++]
public: void OnDrawBegin(
AgEsri3dRenderer Renderer,
double West,
double South,
double East,
double North,
int Left,
int Top,
int Right,
int Bottom,
double ScaleRatio
);

[Java]
public  onDrawBegin(
AgEsri3dRenderer Renderer,
double West,
double South,
double East,
double North,
ppInteger Left,
ppInteger Top,
ppInteger Right,
ppInteger Bottom,
double ScaleRatio
);

[Unmanaged C++]
public: HRESULT OnDrawBegin(
AgEsri3dRenderer Renderer,
double West,
double South,
double East,
double North,
int Left,
int Top,
int Right,
int Bottom,
double ScaleRatio
);

Parameters

Renderer
The source of the event.
West
West limit of the full extent in world coordinates.
South
South limit of the full extent in world coordinates.
East
East limit of the full extent in world coordinates.
North
North limit of the full extent in world coordinates.
Left
Left side coordinate of the devive frame (in device coordinates).
Top
Top side coordinate of the devive frame (in device coordinates).
Right
Right side coordinate of the devive frame (in device coordinates).
Bottom
Bottom side coordinate of the devive frame (in device coordinates).
ScaleRatio
The current map scale ratio.

Remarks

This event is raised when the current 3D view changes and the rendering process starts for the new view. The parameters passed in to the event describe the new view, both in world and device coordinates.

The current map scale ratio is also passed in, enabling to update other user interface elements that are dependant on the scale ratio (for instance in a layer tree, this can be used to mark the layers currently visible).

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1