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

Detailed Description

This is the request handler, used for callbacks to the application.

The application should derive from this class, and pass a pointer to the constructor of the TSLInteractionModeManager.

Public Member Functions

virtual void resetMode (TSLInteractionMode *newMode, TSLButtonType button, TSLDeviceUnits xDU, TSLDeviceUnits yDU)=0
 
virtual void viewChanged (TSLDrawingSurface *drawingSurface)=0
 
virtual ~TSLInteractionModeRequest ()
 

Constructor & Destructor Documentation

◆ ~TSLInteractionModeRequest()

virtual TSLInteractionModeRequest::~TSLInteractionModeRequest ( )
inlinevirtual

Member Function Documentation

◆ resetMode()

virtual void TSLInteractionModeRequest::resetMode ( TSLInteractionMode * newMode,
TSLButtonType button,
TSLDeviceUnits xDU,
TSLDeviceUnits yDU )
pure virtual

This method is triggered when the mode has gone back to the default - or no current mode if nothing is the default.

Parameters
newModeThis is a pointer to the new active mode.
buttonIf the reset was caused by a button press, then this is the type of button pressed. Can be used to for context menu invocation.
(xDU,yDU)If the reset was caused by a button press, then this is the location of the press. Can be used to for context menu invocation.

◆ viewChanged()

virtual void TSLInteractionModeRequest::viewChanged ( TSLDrawingSurface * drawingSurface)
pure virtual

This is triggered when the view has changed for any reason.

Parameters
drawingSurfacePointer to the drawing surface whose view has changed.