![]() |
Workspace 6.21.5
|
Delegate class that knows how to display matrix information (of type T) in a QTable. More...
#include <Workspace/Widgets/matrixwidget.h>
Public Member Functions | |
MatrixTableDelegate (const R &reader=R(), const W &writer=W(), const S &size=S()) | |
T | getMatrixImpl () const |
int | getNumCols () const override |
int | getNumRows () const override |
void | updateTableImpl (const T &matrix) |
![]() | |
virtual | ~MatrixTableDelegateBase ()=default |
void | createTable (QWidget *parent) |
template<typename T > | |
T | getMatrix () const |
virtual int | getNumCols () const =0 |
virtual int | getNumRows () const =0 |
template<typename T > | |
void | updateTable (const T &matrix) |
Additional Inherited Members | |
![]() | |
MatrixTableDelegateBase () | |
![]() | |
QTableWidget * | table_ |
T | The type of matrix we are going to display in a table. |
R | The reader policy: a class that knows how to read cells from matrices of type T. |
W | The writer policy: a class that knows how to write to the cells of matrices of type T. |
S | The size policy: a class that knows how to find out how many rows or columns are in matrices of type T. |
|
inline |
reader | The reader to use to extract cell values from matrices. |
writer | The writer to use to set cell values in a matrix. |
size | The size object to use to get the row / column sizes from a matrix. |
|
inline |
|
inlineoverridevirtual |
Implements MatrixTableDelegateBase.
|
inlineoverridevirtual |
Implements MatrixTableDelegateBase.
|
inline |
matrix | The matrix we are going to use to set the table cells. |
Updates the QTable to contain the values held within matrix.