![]() | ![]() | ![]() | Gwyddion Widgets Library Reference Manual | ![]() |
---|
GwyLayerBasic — Display data colored with a gradient
struct GwyLayerBasic; struct GwyLayerBasicClass; GtkObject* gwy_layer_basic_new (void); void gwy_layer_basic_set_gradient (GwyLayerBasic *layer, const gchar *gradient); const gchar* gwy_layer_basic_get_gradient (GwyLayerBasic *layer);
GObject +----GtkObject +----GwyDataViewLayer +----GwyPixmapLayer +----GwyLayerBasic
struct GwyLayerBasicClass { GwyPixmapLayerClass parent_class; gpointer reserved1; gpointer reserved2; };
GtkObject* gwy_layer_basic_new (void);
Creates a new basic data displaying layer.
By default, is uses a gray gradient or gradient whose name is stored with the data as "/0/base/palette".
Other used container values: "/0/show" is shown instead of "/0/data" if present. If "/0/base/min" and "/0/base/max" is set, it is used as the color scale range instead of fitting it to data value range.
Returns : | The newly created layer. |
void gwy_layer_basic_set_gradient (GwyLayerBasic *layer, const gchar *gradient);
Sets the color gradient a basic layer should use.
layer : | A basic data view layer. |
gradient : | Name of gradient layer should use. It should exist. |
const gchar* gwy_layer_basic_get_gradient (GwyLayerBasic *layer);
Returns the color gradient a basic layer uses.
layer : | A basic data view layer. |
Returns : | The gradient name. It must not be modified or freed. It may differ the name that was used on initialization or set with gwy_shader_set_gradient(), if the gradient didn't exist or was renamed meanwhile. |
<< GwyVectorLayer | GwyLayerMask >> |