tomwer.gui.utils.lineselector.lineselector.QLineSelector#

class tomwer.gui.utils.lineselector.lineselector.QLineSelector(parent=None, n_required_slice=None)#

Widget to select a set of slices from a plot

addSlice(row)#

Add the requested slice to the selection

Parameters:

row (float | int) –

Return type:

None

getSelection()#
Return type:

tuple

Returns:

the selection of slices to use

nRequiredSlice()#
Return type:

int | None

nSelected()#

Return the number of slice selected

Return type:

int

removeSlice(row)#

remove the requested slice from the selection

Parameters:

row (float | int) – row containing the slice to be removed

Return type:

None

setData(data)#

Define the data from which we can select slices

Parameters:

data (ndarray) – data to plot

setSelection(rows)#
Parameters:

rows (Iterable) – define the selection

Return type:

None