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 -------------------------------------------------------------------------*/
32 #ifndef vtkQtAnnotationView_h
33 #define vtkQtAnnotationView_h
34 
35 #include "vtkViewsQtModule.h" // For export macro
36 #include "QVTKWin32Header.h"
37 #include "vtkQtView.h"
38 #include <QObject>
39 
40 #include <QPointer>
42 
43 class QItemSelection;
44 class QTableView;
45 
46 class VTKVIEWSQT_EXPORT vtkQtAnnotationView : public vtkQtView
47 {
48 Q_OBJECT
49 
50 public:
51  static vtkQtAnnotationView *New();
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
58  virtual QWidget* GetWidget();
59 
61  virtual void Update();
62 
63 protected:
66 
67 private slots:
68  void slotQtSelectionChanged(const QItemSelection&,const QItemSelection&);
69 
70 private:
71  unsigned long LastInputMTime;
72 
73  QPointer<QTableView> View;
75 
76  vtkQtAnnotationView(const vtkQtAnnotationView&); // Not implemented.
77  void operator=(const vtkQtAnnotationView&); // Not implemented.
78 
79 };
80 
81 #endif
static vtkView * New()
Adapts annotations to a Qt item model.
virtual void Update()
virtual QWidget * GetWidget()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
A VTK view that displays the annotations on its annotation link.
Superclass for Qt widget-based views.
Definition: vtkQtView.h:31