ark::fault::FaultTableModel
Defined in header “ark/faults/gui/fault_table_model.hh”.
This class visualizes a FaultReport as a table.
Typedefs
- using Columns =
Available columns.
Methods
-
FaultTableModel(QObject * parent)
Constructor. -
~FaultTableModel()
Destructor. -
int rowCount(const QModelIndex & parent)
-
int columnCount(const QModelIndex & parent)
-
QVariant data(const QModelIndex & index, int role)
-
QVariant headerData(int section, Qt::Orientation orientation, int role)
-
void set_data(std::shared_ptr< const FaultReport > report)
Called from the main plugin to set the data that needs to be visualized. -
void set_fault_config(const FaultStageConfig & new_config)
Called from main plugin to set the FaultStageConfig, which is pulled from the ConfigPackage. This is needed to pull details about how the faults are configured. -
void acknowledge_faults_before(std::chrono::steady_clock::time_point time)
Called to acknowledge the faults on the screen (any fault that was active before this timestamp is considered ack’d). The timestamp is relative to the time used by the fault report itself.