Trees | Index | Help |
---|
Module gwy :: Class Spectra |
|
Spectra The Spectra
struct contains private data
only and should be accessed using the functions below.
Method Summary | |
---|---|
Creates a new Spectra object containing zero spectra. | |
Appends a new_spectrum to the spectra collection with a position of x, y. | |
Removes all spectra from the collection. | |
Emits signal "data_changed" on a spectra object. | |
Gets the number of spectra in a spectra object. | |
Gets SI unit used for the location co-ordinates of spectra. | |
Gets a dataline that contains the spectrum at index i. | |
Gets the selected state of a spectrum in a spectra object. | |
Gets the title of spectra. | |
Creates a new Spectra object similar to an existing one, but containing zero spectra. | |
remove_spectrum(i)
| |
Sets the SI unit corresponding to the location co-ordinates of the spectra object. | |
Replaces the ith spectrum in the spectra object with a the supplied spectrum, new_spectrum. | |
Sets selected state of a spectrum in a spectra object. | |
Sets the title of the spectra collection. | |
Sets the location coordinates of a spectrum. | |
Gets the list of the indices to spectra ordered by their distance from a given point. | |
Gets the coordinates of one spectrum. | |
Finds the index of the spectrum closest to the location specified by the coordinates x and y. |
Method Details |
---|
__init__()
Creates a new Spectra object containing zero spectra.
|
add_spectrum(new_spectrum, x, y)Appends a new_spectrum to the spectra collection with a position of
x, y.
|
clear()Removes all spectra from the collection. Since: 2.7 |
data_changed()Emits signal "data_changed" on a spectra object. Since: 2.7 |
get_n_spectra()Gets the number of spectra in a spectra object.
|
get_si_unit_xy()Gets SI unit used for the location co-ordinates of spectra.
|
get_spectrum(i)Gets a dataline that contains the spectrum at index i.
|
get_spectrum_selected(i)Gets the selected state of a spectrum in a spectra object.
|
get_title()Gets the title of spectra.
|
new_alike()Creates a new Spectra object similar to an existing one, but containing zero spectra. UseSpectra.duplicate () if you want to copy a spectra
object including the spectra in it.
|
set_si_unit_xy(si_unit)Sets the SI unit corresponding to the location co-ordinates of the spectra object. It does not assume a reference on
|
set_spectrum(i, new_spectrum)Replaces the ith spectrum in the spectra object with a the supplied spectrum, new_spectrum. It takes its own reference to the New_Spectrum dataline. Since: 2.7
|
set_spectrum_selected(i, selected)Sets selected state of a spectrum in a spectra object. Since: 2.7
|
set_title(title)Sets the title of the spectra collection. Since: 2.7
|
setpos(i, x, y)Sets the location coordinates of a spectrum. Since: 2.7
|
UNIMPLEMENTED_find_nearest(x, y, n, ilist)Gets the list of the indices to spectra ordered by their distance from a given point. List positions Since: 2.7
|
UNIMPLEMENTED_itoxy(i, x, y)Gets the coordinates of one spectrum. Since: 2.7
|
xytoi(x, y)Finds the index of the spectrum closest to the location specified by the coordinates x and y.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Dec 30 04:01:42 2008 | http://epydoc.sf.net |