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 "QVTKWin32Header.h"
36 #include "vtkQtView.h"
37 #include <QObject>
38 
39 #include <QPointer>
41 
42 class QItemSelection;
43 class QTableView;
44 
45 class QVTK_EXPORT vtkQtAnnotationView : public vtkQtView
46 {
47 Q_OBJECT
48 
49 public:
50  static vtkQtAnnotationView *New();
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
57  virtual QWidget* GetWidget();
58 
60  virtual void Update();
61 
62 protected:
65 
66 private slots:
67  void slotQtSelectionChanged(const QItemSelection&,const QItemSelection&);
68 
69 private:
70  unsigned long LastInputMTime;
71 
72  QPointer<QTableView> View;
74 
75  vtkQtAnnotationView(const vtkQtAnnotationView&); // Not implemented.
76  void operator=(const vtkQtAnnotationView&); // Not implemented.
77 
78 };
79 
80 #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:37
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:30