VTK
dox/Views/Qt/vtkQtView.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkQtView.h
00005 
00006 =========================================================================*/
00007 /*-------------------------------------------------------------------------
00008   Copyright 2009 Sandia Corporation.
00009   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00010   the U.S. Government retains certain rights in this software.
00011 -------------------------------------------------------------------------*/
00022 #ifndef __vtkQtView_h
00023 #define __vtkQtView_h
00024 
00025 #include "vtkViewsQtModule.h" // For export macro
00026 #include "QVTKWin32Header.h"
00027 #include "vtkView.h"
00028 
00029 #include <QObject>
00030 
00031 class VTKVIEWSQT_EXPORT vtkQtView : public QObject, public vtkView
00032 {
00033 Q_OBJECT
00034 public:
00035 
00036   vtkTypeMacro(vtkQtView, vtkView);
00037   void PrintSelf(ostream& os, vtkIndent indent);
00038 
00042   virtual QWidget* GetWidget()=0;
00043 
00048   virtual void ProcessQtEvents();
00049 
00053   virtual void ProcessQtEventsNoUserInput();
00054 
00059   virtual bool SaveImage(const char* fileName);
00060 
00061 protected:
00062   vtkQtView();
00063   ~vtkQtView();
00064 
00065 private:
00066   vtkQtView(const vtkQtView&);  // Not implemented.
00067   void operator=(const vtkQtView&);  // Not implemented.
00068 
00069 };
00070 
00071 #endif