OGS
MeshItem.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "Base/TreeItem.h"
18
20
21namespace MeshLib {
22 class Mesh;
23}
24
29class MeshItem : public TreeItem
30{
31public:
37 MeshItem(const QList<QVariant>& data, TreeItem* parent,
38 const MeshLib::Mesh* mesh);
39 ~MeshItem() override;
40
42 MeshLib::Mesh const* getMesh() const { return _mesh_source->GetMesh(); }
45
46private:
48};
Definition of the TreeItem class.
VtkMappedMeshSource is a source class to transform OGS meshes into complete vtkUnstructuredGrids....
A TreeItem containing a mesh and the associated vtk object used in the Mesh Model.
Definition MeshItem.h:30
MeshItem(const QList< QVariant > &data, TreeItem *parent, const MeshLib::Mesh *mesh)
Definition MeshItem.cpp:19
~MeshItem() override
Definition MeshItem.cpp:27
MeshLib::Mesh const * getMesh() const
Returns the mesh.
Definition MeshItem.h:42
MeshLib::VtkMappedMeshSource * _mesh_source
Definition MeshItem.h:47
MeshLib::VtkMappedMeshSource * vtkSource() const
Returns the VTK object.
Definition MeshItem.h:44
const MeshLib::Mesh * GetMesh() const
Returns the mesh.
Objects nodes for the TreeModel.
Definition TreeItem.h:28
virtual QVariant data(int column) const
Definition TreeItem.cpp:94