![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This is a simple interaction mode for handling pan to point.
The user's application creates an instance of one these classes and adds it to a TSLInteractionModeManager.
When the LButtonUp event occurs, the mode causes the current view of the TSL3DDrawingSurface to pan to the specified point.
When an RButtonUp event occurs, the mode resets to the default mode.
This is a simple interaction mode with similar behaviour to the NASA World Wind application in the default mode. In this mode, the tilt/rotate functionality rotates the eyepoint in the direction moved.
Thus:
LMB drag grabs and moves the current view. RMB up/down controls the tilt of the current view. RMB left/right rotates the current view. Wheel forward/back zooms in/out by the percentage specified in the constructor.
The user's application creates an instance of one these classes and adds it to a TSL3DInteractionModeManager.
Public Member Functions | |
TSL3DInteractionModeTrackballEyepoint (int modeID, int zoomPercentage=30, const char *prompt="Left button grab pan, Right button tilt/rotate, Wheel zoom") | |
virtual | ~TSL3DInteractionModeTrackballEyepoint () |
void | activate () |
void | deactivate () |
virtual bool | onLButtonDown (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control) |
virtual bool | onLButtonUp (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control) |
virtual bool | onMouseMove (TSLButtonType button, TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control) |
virtual bool | onMouseWheel (short delta, TSLDeviceUnits x, TSLDeviceUnits y) |
virtual bool | onRButtonDown (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control) |
virtual bool | onRButtonUp (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control) |
TSLCursorStyle | queryCursor () |
virtual const char * | queryPrompt () |
void * | operator new (size_t size) TSL_NO_THROW |
void | operator delete (void *self) |
void * | operator new (size_t size, char *filename, int line) |
![]() | |
virtual | ~TSL3DInteractionMode () |
virtual void | onDraw (TSLDeviceUnits x1, TSLDeviceUnits y1, TSLDeviceUnits x2, TSLDeviceUnits y2) |
virtual bool | onMButtonDown (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control) |
virtual bool | onMButtonUp (TSLDeviceUnits x, TSLDeviceUnits y, bool shift, bool control) |
virtual void | onSize (TSLDeviceUnits cx, TSLDeviceUnits cy) |
virtual void | setDisplay (TSL3DInteractionModeDisplay *display) |
int | id () const |
Additional Inherited Members | |
![]() | |
TSL3DInteractionMode (int modeID) | |
![]() | |
int | m_id |
TSL3DInteractionModeDisplay * | m_display |
TSL3DInteractionCameraManager * | m_cameraManager |
TSL3DDrawingSurface * | m_drawingSurface |
bool | m_pressed |
TSL3DInteractionModeTrackballEyepoint::TSL3DInteractionModeTrackballEyepoint | ( | int | modeID, |
int | zoomPercentage = 30, | ||
const char * | prompt = "Left button grab pan, Right button tilt/rotate, Wheel zoom" ) |
See this class description and base class method description for further details
|
virtual |
See this class description and base class method description for further details
|
virtual |
See this class description and base class method description for further details
Reimplemented from TSL3DInteractionMode.
|
virtual |
See this class description and base class method description for further details
Reimplemented from TSL3DInteractionMode.
|
virtual |
See this class description and base class method description for further details
Reimplemented from TSL3DInteractionMode.
|
virtual |
See this class description and base class method description for further details
Reimplemented from TSL3DInteractionMode.
|
virtual |
See this class description and base class method description for further details
Reimplemented from TSL3DInteractionMode.
|
virtual |
Mouse wheel hander for interaction modes. This event will be passed on to the currently active mode.
delta | Delta value of mouse wheel movement. See Windows help for further information. |
(x,y) | Position of locator event, in device unit coordinates. |
Reimplemented from TSL3DInteractionMode.
|
virtual |
See this class description and base class method description for further details
Reimplemented from TSL3DInteractionMode.
|
virtual |
See this class description and base class method description for further details
Reimplemented from TSL3DInteractionMode.
void TSL3DInteractionModeTrackballEyepoint::operator delete | ( | void * | self | ) |
void * TSL3DInteractionModeTrackballEyepoint::operator new | ( | size_t | size | ) |
void * TSL3DInteractionModeTrackballEyepoint::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.
|
virtual |
See this class description and base class method description for further details
Reimplemented from TSL3DInteractionMode.
|
virtual |
See this class description and base class method description for further details
Reimplemented from TSL3DInteractionMode.