tsc_PointStakeoutGraphicsEventArgs

This class is passed to the tsc_PointStakeout::OnDrawGraphics event handler, and allows navigation information to be obtained and the caller to draw additional graphics on the stakeout canvas.

tsc_PointStakeoutNavInterface& Nav;

This member contains methods for obtaining the current navigation state.  Note that positions returned by this member may briefly contain double_Null values before a position has been established and during other events such as a change of sensor.  The plugin should test for double_Null values and behave accordingly.  The Nav.CurrentPosition could be regarded as the centre of the graphic, however this is only true in some modes.

virtual void SetLayerImage (tsc_StakeoutLayer layer, tsc_Image& image);

Sets a bitmap to be drawn on the stakeout graphic, at the specified place (layer) in the z-order; see the enum tsc_StakeoutLayer. To remain displayed, the image must be set every time OnDrawGraphics is called. For performance reasons, the image is rendered in 256 colours.

virtual tsc_Image MakeImage();

Returns an image of the correct type and dimensions for use in SetLayerImage. It is more efficient to call this function once and retain the returned tsc_Image object for reuse each time tsc_PointStakeout::OnDrawGraphics is called.

virtual double CanvasAzimuth ();

Returns the current azimuth of the displayed graphic.  This is expressed in radians and denotes the direction of north measured clockwise from "up" in the window (that is, decreasing y).  This value is only relevant for some display modes.

virtual tsc_Rectangle RectCanvas ();

Returns the dimensions of the stakeout graphics canvas.

virtual tsc_Rectangle RectPointNameText ();

Returns the location and size of the point name field on the graphics canvas.  This could be used, for instance, to display an additional field aligned with and just below the point name.