Trees | Indices | Help |
---|
|
General two-dimensional data
Surface
represents general, i.e. possibly unevenly
spaced, two-dimensional data, also called XYZ data.
Surface points are stored in a flat array
Surface
-struct.data of XYZ
values.
Unlike DataField
, a surface can also be empty,
i.e. contain zero points.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Creates a new empty surface. The surface will not contain any points. This parameterless
constructor exists mainly for language bindings,
Since: 2.45 |
Creates a new empty surface similar to another surface. The units of the new surface will be identical to those of
Since: 2.45 |
Creates a new surface as a part of another surface. The new surface consits of data with lateral coordinates within the specified ranges (inclusively). It may be empty. Data are physically copied, i.e. changing the new surface data does
not change
Since: 2.45 |
Gets the raw XYZ data array of a surface. The returned buffer is not guaranteed to be valid through whole data surface life time. This function invalidates any cached information, use See Surface.invalidate() for some discussion.
Since: 2.45 |
Gets the number of points in an XYZ surface.
Since: 2.45 |
Emits signal Surface::data-changed on a surface. Since: 2.45 |
Copies the data of a surface to another surface of the same dimensions. Only the data points are copied. To make a surface completely
identical to another, including units and change of dimensions, you can
use
Since: 2.45 |
Invalidates cached surface statistics. Cached statistics include ranges returned by Surface.get_xrange(), Surface.get_yrange() and Surface.get_min_max(), the fingerprint for Surface.xy_is_compatible() and and possibly other characteristics in the future. See DataField.invalidate() for discussion of invalidation and examples. Since: 2.45 |
Fills the data of a surface from a data field. The number of points in the new surface will be equal to the number of
points in the field. Lateral coordinates will be equal to the
corresponding Lateral and value units will correspond to
Since: 2.45 |
Fills the data of a surface from a data field, possibly using masking.
Since: 2.46 |
Returns lateral SI unit of a surface.
Since: 2.45 |
Returns value SI unit of a surface.
Since: 2.45 |
Sets the SI unit corresponding to the lateral (XY) dimensions of a surface. It does not assume a reference on
Since: 2.45 |
Sets the SI unit corresponding to the "height" (Z) dimension of a surface. It does not assume a reference on
Since: 2.45 |
Finds value format good for displaying coordinates of a surface.
Since: 2.45 |
Finds value format good for displaying values of a surface.
Since: 2.45 |
Sets lateral and value units of a surface to match another surface.
Since: 2.49 |
Sets lateral and value units of a data field to match a surface.
Since: 2.46 |
Obtains a single surface point. This function exists only for language bindings as it is very
slow compared to simply accessing
Since: 2.45 |
Gets the range of X coordinates of a surface. This information is cached.
Since: 2.45 |
Gets the range of Y coordinates of a surface. This information is cached.
Since: 2.45 |
Gets the range of Z values of a surface. This information is cached.
Since: 2.45 |
Puts back values from a flat array to an entire data surface. If you do not have an array of See
Since: 2.45 |
Checks whether the XY positions of two surfaces are compatible. Compatible XY positions mean the XY units are the same and the points
are the same. Two surfaces that have the same set of XY points but in
different orders are not considered compatible. This is because
the points at the same index in This information is cached.
Since: 2.45 |
Creates a similar surface with smaller number of points. The functions attempts to choose points from the original surface to cover its full area, even though points from dense regions are still more likely to be found in the result than points from sparse regions. As the main purpose to enable quick rough operations that may take long time with the full surface, the focus is on speed not fidelity. The function may employ random selection and thus be be non-deterministic.
Since: 2.48 |
Changes the number of points in a surface. If the number of points decreases then the first
Use Surface.set_data_full() if you already have an array of
Since: 2.61 |
Sets a single surface value. This function exists only for language bindings as it is very
slow compared to simply accessing
Since: 2.45 |
Duplicates a surface. This is a convenience wrapper of gwy_serializable_duplicate().
Since: 2.45 |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |