VTK  9.4.20241123
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
26class QItemSelection;
27class QTableView;
28
29VTK_ABI_NAMESPACE_BEGIN
31
32class VTKVIEWSQT_EXPORT vtkQtAnnotationView : public vtkQtView
33{
34 Q_OBJECT
35
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
47 QWidget* GetWidget() override;
48
52 void Update() override;
53
54protected:
57
58private Q_SLOTS:
59 void slotQtSelectionChanged(const QItemSelection&, const QItemSelection&);
60
61private: // NOLINT(readability-redundant-access-specifiers)
62 vtkMTimeType LastInputMTime;
63
64 QPointer<QTableView> View;
66
68 void operator=(const vtkQtAnnotationView&) = delete;
69};
70
71VTK_ABI_NAMESPACE_END
72#endif
a simple class to control print indentation
Definition vtkIndent.h:108
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