Dialog used to ask the user for the resolution of the snapshot to save.
More...
#include <pqSaveSnapshotDialog.h>
Inherits QDialog.
Dialog used to ask the user for the resolution of the snapshot to save.
Definition at line 41 of file pqSaveSnapshotDialog.h.
◆ pqSaveSnapshotDialog()
pqSaveSnapshotDialog::pqSaveSnapshotDialog |
( |
QWidget * |
parent, |
|
|
Qt::WindowFlags |
f = 0 |
|
) |
| |
◆ ~pqSaveSnapshotDialog()
pqSaveSnapshotDialog::~pqSaveSnapshotDialog |
( |
| ) |
|
◆ 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: