OGS
MeshItem.cpp
Go to the documentation of this file.
1 
15 #include "MeshItem.h"
16 
18 
19 MeshItem::MeshItem(const QList<QVariant>& data, TreeItem* parent,
20  const MeshLib::Mesh* mesh)
21  : TreeItem(data, parent)
22 {
24  static_cast<MeshLib::VtkMappedMeshSource*>(_mesh_source)->SetMesh(mesh);
25 }
26 
28 {
29  _mesh_source->Delete();
30 }
Definition of the MeshItem class.
VtkMappedMeshSource is a source class to transform OGS meshes into complete vtkUnstructuredGrids....
MeshItem(const QList< QVariant > &data, TreeItem *parent, const MeshLib::Mesh *mesh)
Definition: MeshItem.cpp:19
~MeshItem() override
Definition: MeshItem.cpp:27
MeshLib::VtkMappedMeshSource * _mesh_source
Definition: MeshItem.h:47
static VtkMappedMeshSource * New()
Objects nodes for the TreeModel.
Definition: TreeItem.h:28