Customize pqDoubleSliderWidget to use a custom set of allowed values. More...
#include <pqDiscreteDoubleWidget.h>


Public Member Functions | |
| pqDiscreteDoubleWidget (QWidget *parent=nullptr) | |
| ~pqDiscreteDoubleWidget () override | |
| std::vector< double > | values () const |
| Gets vector of allowed values. More... | |
| void | setValues (std::vector< double > values) |
Public Member Functions inherited from pqDoubleSliderWidget | |
| pqDoubleSliderWidget (QWidget *parent=nullptr) | |
| ~pqDoubleSliderWidget () override | |
| double | value () const |
| get the value More... | |
| pqDoubleLineEdit::RealNumberNotation | notation () const |
| Return the notation used to display the number. More... | |
| int | precision () const |
| Return the precision used to display the number. More... | |
| bool | useGlobalPrecisionAndNotation () const |
useGlobalPrecisionAndNotation indicates if the pqDoubleLineEdit used by this widget should use global precision and notation values instead of the parameters specified on this instance. More... | |
Protected Member Functions | |
| int | valueToSliderPos (double val) override |
| double | sliderPosToValue (int pos) override |
Protected Member Functions inherited from pqDoubleSliderWidget | |
| void | setValidator (QDoubleValidator *validator) |
| const QDoubleValidator * | validator () const |
| void | setSliderRange (int min, int max) |
| void | updateSlider () |
Properties | |
| double | value |
Properties inherited from pqDoubleSliderWidget | |
| double | value |
| pqDoubleLineEdit::RealNumberNotation | notation |
| int | precision |
| bool | useGlobalPrecisionAndNotation |
Additional Inherited Members | |
Public Slots inherited from pqDoubleSliderWidget | |
| void | setValue (double val) |
| set the value More... | |
| void | setNotation (pqDoubleLineEdit::RealNumberNotation _notation) |
| Set the notation used to display the number. More... | |
| void | setPrecision (int precision) |
| Set the precision used to display the number. More... | |
| void | setUseGlobalPrecisionAndNotation (bool value) |
| Set whether to use global precision and notation values. More... | |
Signals inherited from pqDoubleSliderWidget | |
| void | valueChanged (double) |
| signal the value changed More... | |
| void | valueEdited (double) |
| signal the value was edited this means the user is done changing text or the user is done moving the slider. More... | |
Customize pqDoubleSliderWidget to use a custom set of allowed values.
Definition at line 14 of file pqDiscreteDoubleWidget.h.
| pqDiscreteDoubleWidget::pqDiscreteDoubleWidget | ( | QWidget * | parent = nullptr | ) |
|
override |
| std::vector<double> pqDiscreteDoubleWidget::values | ( | ) | const |
Gets vector of allowed values.
| void pqDiscreteDoubleWidget::setValues | ( | std::vector< double > | values | ) |
Reimplemented from pqDoubleSliderWidget.
Reimplemented from pqDoubleSliderWidget.
|
readwrite |
Definition at line 18 of file pqDiscreteDoubleWidget.h.
1.8.13 on Tue Dec 9 2025