VTK
vtkQtView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtView.h
5 
6 =========================================================================*/
7 /*-------------------------------------------------------------------------
8  Copyright 2009 Sandia Corporation.
9  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
10  the U.S. Government retains certain rights in this software.
11 -------------------------------------------------------------------------*/
22 #ifndef vtkQtView_h
23 #define vtkQtView_h
24 
25 #include "vtkViewsQtModule.h" // For export macro
26 #include "QVTKWin32Header.h"
27 #include "vtkView.h"
28 
29 #include <QObject>
30 
31 class VTKVIEWSQT_EXPORT vtkQtView : public QObject, public vtkView
32 {
33 Q_OBJECT
34 public:
35 
36  vtkTypeMacro(vtkQtView, vtkView);
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
42  virtual QWidget* GetWidget()=0;
43 
48  virtual void ProcessQtEvents();
49 
53  virtual void ProcessQtEventsNoUserInput();
54 
59  virtual bool SaveImage(const char* fileName);
60 
61 protected:
62  vtkQtView();
63  ~vtkQtView();
64 
65 private:
66  vtkQtView(const vtkQtView&); // Not implemented.
67  void operator=(const vtkQtView&); // Not implemented.
68 
69 };
70 
71 #endif
The superclass for all views.
Definition: vtkView.h:62
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for Qt widget-based views.
Definition: vtkQtView.h:31