MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLInteractionModeManagerGeneric Class Reference
Inheritance diagram for TSLInteractionModeManagerGeneric:

Detailed Description

Specific instance of the TSLInteractionModeManager that uses the technology of the given drawing surface. This instantiates an instance of the TSLInteractionModeDisplayGeneric class for use by the modes.

Note:

  • This manager does not support the use of the magnify interaction mode.
  • The mouse is not captured for line and rectangle echos.

Public Member Functions

 TSLInteractionModeManagerGeneric (TSLInteractionModeRequest *requestHandler, TSLDrawingSurface *drawingSurface, int maxViewStackSize=5, int numSavedViews=5, int mouseWheelZoomPercentage=30, bool lockCursorOnMouseWheel=false)
 
virtual ~TSLInteractionModeManagerGeneric ()
 
void * operator new (size_t size) TSL_NO_THROW
 
void operator delete (void *self)
 
void * operator new (size_t size, char *filename, int line)
 
- Public Member Functions inherited from TSLInteractionModeManager
virtual ~TSLInteractionModeManager ()
 
bool addMode (TSLInteractionMode *mode, bool isDefault)
 
int getCurrentMode (TSLInteractionMode **mode=0) const
 
int getMode (int nth, TSLInteractionMode **mode=0) const
 
int numModes () const
 
void onDraw (TSLDeviceUnits x1, TSLDeviceUnits y1, TSLDeviceUnits x2, TSLDeviceUnits y2)
 
virtual bool onLButtonDown (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control)
 
virtual bool onLButtonUp (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control)
 
virtual bool onMButtonDown (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control)
 
virtual bool onMButtonUp (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control)
 
virtual bool onMouseMove (TSLButtonType button, TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control)
 
bool onMouseWheel (short delta, TSLDeviceUnits x, TSLDeviceUnits y)
 
virtual bool onRButtonUp (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control)
 
virtual bool onRButtonDown (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control)
 
virtual bool onGestureZoom (TSLDeviceUnits cx, TSLDeviceUnits cy, double zoomFactor)
 
virtual bool onGesturePan (TSLDeviceUnits startx, TSLDeviceUnits starty, TSLDeviceUnits endx, TSLDeviceUnits endy)
 
virtual bool onGestureRotate (TSLDeviceUnits cx, TSLDeviceUnits cy, double dblAngle)
 
virtual bool onGestureTap (TSLDeviceUnits x, TSLDeviceUnits y)
 
virtual bool onGesturePressAndTap (TSLDeviceUnits firstFingerX, TSLDeviceUnits firstFingerY, long lDelta)
 
virtual bool onGestureTwoFingerTap (TSLDeviceUnits cx, TSLDeviceUnits cy)
 
void onSize (TSLDeviceUnits cx, TSLDeviceUnits cy)
 
TSLCursorStyle queryCursor ()
 
const char * queryPrompt ()
 
TSLInteractionModeremoveMode (int id)
 
void resetMode (TSLButtonType button, TSLDeviceUnits x, TSLDeviceUnits y)
 
bool resetToExtent (const TSLEnvelope &extent, bool addToViewStack=true)
 
bool resetToFullExtent (bool addToViewStack=true)
 
void resetViews ()
 
bool savedViewGet (int idx, TSLEnvelope &extent)
 
bool savedViewGoto (int idx)
 
bool savedViewReset ()
 
bool savedViewSetToCurrent (int idx)
 
bool savedViewSet (int idx, const TSLEnvelope &extent)
 
bool savedViewValid (int idx)
 
bool setCurrentMode (int id)
 
bool setDefaultMode (int id)
 
bool setViewedExtent (const TSLEnvelope &extent, bool addToViewStack=true)
 
void viewChanged (bool addToViewStack)
 
bool viewStackGetCurrent (TSLEnvelope &extent)
 
bool viewStackGotoNext ()
 
bool viewStackGotoPrevious ()
 
bool viewStackNextValid ()
 
bool viewStackPreviousValid ()
 
bool viewStackReset ()
 
int viewStackSize ()
 
bool zoomIn (int zoomPercentage, bool addToViewStack=true)
 
bool zoomOut (int zoomPercentage, bool addToViewStack=true)
 

Additional Inherited Members

- Protected Member Functions inherited from TSLInteractionModeManager
 TSLInteractionModeManager (TSLInteractionModeRequest *requestHandler, int maxViewStackSize=5, int numSavedViews=5, int mouseWheelZoomPercentage=30, bool lockCursorOnMouseWheel=false)
 
- Protected Attributes inherited from TSLInteractionModeManager
void * m_modes
 
TSLInteractionModem_currentMode
 
TSLInteractionModeRequestm_requestHandler
 
TSLInteractionModem_defaultMode
 
TSLInteractionModeDisplaym_display
 

Constructor & Destructor Documentation

◆ TSLInteractionModeManagerGeneric()

TSLInteractionModeManagerGeneric::TSLInteractionModeManagerGeneric ( TSLInteractionModeRequest * requestHandler,
TSLDrawingSurface * drawingSurface,
int maxViewStackSize = 5,
int numSavedViews = 5,
int mouseWheelZoomPercentage = 30,
bool lockCursorOnMouseWheel = false )

Constructor for the generic mode manager.

Parameters
requestHandlerHandler for callbacks. The application should derive from TSLInteractionModeRequest and handle the callbacks appropriately.
drawingSurfaceThe drawing surface to use for drawing and view methods.
maxViewStackSizeMaximum depth of the view stack - history of views.
numSavedViewsNumber of views that can be saved
mouseWheelZoomPercentagePercentage of the current view to zoom in/our on a mouse wheel
lockCursorOnMouseWheelIf true, the current location of the mouse cursor will be locked in place on a zoom in/out. Requires the point passed to onMouseWheel to be in client window space, not screen space

◆ ~TSLInteractionModeManagerGeneric()

virtual TSLInteractionModeManagerGeneric::~TSLInteractionModeManagerGeneric ( )
virtual

Member Function Documentation

◆ operator delete()

void TSLInteractionModeManagerGeneric::operator delete ( void * self)

◆ operator new() [1/2]

void * TSLInteractionModeManagerGeneric::operator new ( size_t size)

◆ operator new() [2/2]

void * TSLInteractionModeManagerGeneric::operator new ( size_t size,
char * filename,
int line )

When included in an MFC application in debug mode, the debug new expects this to be here. Override it and return the same as the normal one. The library must include it when compiled in release mode, since the user's application may be in debug mode.