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 "vtkView.h"
27 
28 #include <QObject> // Needed to hook into Qt
29 
30 class VTKVIEWSQT_EXPORT vtkQtView : public QObject, public vtkView
31 {
32 Q_OBJECT
33 public:
34 
35  vtkTypeMacro(vtkQtView, vtkView);
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
41  virtual QWidget* GetWidget()=0;
42 
47  virtual void ProcessQtEvents();
48 
52  virtual void ProcessQtEventsNoUserInput();
53 
58  virtual bool SaveImage(const char* fileName);
59 
60 protected:
61  vtkQtView();
62  ~vtkQtView();
63 
64 private:
65  vtkQtView(const vtkQtView&); // Not implemented.
66  void operator=(const vtkQtView&); // Not implemented.
67 
68 };
69 
70 #endif
#define VTKVIEWSQT_EXPORT
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:30