Omnidome
Fulldome Mapping Software Toolkit
|
Mixin for a ranged value with min and maximum. More...
#include <Range.h>
Public Types | |
typedef VALUE | value_type |
Public Member Functions | |
Range (value_type _minimum=0.0, value_type _maximum=100.0) | |
qreal | ratio (value_type _v) const |
Return ratio of value v. More... | |
value_type | range () const |
Return range (difference between maximum and minimum) More... | |
value_type | minimum () const |
Return minimum value. More... | |
value_type | maximum () const |
Return maximum value. More... | |
void | setMinimum (value_type _minimum) |
Set new minimum value and value and emit rangeChanged event. More... | |
void | disableMinimum () |
Disable minimum by setting the value to infinite. More... | |
void | setMaximum (value_type _maximum) |
Set new maximum value and value and emit rangeChanged event. More... | |
void | disableMaximum () |
Disable maximum by setting maximum to infinite value. More... | |
void | setRange (value_type _minimum, value_type _maximum) |
Set range and validate. More... | |
void | disableRange () |
Disable range by setting minimum and maximum to infinite value. More... | |
bool | minimumUsed () const |
bool | maximumUsed () const |
Protected Member Functions | |
template<typename WIDGET > | |
void | apply (WIDGET *_widget) const |
Apply range to widget. More... | |
template<typename WIDGET , typename V > | |
void | apply (WIDGET *_widget, V _value) const |
Applay range to widget and set value. More... | |
virtual void | validate () |
Validate minimum and maximum. More... | |
virtual void | rangeChangedEvent () |
Handler to emit rangeChanged signal in derived widgets. More... | |
Private Attributes | |
value_type | minimum_ |
value_type | maximum_ |
Mixin for a ranged value with min and maximum.
typedef VALUE omni::ui::mixin::Range< VALUE >::value_type |
|
inline |
|
inlineprotected |
Apply range to widget.
|
inlineprotected |
Applay range to widget and set value.
|
inline |
Disable maximum by setting maximum to infinite value.
|
inline |
Disable minimum by setting the value to infinite.
|
inline |
Disable range by setting minimum and maximum to infinite value.
|
inline |
Return maximum value.
|
inline |
|
inline |
Return minimum value.
|
inline |
|
inline |
Return range (difference between maximum and minimum)
|
inlineprotectedvirtual |
Handler to emit rangeChanged signal in derived widgets.
Reimplemented in omni::ui::RangedFloat, omni::ui::Dial, and omni::ui::RangedInt.
|
inline |
Return ratio of value v.
|
inline |
Set new maximum value and value and emit rangeChanged event.
|
inline |
Set new minimum value and value and emit rangeChanged event.
|
inline |
Set range and validate.
|
inlineprotectedvirtual |
Validate minimum and maximum.
Reimplemented in omni::ui::mixin::RangedValue< DERIVED, VALUE >, omni::ui::mixin::RangedValue< Dial, double >, omni::ui::mixin::RangedValue< RangedFloat, double >, and omni::ui::mixin::RangedValue< RangedInt, int >.
|
private |
|
private |