VTK
|
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 "QVTKWin32Header.h" 00026 #include "vtkView.h" 00027 00028 #include <QObject> 00029 00030 class QVTK_EXPORT vtkQtView : public QObject, public vtkView 00031 { 00032 Q_OBJECT 00033 public: 00034 00035 vtkTypeMacro(vtkQtView, vtkView); 00036 void PrintSelf(ostream& os, vtkIndent indent); 00037 00041 virtual QWidget* GetWidget()=0; 00042 00047 virtual void ProcessQtEvents(); 00048 00052 virtual void ProcessQtEventsNoUserInput(); 00053 00058 virtual bool SaveImage(const char* fileName); 00059 00060 protected: 00061 vtkQtView(); 00062 ~vtkQtView(); 00063 00064 private: 00065 vtkQtView(const vtkQtView&); // Not implemented. 00066 void operator=(const vtkQtView&); // Not implemented. 00067 00068 }; 00069 00070 #endif