Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::TFLineEdit Class Reference

widget for entering double values within certain bounds and optional range mapping More...

#include <tflineedit.h>

+ Inheritance diagram for inviwo::TFLineEdit:

Signals

void valueChanged (double value)
 

Public Member Functions

 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
 

Detailed Description

widget for entering double values within certain bounds and optional range mapping

Member Function Documentation

◆ 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
rangelower and upper bound used for input validation of doubles
incincrement 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
enableif true, values will be mapped to the given range while displayed in the line edit
rangevalue range used for mapping if enabled
incincrement 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: