Signals | Public Member Functions | Protected Slots | Protected Attributes | List of all members
pqRescaleScalarRangeToCustomDialog Class Reference

pqRescaleScalarRangeToCustomDialog provides a dialog to be able to rescale the active lookup table's range to a custom range. More...

#include <pqRescaleScalarRangeToCustomDialog.h>

Inherits QDialog.

Signals

void apply ()
 Fired when the user wants to apply his changes. More...
 

Public Member Functions

 pqRescaleScalarRangeToCustomDialog (QWidget *parent=nullptr)
 
 ~pqRescaleScalarRangeToCustomDialog () override
 
double minimum () const
 Get the minimum of the color map range. More...
 
double maximum () const
 Get the maximum of the color map range. More...
 
void showOpacityControls (bool show)
 Show or hide the opacity controls. More...
 
double opacityMinimum () const
 Get the minimum of the opacity map range. More...
 
double opacityMaximum () const
 Get the maximum of the opacity map range. More...
 
void setRange (double min, double max)
 Initialize the range for the color map. More...
 
void setOpacityRange (double min, double max)
 Initialize the range for a separate opacity map, if the option is available. More...
 
void setLock (bool lock)
 Initialize AutomaticRescaling checkbox value. More...
 
bool doLock () const
 Get lock value from AutomaticRescaling checkbox. More...
 

Protected Slots

void validate ()
 Check that minimum scalar value < maximum scalar value. More...
 
void rescale ()
 Emit apply and close the dialog. More...
 

Protected Attributes

std::unique_ptr< pqRescaleScalarRangeToCustomDialogForm > Form
 

Detailed Description

pqRescaleScalarRangeToCustomDialog provides a dialog to be able to rescale the active lookup table's range to a custom range.

Definition at line 19 of file pqRescaleScalarRangeToCustomDialog.h.

Constructor & Destructor Documentation

◆ pqRescaleScalarRangeToCustomDialog()

pqRescaleScalarRangeToCustomDialog::pqRescaleScalarRangeToCustomDialog ( QWidget *  parent = nullptr)

◆ ~pqRescaleScalarRangeToCustomDialog()

pqRescaleScalarRangeToCustomDialog::~pqRescaleScalarRangeToCustomDialog ( )
override

Member Function Documentation

◆ minimum()

double pqRescaleScalarRangeToCustomDialog::minimum ( ) const

Get the minimum of the color map range.

◆ maximum()

double pqRescaleScalarRangeToCustomDialog::maximum ( ) const

Get the maximum of the color map range.

◆ showOpacityControls()

void pqRescaleScalarRangeToCustomDialog::showOpacityControls ( bool  show)

Show or hide the opacity controls.

◆ opacityMinimum()

double pqRescaleScalarRangeToCustomDialog::opacityMinimum ( ) const

Get the minimum of the opacity map range.

◆ opacityMaximum()

double pqRescaleScalarRangeToCustomDialog::opacityMaximum ( ) const

Get the maximum of the opacity map range.

◆ setRange()

void pqRescaleScalarRangeToCustomDialog::setRange ( double  min,
double  max 
)

Initialize the range for the color map.

◆ setOpacityRange()

void pqRescaleScalarRangeToCustomDialog::setOpacityRange ( double  min,
double  max 
)

Initialize the range for a separate opacity map, if the option is available.

◆ setLock()

void pqRescaleScalarRangeToCustomDialog::setLock ( bool  lock)

Initialize AutomaticRescaling checkbox value.

◆ doLock()

bool pqRescaleScalarRangeToCustomDialog::doLock ( ) const

Get lock value from AutomaticRescaling checkbox.

◆ apply

void pqRescaleScalarRangeToCustomDialog::apply ( )
signal

Fired when the user wants to apply his changes.

◆ validate

void pqRescaleScalarRangeToCustomDialog::validate ( )
protectedslot

Check that minimum scalar value < maximum scalar value.

Deactivate apply and rescale button if that's not the case.

◆ rescale

void pqRescaleScalarRangeToCustomDialog::rescale ( )
protectedslot

Emit apply and close the dialog.

Member Data Documentation

◆ Form

std::unique_ptr<pqRescaleScalarRangeToCustomDialogForm> pqRescaleScalarRangeToCustomDialog::Form
protected

Definition at line 91 of file pqRescaleScalarRangeToCustomDialog.h.


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