Element: SurfacePlot.
Icon:
Text: A 3D visualization of a scalar field in Z.
Description: A SurfacePlot is a drawing element that
visualizes in three dimensions a real scalar field defined in a rectangular
area of the plane. For this
purpose, the element divides the rectangle using a grid and associates to
each of its cells one of several possible colors, depending on the value of
the field in the cell and on the selected color scheme. The element
automatically translates the values of the field (between a minimum and a
maximum) into colors of a scale.
Despite its three-dimensional
appearance, the
element must be included as child of a two-dimensional container of the type
DrawingPanel.
Table of properties |
||
Name | Description | Values accepted |
Configuration | ||
Minimum X | The minimum value in the X axis of the rectangular area of the plane displayed. | Any constant or variable of type double or int. |
Maximum X | The maximum value in the X axis of the rectangular area of the plane displayed. | Any constant or variable of type double or int. |
Minimum Y | The minimum value in the Y axis of the rectangular area of the plane displayed. | Any constant or variable of type double or int. |
Maximum Y | The maximum value in the Y axis of the rectangular area of the plane displayed. | Any constant or variable of type double or int. |
Z | The array of real values for the field in each cell. | A two-dimensional array [m][n] of type double, where m and n indicate the number of cells in the X and Y axes, respectively. |
Autoscale Z | Whether to automatically compute the extrema of the displayed Z values. | A boolean variable or one of the constants true or false. |
Minimum Z | The smallest value in Z that will be translated into a color in the scale (Autoscale Z must be false). | Any constant or variable of type double or int. |
Maximum Z | The largest value in Z that will be translated into a color in the scale (Autoscale Z must be false). | Any constant or variable of type double or int. |
Graphical Aspect | ||
Color Mode | The scheme used to assign a color to each of the values of the field. | One of the following constants, corresponding to a different preset color scheme.
|
Floor Color | The color to assign to values below Minimum Z. | See the values for the Grid Color property. |
Ceil Color | The color to assign to values above Maximum Z. | See the values for the Grid Color property. |
Show Grid | Whether to draw the grid itself. | A boolean variable or one of the constants true or false. |
Grid Color | The color used to draw the grid. | An Object variable of the class java.awt.Color
or one of the predefined colors: black,
blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink,
red, white, yellow.
A color can also be specified providing its integer RGB coordinates (between 0 and 255), plus an optional transparency coordinate. The default value is decided by the system. |
Visible | The visibility of the element. | A boolean variable or one of the constants true or false. |