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 (Union[float, int]) –

Return type:

None

getSelection()#
Returns:

the selection of slices to use

Return type:

tuple

nRequiredSlice()#
Return type:

Optional[int]

nSelected()#

Return the number of slice selected

Return type:

int

removeSlice(row)#

remove the requested slice from the selection

Parameters:

row (Union[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

Type:

numpy.ndarray

setSelection(rows)#
Parameters:

rows (Iterable) – define the selection

Return type:

None