ParaView
Public Slots | Public Member Functions | Protected Member Functions | List of all members
pqQVTKWidget Class Reference

pqQVTKWidget extends QVTKWidget to add awareness for view proxies. More...

#include <pqQVTKWidget.h>

Inherits QVTKWidget.

Public Slots

void paintMousePointer (int x, int y)
 

Public Member Functions

 pqQVTKWidget (QWidget *parent=NULL, Qt::WindowFlags f=0)
 
virtual ~pqQVTKWidget ()
 
void setViewProxy (vtkSMProxy *)
 Set the view proxy. More...
 
void setSession (vtkSMSession *)
 Set the session. More...
 
vtkTypeUInt32 getProxyId ()
 Retrun the Proxy ID if any, otherwise return 0. More...
 
void setSizePropertyName (const QString &pname)
 Set/Get the name of the property to use to update the size of the widget on the proxy. More...
 
const QString & sizePropertyName () const
 

Protected Member Functions

virtual void resizeEvent (QResizeEvent *event)
 overloaded resize handler More...
 
virtual void moveEvent (QMoveEvent *event)
 overloaded move handler More...
 
virtual bool paintCachedImage ()
 

Detailed Description

pqQVTKWidget extends QVTKWidget to add awareness for view proxies.

The advantage of doing that is that pqQVTKWidget can automatically update the "ViewSize" propertu on the view proxy whenever the widget's size/position changes.

This class also enables image-caching by default (image caching support is provided by the superclass).

Definition at line 54 of file pqQVTKWidget.h.

Constructor & Destructor Documentation

◆ pqQVTKWidget()

pqQVTKWidget::pqQVTKWidget ( QWidget *  parent = NULL,
Qt::WindowFlags  f = 0 
)

◆ ~pqQVTKWidget()

virtual pqQVTKWidget::~pqQVTKWidget ( )
virtual

Member Function Documentation

◆ setViewProxy()

void pqQVTKWidget::setViewProxy ( vtkSMProxy )

Set the view proxy.

◆ setSession()

void pqQVTKWidget::setSession ( vtkSMSession )

Set the session.

This is only used when ViewProxy is not set.

◆ getProxyId()

vtkTypeUInt32 pqQVTKWidget::getProxyId ( )

Retrun the Proxy ID if any, otherwise return 0.

◆ setSizePropertyName()

void pqQVTKWidget::setSizePropertyName ( const QString &  pname)
inline

Set/Get the name of the property to use to update the size of the widget on the proxy.

By default "ViewSize" is used.

Definition at line 83 of file pqQVTKWidget.h.

◆ sizePropertyName()

const QString& pqQVTKWidget::sizePropertyName ( ) const
inline

Definition at line 84 of file pqQVTKWidget.h.

◆ paintMousePointer

void pqQVTKWidget::paintMousePointer ( int  x,
int  y 
)
slot

◆ resizeEvent()

virtual void pqQVTKWidget::resizeEvent ( QResizeEvent *  event)
protectedvirtual

overloaded resize handler

◆ moveEvent()

virtual void pqQVTKWidget::moveEvent ( QMoveEvent *  event)
protectedvirtual

overloaded move handler

◆ paintCachedImage()

virtual bool pqQVTKWidget::paintCachedImage ( )
protectedvirtual

The documentation for this class was generated from the following file: