OGS
|
A TreeItem containing a mesh and the associated vtk object used in the Mesh Model.
Definition at line 29 of file MeshItem.h.
#include <MeshItem.h>
Public Member Functions | |
MeshItem (const QList< QVariant > &data, TreeItem *parent, const MeshLib::Mesh *mesh) | |
~MeshItem () override | |
MeshLib::Mesh const * | getMesh () const |
Returns the mesh. | |
MeshLib::VtkMappedMeshSource * | vtkSource () const |
Returns the VTK object. | |
Public Member Functions inherited from TreeItem | |
TreeItem (QList< QVariant > data, TreeItem *parent) | |
virtual | ~TreeItem () |
void | appendChild (TreeItem *item) |
TreeItem * | child (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 |
TreeItem * | parentItem () const |
bool | removeChildren (int position, int count) |
Private Attributes | |
MeshLib::VtkMappedMeshSource * | _mesh_source |
MeshItem::MeshItem | ( | const QList< QVariant > & | data, |
TreeItem * | parent, | ||
const MeshLib::Mesh * | mesh ) |
Constructor, automatically generates VTK object of the given mesh.
data | The data associated with each column |
parent | The parent item in the tree |
mesh | The mesh associated with this item |
Definition at line 19 of file MeshItem.cpp.
References _mesh_source, and MeshLib::VtkMappedMeshSource::New().
|
override |
Definition at line 27 of file MeshItem.cpp.
References _mesh_source.
|
inline |
Returns the mesh.
Definition at line 42 of file MeshItem.h.
References _mesh_source, and MeshLib::VtkMappedMeshSource::GetMesh().
Referenced by MeshView::contextMenuEvent(), and MeshModel::updateMesh().
|
inline |
Returns the VTK object.
Definition at line 44 of file MeshItem.h.
References _mesh_source.
Referenced by VtkVisPipeline::addPipelineItem(), MeshView::checkMeshQuality(), MeshView::selectionChanged(), and MeshModel::vtkSource().
|
private |
Definition at line 47 of file MeshItem.h.
Referenced by MeshItem(), ~MeshItem(), getMesh(), and vtkSource().