Trees | Index | Help |
---|
Module gwy :: Class DataView |
|
DataView The ::layer-unplugged signal is emitted when a layer is
unplugged from a DataView
.
When a layer replaces an existing layer, ::layer-unplugged is emitted once the old layer is unplugged, then ::layer-plugged when the new is plugged.
('arg1', ' Which layer was unplugged (a #GwyDataViewLayerType value). ')
('gwydataview', ' The #GwyDataView which received the signal. ')Method Summary | |
---|---|
Creates a new data-displaying widget for data . | |
Recomputes screen coordinates relative to widget origin to physical coordinates in the sample. | |
Exports data view to a pixbuf. | |
Returns: The currently used alpha layer. | |
Returns: The currently used base layer. | |
Returns: The data as a Container . | |
Gets the prefix for the container data channel that the data view is currently set to display. | |
Return the horizontal excess of widget size to data size. | |
Creates and returns a pixbuf from the data view. | |
Obtains pixel dimensions of data displayed by a data view. | |
Obtains physical dimensions of data displayed by a data view. | |
Returns: The zoom as a ratio between real displayed size and base data | |
Returns: The currently used top layer. | |
Return the vertical excess of widget size to data size. | |
Returns: The horizontal measure. | |
Returns: The vertical measure. | |
Returns: The zoom as a ratio between ideal displayed size and base data | |
Plugs layer to data_view as
the alpha layer. | |
Plugs layer to data_view as
the base layer. | |
Sets the prefix for the container data channel to display in a data view. | |
Plugs layer to data_view as
the top layer. | |
Sets zoom of data_view to
zoom . | |
Recomputes physical coordinate in the sample to screen coordinate relative to widget origin. | |
Fixes screen coordinates xscr and
yscr to be inside the data-displaying area (which can
be smaller than widget size). | |
Fixes screen coordinates of line endpoints to be inside the data-displaying area (which can be smaller than widget size). | |
Fills metric matrix for a data view. |
Method Details |
---|
__init__(data)
|
coords_xy_to_real(xscr, yscr, xreal, yreal)Recomputes screen coordinates relative to widget origin to physical coordinates in the sample.
|
export_pixbuf(zoom, draw_alpha, draw_top)Exports data view to a pixbuf.
|
get_alpha_layer()Returns: The currently used alpha layer.
|
get_base_layer()Returns: The currently used base layer.
|
get_data()Returns: The data as aContainer .
|
get_data_prefix()Gets the prefix for the container data channel that the data view is currently set to display.
|
get_hexcess()Return the horizontal excess of widget size to data size. Do not use. Only useful forDataWindow
implementation.
|
get_pixbuf(max_width, max_height)Creates and returns a pixbuf from the data view. If the data is not square, the resulting pixbuf is also nonsquare. The returned pixbuf also never has an alpha channel.
|
get_pixel_data_sizes(xres, yres)Obtains pixel dimensions of data displayed by a data view. This is a convenience method, the same values could be obtained byDataField.get_xres () and DataField.get_yres () of the data field
displayed by base layer.
|
get_real_data_sizes(xreal, yreal)Obtains physical dimensions of data displayed by a data view. Physical coordinates are always taken from data field displayed by base layer. This is a convenience method, the same values could be obtained byDataField.get_xreal () and DataField.get_yreal () of the data field
displayed by base layer.
|
get_real_zoom()Returns: The zoom as a ratio between real displayed size and base data
|
get_top_layer()Returns: The currently used top layer.
|
get_vexcess()Return the vertical excess of widget size to data size. Do not use. Only useful forDataWindow
implementation.
|
get_xmeasure()Returns: The horizontal measure.
|
get_ymeasure()Returns: The vertical measure.
|
get_zoom()Returns: The zoom as a ratio between ideal displayed size and base data
|
set_alpha_layer(layer)Plugs If another alpha layer is present, it's unplugged. The layer must not be a vector layer. It can beNULL , meaning no alpha layer is to be used.
|
set_base_layer(layer)Plugs If another base layer is present, it's unplugged. The layer must not be a vector layer. Theoretically, it can beNULL to use no base layer, but then
data_view will probably display garbage.
|
set_data_prefix(prefix)Sets the prefix for the container data channel to display in a data view. This function only affects where the data view itself takes parameters from, it does not affect layer keys.
|
set_top_layer(layer)Plugs If another top layer is present, it's unplugged. The layer must be a vector layer. It can beNULL , meaning no top layer is to be used.
|
set_zoom(zoom)Sets zoom of Zoom greater than 1 means larger image on screen and vice versa. Note window manager can prevent the window from resize and thus the zoom from change.
|
UNIMPLEMENTED_coords_real_to_xy(xreal, yreal, xscr, yscr)Recomputes physical coordinate in the sample to screen coordinate relative to widget origin.
|
UNIMPLEMENTED_coords_xy_clamp(xscr, yscr)Fixes screen coordinatesxscr and
yscr to be inside the data-displaying area (which
can be smaller than widget size).
|
UNIMPLEMENTED_coords_xy_cut_line(x0scr, y0scr, x1scr, y1scr)Fixes screen coordinates of line endpoints to be inside the data-displaying area (which can be smaller than widget size). Since: 2.11
|
UNIMPLEMENTED_get_metric(metric)Fills metric matrix for a data view. The metric matrix essentially transforms distances in physical coordinates to screen distances. It is to be used with functions likegwy_math_find_nearest_point () and
gwy_math_find_nearest_line () when the distance should be
screen-Euclidean.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Dec 30 04:01:42 2008 | http://epydoc.sf.net |