22class CondObjectListItem;
23class vtkPolyDataAlgorithm;
41 QObject*
parent =
nullptr);
53 std::vector<std::unique_ptr<DataHolderLib::BoundaryCondition>>
const&
58 std::vector<std::unique_ptr<DataHolderLib::SourceTerm>>
const&
88 QString
const& param_name);
Definition of the TreeModel class.
Base class for boundary conditions, initial conditions and source terms.
A model implementing a tree structure for process-relevant information such as process types,...
void removeProcessVariable(QString const &name)
Removes a process variable incl all associated conditions from the model.
int columnCount(const QModelIndex &parent=QModelIndex()) const override
void updateModel()
Updates the model based on the ProjectData-object.
ProcessVarItem * addProcessVar(QString const &name)
Adds a process to the model.
void addBoundaryConditions(std::vector< std::unique_ptr< DataHolderLib::BoundaryCondition > > const &conditions)
Adds vector of Boundary Conditions to the model.
void clearModel()
Removes the complete content from the model.
void addCondition(DataHolderLib::FemCondition *condition)
Adds a single FEM Conditions to the model.
ProcessVarItem * getProcessVarItem(QString const &process_var_name) const
ProcessModel(DataHolderLib::Project &project, QObject *parent=nullptr)
DataHolderLib::Project & _project
void addConditionItem(DataHolderLib::FemCondition *cond, ProcessVarItem *parent)
Adds a new FEM condition to the condition tree model.
void removeCondition(QString const &process_var, QString const ¶m)
Removes FEMConditions from the the model.
void addSourceTerms(std::vector< std::unique_ptr< DataHolderLib::SourceTerm > > const &conditions)
Adds vector of Source Terms to the model.
A TreeItem representing process variable information.
A hierarchical model for a tree implemented as a double-linked list.
QModelIndex parent(const QModelIndex &index) const override