Public Member Functions | Protected Member Functions | Properties | List of all members
pqDiscreteDoubleWidget Class Reference

Customize pqDoubleSliderWidget to use a custom set of allowed values. More...

#include <pqDiscreteDoubleWidget.h>

Inheritance diagram for pqDiscreteDoubleWidget:
Inheritance graph
[legend]
Collaboration diagram for pqDiscreteDoubleWidget:
Collaboration graph
[legend]

Public Member Functions

 pqDiscreteDoubleWidget (QWidget *parent=nullptr)
 
 ~pqDiscreteDoubleWidget () override
 
std::vector< doublevalues () 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...
 

Detailed Description

Customize pqDoubleSliderWidget to use a custom set of allowed values.

Definition at line 14 of file pqDiscreteDoubleWidget.h.

Constructor & Destructor Documentation

◆ pqDiscreteDoubleWidget()

pqDiscreteDoubleWidget::pqDiscreteDoubleWidget ( QWidget *  parent = nullptr)

◆ ~pqDiscreteDoubleWidget()

pqDiscreteDoubleWidget::~pqDiscreteDoubleWidget ( )
override

Member Function Documentation

◆ values()

std::vector<double> pqDiscreteDoubleWidget::values ( ) const

Gets vector of allowed values.

◆ setValues()

void pqDiscreteDoubleWidget::setValues ( std::vector< double values)

◆ valueToSliderPos()

int pqDiscreteDoubleWidget::valueToSliderPos ( double  val)
overrideprotectedvirtual

Reimplemented from pqDoubleSliderWidget.

◆ sliderPosToValue()

double pqDiscreteDoubleWidget::sliderPosToValue ( int  pos)
overrideprotectedvirtual

Reimplemented from pqDoubleSliderWidget.

Property Documentation

◆ value

double pqDiscreteDoubleWidget::value
readwrite

Definition at line 18 of file pqDiscreteDoubleWidget.h.


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