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 -------------------------------------------------------------------------*/
23 #ifndef vtkQtView_h
24 #define vtkQtView_h
25 
26 #include "vtkViewsQtModule.h" // For export macro
27 #include "vtkView.h"
28 
29 #include <QObject> // Needed to hook into Qt
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 
45  virtual QWidget* GetWidget()=0;
46 
52  virtual void ProcessQtEvents();
53 
58  virtual void ProcessQtEventsNoUserInput();
59 
65  virtual bool SaveImage(const char* fileName);
66 
67 protected:
68  vtkQtView();
69  ~vtkQtView();
70 
71 private:
72  vtkQtView(const vtkQtView&) VTK_DELETE_FUNCTION;
73  void operator=(const vtkQtView&) VTK_DELETE_FUNCTION;
74 
75 };
76 
77 #endif
The superclass for all views.
Definition: vtkView.h:60
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
Superclass for Qt widget-based views.
Definition: vtkQtView.h:31