|
Omnidome
Fulldome Mapping Software Toolkit
|
Scales a set of sliders and sets a common unit suffix. More...
#include <Scale.h>

Data Structures | |
| struct | SliderInfo |
| Slider Info struct saves min, max and step values. More... | |
Public Types | |
| typedef SLIDER | slider_type |
| typedef SCALAR | scalar_type |
Public Member Functions | |
| Scale () | |
| virtual void | setScale (float _scale) |
| Set scale and apply to sliders. More... | |
| bool | rescaleValues () const |
| void | setRescaleValues (bool _rescaleValues) |
| float | scale () const |
| Return scale value. More... | |
| QString | suffix () const |
| Common unit of sliders. More... | |
| void | setSuffix (QString const &_suffix) |
| Set suffix (unit) of slider. More... | |
| void | registerScaledSlider (slider_type *_slider) |
| Register slider to be scaled. More... | |
| void | unregisterScaledSlider (slider_type *_slider) |
| Remove slider from list, keep scale. More... | |
Static Public Member Functions | |
| static int | getPrecision (float _scale) |
| Return precesion by scale. More... | |
Private Attributes | |
| QString | suffix_ |
| Common suffix is meter. More... | |
| int | precision_ = 2 |
| float | scale_ = 1.0 |
| bool | rescaleValues_ = true |
| std::map< slider_type *, SliderInfo > | sliders_ |
Scales a set of sliders and sets a common unit suffix.
| typedef SCALAR omni::ui::mixin::Scale< SLIDER, SCALAR >::scalar_type |
| typedef SLIDER omni::ui::mixin::Scale< SLIDER, SCALAR >::slider_type |
|
inline |
|
inlinestatic |
|
inline |
Register slider to be scaled.
|
inline |
|
inline |
Return scale value.
|
inline |
|
inlinevirtual |
Set scale and apply to sliders.
|
inline |
Set suffix (unit) of slider.
|
inline |
Common unit of sliders.
|
inline |
Remove slider from list, keep scale.
|
private |
|
private |
|
private |
|
private |
|
private |
Common suffix is meter.
1.8.6