OGS
VtkVisPipelineView.h
Go to the documentation of this file.
1
15#pragma once
16
17// ** INCLUDES **
18#include <QTreeView>
19
20class QItemSelection;
21class QAbstractItemModel;
23class vtkProp3D;
24class vtkDataObject;
25
26enum class MeshElemType;
27
28namespace MeshLib {
29 class Mesh;
30 enum class UseIntensityAs;
31 enum class MeshElemType;
32}
33
37class VtkVisPipelineView : public QTreeView
38{
39 Q_OBJECT
40
41public:
43 explicit VtkVisPipelineView(QWidget* parent = nullptr);
44
46 void setModel(QAbstractItemModel* model) override;
47
48protected slots:
50 void selectionChanged(const QItemSelection& selected,
51 const QItemSelection& deselected) override;
52 void selectItem(vtkProp3D* actor);
53 void selectItem(const QModelIndex &index);
54
55private:
57 void contextMenuEvent(QContextMenuEvent* event) override;
58
59private slots:
61 void addColorTable();
62
65
69
72
75
78
80 void writeRaster();
81
82signals:
84 void requestRemovePipelineItem(QModelIndex);
87 void actorSelected(vtkProp3D*);
88 void dataObjectSelected(vtkDataObject*);
90};
An item in the VtkVisPipeline containing a graphic object to be visualized.
VtkVisPipelineView is a QTreeView and shows VtkVisPipelineItems and their relation to each other.
void setModel(QAbstractItemModel *model) override
Overridden to set model specific header properties.
VtkVisPipelineView(QWidget *parent=nullptr)
Constructor.
void requestRemovePipelineItem(QModelIndex)
void meshAdded(MeshLib::Mesh *)
void dataObjectSelected(vtkDataObject *)
void requestAddPipelineFilterItem(QModelIndex)
void exportSelectedPipelineItemAsVtk()
Exports the currently selected item as a VTK file.
void convertVTKToOGSMesh()
Calls the conversion method for making a vtk grid an ogs mesh.
void actorSelected(vtkProp3D *)
void selectItem(vtkProp3D *actor)
void addColorTable()
Adds a color lookup table to the current scalar array of the selected pipeline item.
void itemSelected(VtkVisPipelineItem *)
void contextMenuEvent(QContextMenuEvent *event) override
Creates a menu on right-clicking on an item.
void showImageToMeshConversionDialog()
Calls the dialog to.
void writeRaster()
Calls the conversion method for saving this as an *.asc-file.
void addPipelineFilterItem()
Sends a requestAddPipelineFilterItem() signal to add a filter.
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) override
Emits itemSelected() signals when an items was selected.
UseIntensityAs
Selection of possible interpretations for intensities.
Definition MeshEnums.h:83
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:27