The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



MouseAction


Unit:SDL_plot3d
Class:TPlot3D
Declaration:property MouseAction: TMouseActMode;

The property MouseAction facilitates interactive rotating and zooming of the data. This property may take one of the following values:

maNone No built-in interaction is possible. The only way to apply a mouse controlled action is by utilizing the mouse events.
maPan The data can be moved across the graphics area of Plot3D.
maRotAndZoom This mode is a combination of maRotate and maZoom. The rotation is accomplished by pressing the left mouse button, the zooming is performed by using the right mouse button. Note, that this mode may interfere with a pop-up menu  assigned to Rot3D.
maRotate The data can be rotated by pressing and holding the left mouse button. The rotation of the data image will then follow the mouse movement.
maRotXOnly The rotation of the data is restricted to the X-axis. The vertical movement of the mouse is translated into the rotation angle about the X-axis.
maRotZOnly The rotation of the data is restricted to the Z-axis. The horizontal movement of the mouse is translated into the rotation angle about the Z-axis.
maZoom The user can zoom into the data by holding the left mouse button down and moving the mouse vertically. The magnification  factor increases when moving upwards, and decreases when moving downwards.

Hint 1: These interactive modes will function smoothly only on a powerful computer with a proper graphics card.

Hint 2: In the case of type ambiguities concerning maNone please visit the SDL TechnNotes.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): interpol3d, plotit3d



Last Update: 2023-Dec-13