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

Dialog used to ask the user for the resolution of the snapshot to save. More...

#include <pqSaveSnapshotDialog.h>

Inherits QDialog.

Public Member Functions

 pqSaveSnapshotDialog (QWidget *parent, Qt::WindowFlags f=0)
 
 ~pqSaveSnapshotDialog ()
 
void setViewSize (const QSize &size)
 Set the default size for the snapshot. More...
 
QSize viewSize () const
 Returns the user selected size. More...
 
int quality () const
 Returns the quality [0, 100] choosen by the user. More...
 
void setEnableSaveAllViews (bool enable)
 Specifiy if the save all views option should be visible or not. More...
 
void setAllViewsSize (const QSize &size)
 Set the default all views size. More...
 
bool saveAllViews () const
 Returns if the user requested to save all views. More...
 
QString palette () const
 Returns the color palette chosen. More...
 
int getStereoMode () const
 Returns one of the stereo mode constants defined in vtkRenderWindow.h if user selected a stereo mode. More...
 

Protected Slots

void onWidthEdited ()
 Called when the user has edited width. More...
 
void onHeightEdited ()
 
void onLockAspectRatio (bool)
 
void updateSize ()
 

Detailed Description

Dialog used to ask the user for the resolution of the snapshot to save.

Definition at line 41 of file pqSaveSnapshotDialog.h.

Constructor & Destructor Documentation

§ pqSaveSnapshotDialog()

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

§ ~pqSaveSnapshotDialog()

pqSaveSnapshotDialog::~pqSaveSnapshotDialog ( )

Member Function Documentation

§ setViewSize()

void pqSaveSnapshotDialog::setViewSize ( const QSize &  size)

Set the default size for the snapshot.

§ viewSize()

QSize pqSaveSnapshotDialog::viewSize ( ) const

Returns the user selected size.

§ quality()

int pqSaveSnapshotDialog::quality ( ) const

Returns the quality [0, 100] choosen by the user.

§ setEnableSaveAllViews()

void pqSaveSnapshotDialog::setEnableSaveAllViews ( bool  enable)

Specifiy if the save all views option should be visible or not.

Default behaviour is to show it. It can be useful to disable the option for some custom applications where there is just a single view.

§ setAllViewsSize()

void pqSaveSnapshotDialog::setAllViewsSize ( const QSize &  size)

Set the default all views size.

viewSize is used when used when saveAllViews is false, while all views size is used when saveAllViews is true.

§ saveAllViews()

bool pqSaveSnapshotDialog::saveAllViews ( ) const

Returns if the user requested to save all views.

§ palette()

QString pqSaveSnapshotDialog::palette ( ) const

Returns the color palette chosen.

If none is chosen (i.e. "Current Palette" is selected, then an empty string is returned.

§ getStereoMode()

int pqSaveSnapshotDialog::getStereoMode ( ) const

Returns one of the stereo mode constants defined in vtkRenderWindow.h if user selected a stereo mode.

0 is no-stereo.

§ onWidthEdited

void pqSaveSnapshotDialog::onWidthEdited ( )
protectedslot

Called when the user has edited width.

If aspect ratio is locked, we will scale the height to maintain the aspect ration.

§ onHeightEdited

void pqSaveSnapshotDialog::onHeightEdited ( )
protectedslot

§ onLockAspectRatio

void pqSaveSnapshotDialog::onLockAspectRatio ( bool  )
protectedslot

§ updateSize

void pqSaveSnapshotDialog::updateSize ( )
protectedslot

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