Omnidome
Fulldome Mapping Software Toolkit
|
Parameter widget for channel correction. More...
#include <ChannelCorrectionParameters.h>
Public Slots | |
void | reset () |
Reset color correction for channel. More... | |
![]() | |
void | clear () |
Removes all parameter widgets. More... | |
virtual void | updateParameters () |
double | getParamAsFloat (QString const &) const |
Utility method for retrieving the value from a slider with id. More... | |
void | setParamAsFloat (QString const &_str, double _value) |
Set slider value from given value. More... | |
int | getParamAsInt (QString const &) const |
Utility method for retrieving the value from a slider with id. More... | |
void | setParamAsInt (QString const &_str, int _value) |
Set slider value from given value. More... | |
bool | getParamAsBool (QString const &) const |
Utility method for retrieving the value from checkbox with id. More... | |
QWidget * | getWidget (QString const &) |
Get parameter widget from parameter map with Id. More... | |
void | setParametersVisible (bool) |
Show / hide parameter widgets. More... | |
bool | focusNext (bool _circular=false) |
Put focus on next element. More... | |
bool | focusPrev (bool _circular=false) |
Put focus on prev element. More... | |
void | focus (int _index) |
Focus item in layout with index. More... | |
void | focusFirst () |
Set focus on first widget in parameter list. More... | |
void | focusLast () |
Set focus on last widget in parameter list. More... | |
virtual void | setScale (float) |
Set slider ranges. More... | |
virtual void | setUnit (QString const &) |
Set slider ranges. More... | |
Signals | |
void | dataModelChanged () |
Is emitted when channel correction has changed. More... | |
![]() | |
void | parametersUpdated () |
Public Member Functions | |
ChannelCorrectionParameters (QWidget *=nullptr) | |
~ChannelCorrectionParameters () | |
Channel | channel () const |
Return channel. More... | |
void | setChannel (Channel _channel) |
Set selected channel. More... | |
![]() | |
ParameterWidget (QWidget *_parent=nullptr) | |
Default constructor. More... | |
virtual | ~ParameterWidget () |
Default Constructor. More... | |
RangedFloat * | addWidget (QString const &, float, float, float) |
Adds a widget with a name, a value and min-max range. More... | |
RangedInt * | addIntegerWidget (QString const &, int, int, int) |
Adds a integer widget with a name, a value and min-max range. More... | |
RangedFloat * | addAngleWidget (QString const &, float, float, float) |
Adds an angle widget with a name, a value and min-max range. More... | |
RangedFloat * | addOffsetWidget (QString const &, float, float, float) |
Adds an offset widget with a name, a value and min-max range. More... | |
Rotation * | addRotationWidget (QString const &) |
Adds an Rotation widget with three dials for X,Y and Z axis. More... | |
omni::ui::AffineTransform * | addAffineTransformWidget (QString const &, omni::AffineTransform *) |
Add a new affine transform widget with an id. More... | |
QCheckBox * | addCheckBox (QString const &, bool _checked=false) |
Adds a checkbox. More... | |
int | focusId () const |
Return id of focused parameter, -1 if no parameter is focused. More... | |
![]() | |
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... | |
![]() | |
DataModel () | |
void | setDataModel (pointer_type _dataModel) |
Set new data model. More... | |
pointer_type | dataModel () |
Return pointer to data model. More... | |
const pointer_type | dataModel () const |
Return pointer to data model (const version) More... | |
virtual void | updateFrontend () |
Push data to frontend widgets and all child widgets. More... | |
virtual void | updateDataModel () |
Update the data model interface. More... | |
Private Member Functions | |
void | setup () |
Setup widget. More... | |
void | dataToFrontend () |
Update sliders from current warp grid. More... | |
bool | frontendToData () |
Assign slider values to current warp grid. More... | |
Private Attributes | |
RangedFloat * | brightness_ = nullptr |
RangedFloat * | contrast_ = nullptr |
RangedFloat * | gamma_ = nullptr |
RangedFloat * | multiplier_ = nullptr |
QPushButton * | reset_ = nullptr |
Channel | channel_ = Channel::ALL |
Additional Inherited Members | |
![]() | |
typedef omni::ui::RangedFloat | slider_type |
typedef float | scalar_type |
![]() | |
typedef DATAMODEL | data_model_type |
Data type. More... | |
typedef DataModel < data_model_type, SHARED > | type |
This type. More... | |
typedef detail::PointerType < data_model_type, SHARED > | pointer_type_handler |
Pointer type handler. More... | |
typedef pointer_type_handler::type | pointer_type |
Derived pointer type. More... | |
![]() | |
static int | getPrecision (float _scale) |
Return precesion by scale. More... | |
![]() | |
virtual int | firstFocusId () const |
Id of first focussed widget. More... | |
void | keyPressEvent (QKeyEvent *_event) |
![]() | |
template<typename F > | |
void | locked (F f) |
Lock widget and execute given functor. More... | |
bool | isLocked () const |
Return true if widget is locked. More... | |
![]() | |
std::vector< QUniquePtr < QWidget > > | parameters_ |
Slider parameter widgets. More... | |
std::map< QString, QWidget * > | parameterMap_ |
Slider widgets, sorted by their label. More... | |
Parameter widget for channel correction.
omni::ui::proj::ChannelCorrectionParameters::ChannelCorrectionParameters | ( | QWidget * | _parent = nullptr | ) |
Channel omni::ui::proj::ChannelCorrectionParameters::channel | ( | ) | const |
Return channel.
|
signal |
Is emitted when channel correction has changed.
|
privatevirtual |
Update sliders from current warp grid.
Implements omni::ui::mixin::DataModel< DATAMODEL, SHARED >.
|
privatevirtual |
Assign slider values to current warp grid.
Implements omni::ui::mixin::DataModel< DATAMODEL, SHARED >.
|
slot |
Reset color correction for channel.
void omni::ui::proj::ChannelCorrectionParameters::setChannel | ( | Channel | _channel | ) |
Set selected channel.
|
private |
Setup widget.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |