maliput_viz
|
A table model for a table of Maliput's RoadNetworkLoader's parameters.
#include <src/maliput_viz/plugins/maliput_backend_selection.hh>
Public Member Functions | |
ParameterTableModel (QObject *parent=nullptr) | |
Constructor. More... | |
std::map< std::string, std::string > | GetMapFromParameters () const |
Get the parameter list in a std map. More... | |
Q_INVOKABLE void | AddParameter (const QString &_parameterName, const QString &_parameterValue) |
Adds a parameter to the table. More... | |
Q_INVOKABLE void | DeleteParameter (const QString &_parameterName) |
Removes a parameter from the table. More... | |
Q_INVOKABLE void | ClearParameters () |
Removes all parameters from the table. More... | |
Q_INVOKABLE QString | GetData (int row, int role) const |
Get data from a row. More... | |
Static Public Attributes | |
static constexpr int | kParameterRole {101} |
static constexpr int | kValueRole {102} |
Protected Member Functions | |
Q_INVOKABLE int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
Documentation inherited. More... | |
Q_INVOKABLE int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
Documentation inherited. More... | |
Q_INVOKABLE QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
Documentation inherited. More... | |
Q_INVOKABLE QHash< int, QByteArray > | roleNames () const override |
Documentation inherited. More... | |
ParameterTableModel | ( | QObject * | parent = nullptr | ) |
Constructor.
parent | Parent object, |
void AddParameter | ( | const QString & | _parameterName, |
const QString & | _parameterValue | ||
) |
Adds a parameter to the table.
_parameterName | Parameter to add. |
_parameterValue | Value of the parameter. |
void ClearParameters | ( | ) |
Removes all parameters from the table.
|
overrideprotected |
Documentation inherited.
|
overrideprotected |
Documentation inherited.
void DeleteParameter | ( | const QString & | _parameterName | ) |
Removes a parameter from the table.
_parameterName | Parameter to remove. |
QString GetData | ( | int | row, |
int | role | ||
) | const |
Get data from a row.
std::map< std::string, std::string > GetMapFromParameters | ( | ) | const |
Get the parameter list in a std map.
|
overrideprotected |
Documentation inherited.
|
overrideprotected |
Documentation inherited.
|
staticconstexpr |
|
staticconstexpr |