mantidimaging.gui.windows.recon.point_table_model module#

class mantidimaging.gui.windows.recon.point_table_model.Column(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

CENTRE_OF_ROTATION = 1#
SLICE_INDEX = 0#
class mantidimaging.gui.windows.recon.point_table_model.CorTiltPointQtModel(parent=None)[source]#

Bases: QAbstractTableModel, CorTiltDataModel

Model of the slice/rotation point data in the rotation/tilt view’s tableView.

This class handles GUI interaction with the tableView whilst CorTiltDataModel provides methods for calculating rotation and gradient from the stored values.

appendNewRow(row: int, slice_idx: int, cor: float = 0.0) None[source]#
columnCount(self, parent: QModelIndex = QModelIndex()) int[source]#
data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) Any[source]#
flags(self, index: QModelIndex) Qt.ItemFlags[source]#
getColumn(column_index: int) list[int][source]#
headerData(self, section: int, orientation: Qt.Orientation, role: int = Qt.ItemDataRole.DisplayRole) Any[source]#
insertRows(self, row: int, count: int, parent: QModelIndex = QModelIndex()) bool[source]#
populate_slice_indices(begin: int, end: int, count: int, cor: float = 0.0) None[source]#
removeAllRows(parent: QModelIndex | None = None) None[source]#
removeRows(self, row: int, count: int, parent: QModelIndex = QModelIndex()) bool[source]#
rowCount(self, parent: QModelIndex = QModelIndex()) int[source]#
setData(self, index: QModelIndex, value: Any, role: int = Qt.ItemDataRole.EditRole) bool[source]#
set_point(idx: int, slice_idx: int | None = None, cor: float | None = None, reset_results: bool = True) None[source]#
sort_points() None[source]#