Version: 8.3.0
MyView Class Reference

a simple view that shows a QLabel with the display's name in the view

#include <MyView.h>

Inheritance diagram for MyView:
Inheritance graph

Public Member Functions

 MyView (const QString &viewtypemodule, const QString &group, const QString &name, vtkSMViewProxy *viewmodule, pqServer *server, QObject *p)
 constructor takes a bunch of init stuff and must have this signature to satisfy pqView More...
 
 ~MyView ()
 
bool saveImage (int, int, const QString &)
 don't support save images More...
 
vtkImageData * captureImage (int)
 
vtkImageData * captureImage (const QSize &)
 
QWidget * getWidget ()
 return the QWidget to give to ParaView's view manager More...
 
bool canDisplay (pqOutputPort *opPort) const
 returns whether this view can display the given source More...
 
void setBackground (const QColor &col)
 set the background color of this view More...
 
QColor background () const
 

Protected Slots

void onRepresentationAdded (pqRepresentation *)
 helper slots to create labels More...
 
void onRepresentationRemoved (pqRepresentation *)
 

Protected Attributes

QWidget * MyWidget
 
QMap< pqRepresentation
*, QLabel * > 
Labels
 

Constructor & Destructor Documentation

MyView::MyView ( const QString &  viewtypemodule,
const QString &  group,
const QString &  name,
vtkSMViewProxy *  viewmodule,
pqServer *  server,
QObject p 
)
MyView::~MyView ( )

References MyWidget.

Member Function Documentation

bool MyView::saveImage ( int  ,
int  ,
const QString &   
)
vtkImageData* MyView::captureImage ( int  )
vtkImageData* MyView::captureImage ( const QSize &  )
QWidget * MyView::getWidget ( )

References MyWidget.

bool MyView::canDisplay ( pqOutputPort *  opPort) const
void MyView::setBackground ( const QColor &  col)

References MyWidget.

QColor MyView::background ( ) const

References MyWidget.

void MyView::onRepresentationAdded ( pqRepresentation *  d)
protectedslot

References Labels, and MyWidget.

void MyView::onRepresentationRemoved ( pqRepresentation *  d)
protectedslot

References Labels, and MyWidget.

Field Documentation

QWidget* MyView::MyWidget
protected
QMap<pqRepresentation*, QLabel*> MyView::Labels
protected