OGS
ElementTreeView.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#include <QTreeView>
7
8class vtkUnstructuredGridAlgorithm;
9
13class ElementTreeView : public QTreeView
14{
15 Q_OBJECT
16
17public:
19 explicit ElementTreeView(QWidget* parent = nullptr);
20
21public slots:
22 void updateView();
23
24protected slots:
26 void selectionChanged(const QItemSelection& selected,
27 const QItemSelection& deselected) override;
28
29signals:
30 void nodeSelected(vtkUnstructuredGridAlgorithm const*const, unsigned, bool);
32};
void nodeSelected(vtkUnstructuredGridAlgorithm const *const, unsigned, bool)
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) override
Is called when the selection of this view changes.
ElementTreeView(QWidget *parent=nullptr)
Constructor.
void removeSelectedMeshComponent()