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



OnMouseMoveOverPlot


Unit:SDL_plot3d
Class: TPlot3D
Declaration: OnMouseMoveOverPlot: TMouseMoveOverPlotEvent;
{ TMouseMoveOverPlotEvent = procedure (Sender: TObject; OverPlot: boolean; Shift: TShiftState; MouseCellX, MouseCellY: integer) of object; }

The event OnMouseMoveOverPlot is triggered whenever the mouse moves over the 3D surface. The parameter OverPlot is TRUE if the mouse cursor is over the the 3D surface. In this case the parameters MouseCellX and MouseCellY are non-zero and valid; they contain the indices of the matrix cell which corresponds to the quadrilateral the mouse is moving over. The parameter Shift contains the current state of the mouse buttons.

Hint: The time required to process the OnMouseMoveOverPlot event depends on the size of the matrix GridMat. Thus this event may degrade system performance for large data matrices.

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


Last Update: 2012-Oct-20