VTK
dox/GUISupport/Qt/vtkQtAnnotationView.h
Go to the documentation of this file.
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 "QVTKWin32Header.h"
00036 #include "vtkQtView.h"
00037 #include <QObject>
00038 
00039 #include <QPointer>
00040 #include "vtkQtAnnotationLayersModelAdapter.h"
00041 
00042 class QItemSelection;
00043 class QTableView;
00044 
00045 class QVTK_EXPORT vtkQtAnnotationView : public vtkQtView
00046 {
00047 Q_OBJECT
00048 
00049 public:
00050   static vtkQtAnnotationView *New();
00051   vtkTypeMacro(vtkQtAnnotationView, vtkQtView);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053   
00057   virtual QWidget* GetWidget();
00058 
00060   virtual void Update();
00061 
00062 protected:
00063   vtkQtAnnotationView();
00064   ~vtkQtAnnotationView();
00065 
00066 private slots:
00067   void slotQtSelectionChanged(const QItemSelection&,const QItemSelection&);
00068 
00069 private:
00070   unsigned long LastInputMTime;
00071   
00072   QPointer<QTableView> View;
00073   vtkQtAnnotationLayersModelAdapter* Adapter;
00074   
00075   vtkQtAnnotationView(const vtkQtAnnotationView&);  // Not implemented.
00076   void operator=(const vtkQtAnnotationView&);  // Not implemented.
00077   
00078 };
00079 
00080 #endif