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



SetRange


Unit:SDL_plot3d
Class:TPlot3D
Declaration:procedure SetRange (xLow, xHigh, yLow, yHigh, zLow, zHigh: double);

The method SetRange sets the extents of the 3D surface chart at once and redraws it using the new scaling. The parameters xLow, yLow, zLow, xHigh, yHigh, and zHigh specify the ranges of the x-, y- and the z-axis. This method is of importance for cases where the range of a chart should be adjusted dynamically (e.g. following the movement of a mouse) because of avoiding any unnecessary calculation of the scales.

If any of the axes has no extent (e.g. xLow =xHigh), the range of the axis is automatically set 0.5 of the mean.

Hint: Please note that only the parameters for the z-axis influences the display of the 3D surface, since the x- and the y-axis are mere inscriptions (see the section about scales and axes  for more details).

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



Last Update: 2023-Dec-13