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

Detailed Description

This class is used when the application wishes to receive a callback before a layer is drawn and after a layer has been drawn.

The expected use is with the TSLDynamicDataObjectLayer and the OpenGL Drawing Surface for managing OpenGL resources.

Public Member Functions

virtual void preDrawLayer (TSLRenderingInterface *renderingInterface, const TSLEnvelope *extent)=0
 
virtual void postDrawLayer (TSLRenderingInterface *renderingInterface, const TSLEnvelope *extent)=0
 
virtual void releaseResources (int drawingSurfaceId)=0
 
virtual ~TSLDataLayerDrawingCallback ()=0
 

Constructor & Destructor Documentation

◆ ~TSLDataLayerDrawingCallback()

TSLDataLayerDrawingCallback::~TSLDataLayerDrawingCallback ( )
inlinepure virtual

Member Function Documentation

◆ postDrawLayer()

virtual void TSLDataLayerDrawingCallback::postDrawLayer ( TSLRenderingInterface * renderingInterface,
const TSLEnvelope * extent )
pure virtual

Provides callbacks to the application at the point just after the layer has been drawn.

The developer should provide an implementation of this method.

Parameters
renderingInterfaceProvides a handle to the drawing operations.
extentProvides the extent of the area being drawn by the drawing surface in TMCs.

◆ preDrawLayer()

virtual void TSLDataLayerDrawingCallback::preDrawLayer ( TSLRenderingInterface * renderingInterface,
const TSLEnvelope * extent )
pure virtual

Provides callbacks to the application at the point just before the layer is drawn.

The developer should provide an implementation of this method.

Parameters
renderingInterfaceProvides a handle to the drawing operations.
extentProvides the extent of the area being drawn by the drawing surface in TMCs.

◆ releaseResources()

virtual void TSLDataLayerDrawingCallback::releaseResources ( int drawingSurfaceId)
pure virtual

This method is called when the application is expected to release any resources that it has allocated.

This method is not called when NULL is passed to TSLDataLayer::addDrawingCallback.

Parameters
drawingSurfaceIdThe drawing surface id that the resources are being invalidated for.