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) override;
38 
45  virtual QWidget* GetWidget()=0;
46 
52  virtual void ProcessQtEvents();
53 
59 
65  virtual bool SaveImage(const char* fileName);
66 
67 protected:
69  ~vtkQtView() override;
70 
71 private:
72  vtkQtView(const vtkQtView&) = delete;
73  void operator=(const vtkQtView&) = delete;
74 
75 };
76 
77 #endif
vtkQtView::ProcessQtEvents
virtual void ProcessQtEvents()
Calls QApplication::processEvents().
vtkView
The superclass for all views.
Definition: vtkView.h:61
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkView.h
vtkQtView::ProcessQtEventsNoUserInput
virtual void ProcessQtEventsNoUserInput()
Calls QApplication::processEvents(QEventLoop::ExcludeUserInputEvents).
vtkQtView::~vtkQtView
~vtkQtView() override
vtkQtView
Superclass for Qt widget-based views.
Definition: vtkQtView.h:32
vtkQtView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkQtView::SaveImage
virtual bool SaveImage(const char *fileName)
Save an image.
vtkQtView::vtkQtView
vtkQtView()
vtkQtView::GetWidget
virtual QWidget * GetWidget()=0
Get the main container of this view (a QWidget).