OGS
FemConditionModel.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
8
14{
15 Q_OBJECT
16
17public:
18 explicit FemConditionModel(QObject* parent = nullptr);
19
21 const QModelIndex& /*parent*/ = QModelIndex()) const override
22 {
23 return 2;
24 }
25
26public slots:
28 void clearView();
29
32
35};
Base class for boundary conditions, initial conditions and source terms.
int columnCount(const QModelIndex &=QModelIndex()) const override
FemConditionModel(QObject *parent=nullptr)
void setFemCondition(DataHolderLib::FemCondition *cond)
Displays information on a boundary condition or source term.
void clearView()
Clears the tree.
void setProcessVariable(DataHolderLib::FemCondition *cond)
Displays information on a process variable.
QModelIndex parent(const QModelIndex &index) const override
Definition TreeModel.cpp:70
TreeModel(QObject *parent=nullptr)
Definition TreeModel.cpp:15