VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQtAnnotationView.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00032 #ifndef __vtkQtAnnotationView_h 00033 #define __vtkQtAnnotationView_h 00034 00035 #include "vtkViewsQtModule.h" // For export macro 00036 #include "QVTKWin32Header.h" 00037 #include "vtkQtView.h" 00038 #include <QObject> 00039 00040 #include <QPointer> 00041 #include "vtkQtAnnotationLayersModelAdapter.h" 00042 00043 class QItemSelection; 00044 class QTableView; 00045 00046 class VTKVIEWSQT_EXPORT vtkQtAnnotationView : public vtkQtView 00047 { 00048 Q_OBJECT 00049 00050 public: 00051 static vtkQtAnnotationView *New(); 00052 vtkTypeMacro(vtkQtAnnotationView, vtkQtView); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00058 virtual QWidget* GetWidget(); 00059 00061 virtual void Update(); 00062 00063 protected: 00064 vtkQtAnnotationView(); 00065 ~vtkQtAnnotationView(); 00066 00067 private slots: 00068 void slotQtSelectionChanged(const QItemSelection&,const QItemSelection&); 00069 00070 private: 00071 unsigned long LastInputMTime; 00072 00073 QPointer<QTableView> View; 00074 vtkQtAnnotationLayersModelAdapter* Adapter; 00075 00076 vtkQtAnnotationView(const vtkQtAnnotationView&); // Not implemented. 00077 void operator=(const vtkQtAnnotationView&); // Not implemented. 00078 00079 }; 00080 00081 #endif