OGS
CondItem Class Reference

Detailed Description

A TreeItem containing a boundary condition or source term.

See also
TreeItem

Definition at line 25 of file CondItem.h.

#include <CondItem.h>

Inheritance diagram for CondItem:
[legend]
Collaboration diagram for CondItem:
[legend]

Public Member Functions

 CondItem (const QList< QVariant > &data, TreeItem *parent, DataHolderLib::FemCondition *cond)
 Constructor.
 
DataHolderLib::FemConditiongetCondition () const
 Returns the FEM Condition associated with the item.
 
QString const getName () const
 
- Public Member Functions inherited from TreeItem
 TreeItem (QList< QVariant > data, TreeItem *parent)
 
virtual ~TreeItem ()
 
void appendChild (TreeItem *item)
 
TreeItemchild (int row) const
 
virtual int childCount () const
 
virtual int columnCount () const
 
virtual QVariant data (int column) const
 
virtual bool setData (int column, const QVariant &value)
 
int row () const
 
TreeItemparentItem () const
 
bool removeChildren (int position, int count)
 

Private Attributes

DataHolderLib::FemCondition_cond
 

Constructor & Destructor Documentation

◆ CondItem()

CondItem::CondItem ( const QList< QVariant > & data,
TreeItem * parent,
DataHolderLib::FemCondition * cond )
inline

Constructor.

Definition at line 29 of file CondItem.h.

31 : TreeItem(data, parent), _cond(cond)
32 {
33 }
DataHolderLib::FemCondition * _cond
Definition CondItem.h:41
TreeItem(QList< QVariant > data, TreeItem *parent)
Definition TreeItem.cpp:23
virtual QVariant data(int column) const
Definition TreeItem.cpp:94

Member Function Documentation

◆ getCondition()

DataHolderLib::FemCondition * CondItem::getCondition ( ) const
inline

Returns the FEM Condition associated with the item.

Definition at line 36 of file CondItem.h.

36{ return _cond; }

References _cond.

Referenced by ProcessModel::removeCondition(), ProcessView::removeCondition(), and ProcessView::selectionChanged().

◆ getName()

QString const CondItem::getName ( ) const
inline

Definition at line 38 of file CondItem.h.

38{ return data(0).toString(); }

References TreeItem::data().

Referenced by ProcessView::removeCondition(), and ProcessModel::removeProcessVariable().

Member Data Documentation

◆ _cond

DataHolderLib::FemCondition* CondItem::_cond
private

Definition at line 41 of file CondItem.h.

Referenced by getCondition().


The documentation for this class was generated from the following file: