VTK
vtkQtAnnotationView.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkQtAnnotationView.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15/*-------------------------------------------------------------------------
16 Copyright 2008 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19-------------------------------------------------------------------------*/
30#ifndef vtkQtAnnotationView_h
31#define vtkQtAnnotationView_h
32
33#include "vtkViewsQtModule.h" // For export macro
34#include "vtkQtView.h"
35#include <QObject> // Needed for the Q_OBJECT macro
36
37#include <QPointer> // Needed to hold the view
38
40
41class QItemSelection;
42class QTableView;
43
44class VTKVIEWSQT_EXPORT vtkQtAnnotationView : public vtkQtView
45{
46Q_OBJECT
47
48public:
51 void PrintSelf(ostream& os, vtkIndent indent);
52
59 virtual QWidget* GetWidget();
60
64 virtual void Update();
65
66protected:
69
70private slots:
71 void slotQtSelectionChanged(const QItemSelection&,const QItemSelection&);
72
73private:
74 vtkMTimeType LastInputMTime;
75
76 QPointer<QTableView> View;
78
79 vtkQtAnnotationView(const vtkQtAnnotationView&) VTK_DELETE_FUNCTION;
80 void operator=(const vtkQtAnnotationView&) VTK_DELETE_FUNCTION;
81
82};
83
84#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Adapts annotations to a Qt item model.
A VTK view that displays the annotations on its annotation link.
virtual void Update()
Updates the view.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual QWidget * GetWidget()
Get the main container of this view (a QWidget).
static vtkQtAnnotationView * New()
Superclass for Qt widget-based views.
Definition: vtkQtView.h:32
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248