10 /// a simple view that shows a QLabel with the display's name in the view
11 class MyView : public pqView
15 /// constructor takes a bunch of init stuff and must have this signature to
17 MyView(const QString& viewtypemodule,
20 vtkSMViewProxy* viewmodule,
25 /// don't support save images
26 bool saveImage(int, int, const QString& ) { return false; }
27 vtkImageData* captureImage(int) { return NULL; }
28 vtkImageData* captureImage(const QSize&) { return NULL; }
30 /// return the QWidget to give to ParaView's view manager
33 /// returns whether this view can display the given source
34 bool canDisplay(pqOutputPort* opPort) const;
36 /// set the background color of this view
37 void setBackground(const QColor& col);
38 QColor background() const;
41 /// helper slots to create labels
42 void onRepresentationAdded(pqRepresentation*);
43 void onRepresentationRemoved(pqRepresentation*);
48 QMap<pqRepresentation*, QLabel*> Labels;