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
17 #ifndef vtkQtAnnotationView_h
18 #define vtkQtAnnotationView_h
19 
20 #include "vtkQtView.h"
21 #include "vtkViewsQtModule.h" // For export macro
22 #include <QObject> // Needed for the Q_OBJECT macro
23 
24 #include <QPointer> // Needed to hold the view
25 
26 class QItemSelection;
27 class QTableView;
28 
29 VTK_ABI_NAMESPACE_BEGIN
31 
32 class VTKVIEWSQT_EXPORT vtkQtAnnotationView : public vtkQtView
33 {
34  Q_OBJECT
35 
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
47  QWidget* GetWidget() override;
48 
52  void Update() override;
53 
54 protected:
57 
58 private Q_SLOTS:
59  void slotQtSelectionChanged(const QItemSelection&, const QItemSelection&);
60 
61 private: // NOLINT(readability-redundant-access-specifiers)
62  vtkMTimeType LastInputMTime;
63 
64  QPointer<QTableView> View;
66 
68  void operator=(const vtkQtAnnotationView&) = delete;
69 };
70 
71 VTK_ABI_NAMESPACE_END
72 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
Adapts annotations to a Qt item model.
A VTK view that displays the annotations on its annotation link.
~vtkQtAnnotationView() override
static vtkQtAnnotationView * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Update() override
Updates the view.
QWidget * GetWidget() override
Get the main container of this view (a QWidget).
Superclass for Qt widget-based views.
Definition: vtkQtView.h:27
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270