OGS
VtkVisPipelineView.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6// ** INCLUDES **
7#include <QTreeView>
8
9class QItemSelection;
10class QAbstractItemModel;
12class vtkProp3D;
13class vtkDataObject;
14
15enum class MeshElemType;
16
17namespace MeshLib {
18 class Mesh;
19 enum class UseIntensityAs;
20 enum class MeshElemType;
21}
22
26class VtkVisPipelineView : public QTreeView
27{
28 Q_OBJECT
29
30public:
32 explicit VtkVisPipelineView(QWidget* parent = nullptr);
33
35 void setModel(QAbstractItemModel* model) override;
36
37protected slots:
39 void selectionChanged(const QItemSelection& selected,
40 const QItemSelection& deselected) override;
41 void selectItem(vtkProp3D* actor);
42 void selectItem(const QModelIndex &index);
43
44private:
46 void contextMenuEvent(QContextMenuEvent* event) override;
47
48private slots:
50 void addColorTable();
51
54
58
61
64
67
69 void writeRaster();
70
71signals:
73 void requestRemovePipelineItem(QModelIndex);
76 void actorSelected(vtkProp3D*);
77 void dataObjectSelected(vtkDataObject*);
79};
An item in the VtkVisPipeline containing a graphic object to be visualized.
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:93
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:37