widget for entering double values within certain bounds and optional range mapping
More...
#include <tflineedit.h>
|
| TFLineEdit (QWidget *parent=nullptr) |
|
virtual QSize | sizeHint () const override |
|
void | setValidRange (const dvec2 &range, double inc=0.01) |
|
dvec2 | getValidRange () const |
|
void | setValueMapping (bool enable, const dvec2 &range=dvec2(0.0, 1.0), double inc=0.01) |
|
void | setValue (double value, bool ambiguous) |
|
double | value () const |
|
widget for entering double values within certain bounds and optional range mapping
◆ setValidRange()
void inviwo::TFLineEdit::setValidRange |
( |
const dvec2 & | range, |
|
|
double | inc = 0.01 ) |
set the upper and lower bounds of values the line edit should accept
- Parameters
-
range | lower and upper bound used for input validation of doubles |
inc | increment for the spinbox |
◆ setValue()
void inviwo::TFLineEdit::setValue |
( |
double | value, |
|
|
bool | ambiguous ) |
set the value of the line edit, if the value is ambiguous nothing will be shown. If value mapping is enabled, the given value will be mapped to the value range prior display.
◆ setValueMapping()
void inviwo::TFLineEdit::setValueMapping |
( |
bool | enable, |
|
|
const dvec2 & | range = dvec2(0.0, 1.0), |
|
|
double | inc = 0.01 ) |
enable mapping of normalized values to a different range for display purposes
- Parameters
-
enable | if true, values will be mapped to the given range while displayed in the line edit |
range | value range used for mapping if enabled |
inc | increment for the spinbox |
◆ valueChanged
void inviwo::TFLineEdit::valueChanged |
( |
double | value | ) |
|
|
signal |
signal when a new valid value has been entered. The given value is already mapped back to the original range if value mapping is enabled.
The documentation for this class was generated from the following file: