22 QList<QVariant> root_data;
24 root_data <<
"Parameter"
34 QList<QVariant> cond_data;
40 QList<QVariant> type_data;
52 type_data <<
"Type:" << QString::fromStdString(type_str);
56 QString
const obj_class_str =
60 QList<QVariant> obj_class_data;
61 obj_class_data <<
"Set on " + obj_class_str
66 QString
const obj_str =
70 QString
const name_str =
74 QList<QVariant> obj_data;
75 obj_data << obj_str << name_str;
89 QList<QVariant> pvar_data;
90 pvar_data <<
"Process variable:" << QString::fromStdString(var.
name);
94 QList<QVariant> order_data;
95 order_data <<
"Order:" << QString::number(var.
order);
99 QList<QVariant> comp_data;
100 comp_data <<
"Number of components:" << QString::number(var.
components);
Definition of the TreeItem class.
static std::string convertTypeToString(ConditionType type)
Converts a string specifying the type into an enum.
Base class for boundary conditions, initial conditions and source terms.
virtual std::string const getConditionClassStr() const =0
Returns the type of condition for displaying purposes.
std::string getBaseObjName() const
Returns the name of the base object (i.e. geometry or mesh)
BaseObjType getBaseObjType() const
Specifies if the condition is set a geometry or on a mesh.
std::string const getObjName() const
Returns the name of the geometric object.
ProcessVariable const & getProcessVar() const
Returns the numerical order of the process variable.
std::string const getParamName() const
Returns the name of the parameter associated with the condition.
Managing data associated with a source term.
static std::string convertTypeToString(ConditionType type)
Converts the type enum into a string.
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.
Objects nodes for the TreeModel.
virtual int childCount() const
void appendChild(TreeItem *item)
bool removeChildren(int position, int count)
A hierarchical model for a tree implemented as a double-linked list.