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