ParaView
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
pqContextView Class Reference

pqContextView is an abstract base class for all charting views based on the VTK context charting library. More...

#include <pqContextView.h>

Inheritance diagram for pqContextView:
Inheritance graph
[legend]
Collaboration diagram for pqContextView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~pqContextView ()
virtual QWidget * getWidget ()
 Return a widget associated with this view.
virtual vtkContextViewgetVTKContextView () const
 Returns the internal vtkContextView which provides the implementation for the chart rendering.
virtual vtkSMContextViewProxygetContextViewProxy () const
 Returns the context view proxy associated with this object.
virtual bool saveImage (int width, int height, const QString &filename)
 Save a screenshot for the render module.
virtual vtkImageDatacaptureImage (int magnification)
 Capture the view image into a new vtkImageData with the given magnification and returns it.
virtual vtkImageDatacaptureImage (const QSize &asize)
virtual bool supportsUndo () const
 This view supports undo so this method always returns true.
virtual void undo ()
 Called to undo interaction.
virtual void redo ()
 Called to redo interaction.
virtual bool canUndo () const
 Returns true if undo can be done.
virtual bool canRedo () const
 Returns true if redo can be done.
virtual bool supportsSelection () const
 Returns true if selection can be done.
virtual void resetDisplay ()
 Resets the zoom level to 100%.
virtual bool canDisplay (pqOutputPort *opPort) const
 Returns true if data on the given output port can be displayed by this view.

Protected Slots

virtual void initializeAfterObjectsCreated ()
virtual void initializeInteractors ()
 Sets up the interactors correctly.

Protected Member Functions

 pqContextView (const QString &type, const QString &group, const QString &name, vtkSMViewProxy *view, pqServer *server, QObject *parent=NULL)
 Constructor: type :- view type.
virtual QWidget * createWidget ()
 Creates a new instance of the QWidget subclass to be used to show this view.
virtual void initialize ()
 Overridden to set up some default signal-slot connections.
virtual void selectionChanged ()
 Listen for new selection events, and pass them back to ParaView.
virtual void setSelection (vtkSelection *)
 Set selection to the view.

Protected Attributes

commandCommand

Detailed Description

pqContextView is an abstract base class for all charting views based on the VTK context charting library.

Definition at line 45 of file pqContextView.h.


Constructor & Destructor Documentation

virtual pqContextView::~pqContextView ( ) [virtual]
pqContextView::pqContextView ( const QString &  type,
const QString &  group,
const QString &  name,
vtkSMViewProxy view,
pqServer server,
QObject *  parent = NULL 
) [protected]

Constructor: type :- view type.

group :- SManager registration group. name :- SManager registration name. view :- View proxy. server:- server on which the proxy is created. parent:- QObject parent.


Member Function Documentation

virtual QWidget* pqContextView::getWidget ( ) [virtual]

Return a widget associated with this view.

Implements pqView.

Reimplemented in pqComparativeContextView.

virtual vtkContextView* pqContextView::getVTKContextView ( ) const [virtual]

Returns the internal vtkContextView which provides the implementation for the chart rendering.

virtual vtkSMContextViewProxy* pqContextView::getContextViewProxy ( ) const [virtual]

Returns the context view proxy associated with this object.

virtual bool pqContextView::saveImage ( int  width,
int  height,
const QString &  filename 
) [virtual]

Save a screenshot for the render module.

If width or height ==0, the current window size is used.

Implements pqView.

virtual vtkImageData* pqContextView::captureImage ( int  magnification) [virtual]

Capture the view image into a new vtkImageData with the given magnification and returns it.

The caller is responsible for freeing the returned image.

Implements pqView.

virtual vtkImageData* pqContextView::captureImage ( const QSize &  asize) [inline, virtual]

Reimplemented from pqView.

Definition at line 69 of file pqContextView.h.

virtual bool pqContextView::supportsUndo ( ) const [inline, virtual]

This view supports undo so this method always returns true.

Reimplemented from pqView.

Definition at line 73 of file pqContextView.h.

virtual void pqContextView::undo ( ) [virtual]

Called to undo interaction.

Reimplemented from pqView.

virtual void pqContextView::redo ( ) [virtual]

Called to redo interaction.

Reimplemented from pqView.

virtual bool pqContextView::canUndo ( ) const [virtual]

Returns true if undo can be done.

Reimplemented from pqView.

virtual bool pqContextView::canRedo ( ) const [virtual]

Returns true if redo can be done.

Reimplemented from pqView.

virtual bool pqContextView::supportsSelection ( ) const [virtual]

Returns true if selection can be done.

Reimplemented in pqXYBarChartView.

virtual void pqContextView::resetDisplay ( ) [virtual]

Resets the zoom level to 100%.

Reimplemented from pqView.

virtual bool pqContextView::canDisplay ( pqOutputPort opPort) const [virtual]

Returns true if data on the given output port can be displayed by this view.

Reimplemented from pqView.

virtual void pqContextView::initializeAfterObjectsCreated ( ) [protected, virtual, slot]
virtual void pqContextView::initializeInteractors ( ) [protected, virtual, slot]

Sets up the interactors correctly.

virtual QWidget* pqContextView::createWidget ( ) [protected, virtual]

Creates a new instance of the QWidget subclass to be used to show this view.

Default implementation creates a QVTKWidget.

virtual void pqContextView::initialize ( ) [protected, virtual]

Overridden to set up some default signal-slot connections.

Reimplemented from pqView.

Reimplemented in pqComparativeContextView.

virtual void pqContextView::selectionChanged ( ) [protected, virtual]

Listen for new selection events, and pass them back to ParaView.

Reimplemented in pqPlotMatrixView.

virtual void pqContextView::setSelection ( vtkSelection ) [protected, virtual]

Set selection to the view.


Member Data Documentation

Definition at line 129 of file pqContextView.h.


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