OGS
|
A model for the display of information from boundary conditions and source terms.
Definition at line 20 of file FemConditionModel.h.
#include <FemConditionModel.h>
Public Slots | |
void | clearView () |
Clears the tree. | |
void | setFemCondition (DataHolderLib::FemCondition *cond) |
Displays information on a boundary condition or source term. | |
void | setProcessVariable (DataHolderLib::FemCondition *cond) |
Displays information on a process variable. | |
Public Slots inherited from TreeModel | |
void | updateData () |
Public Member Functions | |
FemConditionModel (QObject *parent=nullptr) | |
int | columnCount (const QModelIndex &=QModelIndex()) const override |
Public Member Functions inherited from TreeModel | |
TreeModel (QObject *parent=nullptr) | |
~TreeModel () override | |
QVariant | data (const QModelIndex &index, int role) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
TreeItem * | getItem (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
QModelIndex | parent (const QModelIndex &index) const override |
bool | removeRows (int position, int count, const QModelIndex &parent) override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
TreeItem * | rootItem () const |
Additional Inherited Members | |
Protected Attributes inherited from TreeModel | |
TreeItem * | _rootItem |
|
explicit |
Constructor.
Definition at line 20 of file FemConditionModel.cpp.
References TreeModel::_rootItem.
|
slot |
Clears the tree.
Definition at line 107 of file FemConditionModel.cpp.
References TreeModel::_rootItem, TreeItem::childCount(), and TreeItem::removeChildren().
Referenced by setFemCondition(), and setProcessVariable().
|
inlineoverride |
Definition at line 27 of file FemConditionModel.h.
|
slot |
Displays information on a boundary condition or source term.
Definition at line 29 of file FemConditionModel.cpp.
References TreeModel::_rootItem, TreeItem::appendChild(), clearView(), DataHolderLib::BoundaryCondition::convertTypeToString(), DataHolderLib::SourceTerm::convertTypeToString(), DataHolderLib::FemCondition::getBaseObjName(), DataHolderLib::FemCondition::getBaseObjType(), DataHolderLib::FemCondition::getConditionClassStr(), DataHolderLib::FemCondition::getObjName(), DataHolderLib::FemCondition::getParamName(), and DataHolderLib::MESH.
|
slot |
Displays information on a process variable.
Definition at line 82 of file FemConditionModel.cpp.
References TreeModel::_rootItem, TreeItem::appendChild(), clearView(), DataHolderLib::ProcessVariable::components, DataHolderLib::FemCondition::getProcessVar(), DataHolderLib::ProcessVariable::name, and DataHolderLib::ProcessVariable::order.