VTK  9.3.0
vtkQtAnnotationView.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
14#ifndef vtkQtAnnotationView_h
15#define vtkQtAnnotationView_h
16
17#include "vtkQtView.h"
18#include "vtkViewsQtModule.h" // For export macro
19#include <QObject> // Needed for the Q_OBJECT macro
20
21#include <QPointer> // Needed to hold the view
22
23class QItemSelection;
24class QTableView;
25
26VTK_ABI_NAMESPACE_BEGIN
28
29class VTKVIEWSQT_EXPORT vtkQtAnnotationView : public vtkQtView
30{
31 Q_OBJECT
32
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
44 QWidget* GetWidget() override;
45
49 void Update() override;
50
51protected:
54
55private Q_SLOTS:
56 void slotQtSelectionChanged(const QItemSelection&, const QItemSelection&);
57
58private: // NOLINT(readability-redundant-access-specifiers)
59 vtkMTimeType LastInputMTime;
60
61 QPointer<QTableView> View;
63
65 void operator=(const vtkQtAnnotationView&) = delete;
66};
67
68VTK_ABI_NAMESPACE_END
69#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Adapts annotations to a Qt item model.
A VTK view that displays the annotations on its annotation link.
~vtkQtAnnotationView() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
QWidget * GetWidget() override
Get the main container of this view (a QWidget).
void Update() override
Updates the view.
static vtkQtAnnotationView * New()
Superclass for Qt widget-based views.
Definition vtkQtView.h:27
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270