Workspace 6.21.5
Signals | Public Member Functions | List of all members
MatrixWidget Class Reference

Widget for displaying / editing the contents of a matrix datastructure. Assumes that all data is going to be in floating point format. More...

#include <Workspace/Widgets/matrixwidget.h>

Inherits QWidget.

Signals

void cellsChanged ()
 

Public Member Functions

 MatrixWidget (QWidget *parent=nullptr)
 
 ~MatrixWidget () override
 
template<typename T >
getMatrix () const
 
void setDelegate (MatrixTableDelegateBase &delegate)
 
template<typename T >
void setMatrix (const T &matrix)
 

Detailed Description

The MatrixWidget can be used to display matrix data of any data type, provided that a MatrixTableDelegate has been defined and assigned to the widget via the setDelegate() method.

If no MatrixTableDelegate is specified, a new delegate will be created when the setMatrix() method is first invoked. The delegate will be of type MatrixTableDelegate<T, MatrixReader, MatrixWriter, MatrixSize>, the latter three of which are all defined in the MatrixWidgetPrivate namespace.

Constructor & Destructor Documentation

◆ MatrixWidget()

MatrixWidget ( QWidget *  parent = nullptr)

◆ ~MatrixWidget()

~MatrixWidget ( )
inlineoverride

Member Function Documentation

◆ cellsChanged

void cellsChanged ( )
signal

◆ getMatrix()

T getMatrix ( ) const
inline

◆ setDelegate()

void setDelegate ( MatrixTableDelegateBase delegate)

◆ setMatrix()

void setMatrix ( const T &  matrix)
inline