MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLDrawingSurfaceDrawCallback Class Referenceabstract

Detailed Description

This class is used when the application wishes to receive a callback when an asynchronous operation within the drawing surface has completed.

Currently this callback is used by tiled buffered layer rendering to indicate a new tile is available for display. See the documentation for TSLOptionEnum for more information.

Public Member Functions

virtual void redrawRequired (const TSLEnvelope &extent, unsigned int pendingOperations)=0
 
virtual ~TSLDrawingSurfaceDrawCallback ()=0
 

Constructor & Destructor Documentation

◆ ~TSLDrawingSurfaceDrawCallback()

TSLDrawingSurfaceDrawCallback::~TSLDrawingSurfaceDrawCallback ( )
inlinepure virtual

Member Function Documentation

◆ redrawRequired()

virtual void TSLDrawingSurfaceDrawCallback::redrawRequired ( const TSLEnvelope & extent,
unsigned int pendingOperations )
pure virtual

This callback will be invoked when an application redraw is required due to new data being available for display.

This method will be invoked in a background thread, so applications should not directly invoke the draw methods on TSLDrawingSurface. Instead the application should post a message to their drawing thread to perform the redraw.

Parameters
extentThe extent of the area that has changed to trigger the redraw.
pendingOperationsThe number of outstanding operations that still need to be processed. Once this number reaches 0 no further callbacks will be triggered as all data necessary for the current view area should be available.