Inviwo  0.9.10.1
Inviwo documentation
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)
 
dvec2 getValidRange () const
 
void setValueMapping (bool enable, const dvec2 &range=dvec2(0.0, 1.0))
 
void setValue (double value, bool ambiguous)
 

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)

set the upper and lower bounds of values the line edit should accept

Parameters
rangelower and upper bound used for input validation of doubles

◆ 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) 
)

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

◆ 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 files: