|
ParaView
|
Dialog used to ask the user for the resolution of the snapshot to save. More...
#include <pqSaveSnapshotDialog.h>
Public Member Functions | |
| pqSaveSnapshotDialog (QWidget *parent, Qt::WindowFlags f=0) | |
| ~pqSaveSnapshotDialog () | |
| void | setViewSize (const QSize &size) |
| Set the default size for the snapshot. | |
| QSize | viewSize () const |
| Returns the user selected size. | |
| int | quality () const |
| Returns the quality [0, 100] choosen by the user. | |
| void | setAllViewsSize (const QSize &size) |
| Set the default all views size. | |
| bool | saveAllViews () const |
| Returns if the user requested to save all views. | |
| QString | palette () const |
| Returns the color palette chosen. | |
| int | getStereoMode () const |
| Returns one of the stereo mode constants defined in vtkRenderWindow.h if user selected a stereo mode. | |
Protected Slots | |
| void | onWidthEdited () |
| Called when the user has edited width. | |
| void | onHeightEdited () |
| void | onLockAspectRatio (bool) |
| void | updateSize () |
Dialog used to ask the user for the resolution of the snapshot to save.
Definition at line 39 of file pqSaveSnapshotDialog.h.
| pqSaveSnapshotDialog::pqSaveSnapshotDialog | ( | QWidget * | parent, |
| Qt::WindowFlags | f = 0 |
||
| ) |
| pqSaveSnapshotDialog::~pqSaveSnapshotDialog | ( | ) |
| void pqSaveSnapshotDialog::setViewSize | ( | const QSize & | size | ) |
Set the default size for the snapshot.
| QSize pqSaveSnapshotDialog::viewSize | ( | ) | const |
Returns the user selected size.
| int pqSaveSnapshotDialog::quality | ( | ) | const |
Returns the quality [0, 100] choosen by the user.
| 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.
| bool pqSaveSnapshotDialog::saveAllViews | ( | ) | const |
Returns if the user requested to save all views.
| 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.
| 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.
| void pqSaveSnapshotDialog::onWidthEdited | ( | ) | [protected, slot] |
Called when the user has edited width.
If aspect ratio is locked, we will scale the height to maintain the aspect ration.
| void pqSaveSnapshotDialog::onHeightEdited | ( | ) | [protected, slot] |
| void pqSaveSnapshotDialog::onLockAspectRatio | ( | bool | ) | [protected, slot] |
| void pqSaveSnapshotDialog::updateSize | ( | ) | [protected, slot] |
1.7.5.1