20class vtkUnstructuredGridAlgorithm;
45 void setElement(vtkUnstructuredGridAlgorithm
const*
const grid,
const unsigned elem_index);
Definition of the TreeModel class.
A model for the display of information concerning element information implemented as a TreeModel.
void setElement(vtkUnstructuredGridAlgorithm const *const grid, const unsigned elem_index)
Displays information of the element with the given index from the given grid.
~ElementTreeModel() override
vtkUnstructuredGridAlgorithm const * getSource() const
vtkUnstructuredGridAlgorithm const * _mesh_source
void clearView()
Clears the tree.
ElementTreeModel(QObject *parent=nullptr)
void setMesh(MeshLib::Mesh const &mesh)
Displays information of the given mesh.
A hierarchical model for a tree implemented as a double-linked list.
QModelIndex parent(const QModelIndex &index) const override