mantidimaging.gui.windows.recon.point_table_model module

class mantidimaging.gui.windows.recon.point_table_model.Column(value)[source]

Bases: Enum

An enumeration.

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)[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) 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, end, count, cor=0.0)[source]
removeAllRows(parent=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, slice_idx: int | None = None, cor: float | None = None, reset_results=True)[source]
sort_points()[source]