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....



TMouseActionEvent


Unit: SDL_plot3d
Class: none
Declaration: TMouseActionEvent = procedure (Sender: TObject; var CenterX, CenterY: integer; RotXAngle, RotZAngle, Magnification: double; Shift: TShiftState) of object;

The TMouseActionEvent is triggered before a mouse action  is carried out. The parameters CenterX and CenterY contain the screen coordinates (in pixels) of the center of the 3D surface, the parameters RotXAngle and RotZAngle hold the rotation angles to be set by the mouse action, and the parameter Magnification specifies the magnification factor. You may change these parameters in the event handler in order to achieve special effects (e.g. to limit the range of rotation angles). The parameter Shift contains the current state of the mouse buttons.


Last Update: 2023-Dec-14