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



Events


Unit:SDL_plot3d
Class: TPlot3D
Declaration: property OnBeforeDrawScaleLabel: Tp3BeforeDrawScaleLabelEvent;
property OnBeforeRenderPolygon: TBeforeRenderPolygonEvent;
property OnClick: TNotifyEvent;
property OnDataRendered: TRenderEvent;
property OnDblClick: TNotifyEvent;
property OnMouseAction: TMouseActionEvent;
property OnMouseMove: TMouseMoveEvent;
property OnMouseMoveOverPlot: TMouseMoveOverPlotEvent;
property OnMouseDown: TMouseEvent;
property OnMouseUp: TMouseEvent;
property OnKeyDown: TKeyEvent;
property OnKeyPress: TKeyPressEvent;
property OnKeyUp: TKeyEvent;
property OnMouseWheel;
property OnMouseWheelUp;
property OnMouseWheelDown;

The OnClick and the OnDblClick events occur when the user clicks on the component. The OnClick and the OnDblClick events occur when the user clicks on the component. The events OnMouseMove, OnMouseDown, OnMouseUp, OnMouseWheel, OnMouseWheelUp, and OnMouseWheelDown support the handling of the mouse. See the Delphi (C++ Builder) documentation for more details.

Note, that the OnMouseMove event is internally used to control the interactive operation if the property MouseAction  is set to a value other than maNone.

The OnMouseAction event returns the current angles, the coordinates of the center of the surface and the magnification factor.

The event OnBeforeRenderPolygon can be used to influence the appearance of the individual quadrilaterals of the 3D surface.

The event OnMouseMoverOverPlot returns the position of the mouse in cell coordinates of the matrix GridMat (if the mouse is over the 3D surface).

Hint: The OnMouseWheel, OnMouseWheelDown, and OnMouseWheelUp events are only received by the component if it has the focus. For example, you could call the method SetFocus in the OnClick event, to ensure that TPlot3D has the focus after the user clicked it.

Example: Some of these events are used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): interpol3d



Last Update: 2012-Oct-20