Simple Widget for RenderParameter editing The editor will expose a control panel containing all of the editable parameters from a RenderParameter set.
More...
|
| VariableSetEditor (const std::string &name, QWidget *parent=nullptr) |
|
| VariableSetEditor (const VariableSetEditor &)=delete |
|
VariableSetEditor & | operator= (const VariableSetEditor &)=delete |
|
| VariableSetEditor (VariableSetEditor &&)=delete |
|
VariableSetEditor && | operator= (VariableSetEditor &&)=delete |
|
void | setupUi (Core::VariableSet ¶ms, const nlohmann::json &constraints) |
| Update the different UI element with the given renderParameter, using the given constraints.
|
|
void | setShowUnspecified (bool enable) |
| Wether to show parameters without associated metadata.
|
|
bool | showUnspecified () |
|
template<typename T > |
void | addEnumWidget (const std::string &name, T &initial, Core::VariableSet ¶ms, const nlohmann::json ¶mMetadata) |
| Add a combobox allowing to chose the value of an enumerator.
|
|
template<typename T > |
void | addNumberWidget (const std::string &name, T &initial, Core::VariableSet ¶ms, const nlohmann::json &metadata) |
|
template<typename T > |
void | addVectorWidget (const std::string &key, std::vector< T > &initial, Core::VariableSet ¶ms, const nlohmann::json &metadata) |
|
template<typename T > |
void | addMatrixWidget (const std::string &key, T &initial, Core::VariableSet ¶ms, const nlohmann::json &metadata) |
|
| ControlPanel (const std::string &name, bool hline=true, QWidget *parent=nullptr) |
|
| ControlPanel (const ControlPanel &)=delete |
|
ControlPanel & | operator= (const ControlPanel &)=delete |
|
| ControlPanel (ControlPanel &&)=delete |
|
ControlPanel & | operator= (ControlPanel &&)=delete |
|
void | addSeparator () |
|
void | addStretch (int stretch) |
|
void | newLayout () |
|
void | addOption (const std::string &name, std::function< void(bool)> callback, bool set=false, const std::string &tooltip="") |
|
void | addLabel (const std::string &text) |
|
void | addButton (const std::string &name, std::function< void()> callback, const std::string &tooltip="") |
|
void | addColorInput (const std::string &name, const std::function< void(const Ra::Core::Utils::Color &clr)> &callback, Ra::Core::Utils::Color color=Ra::Core::Utils::Color::Black(), bool withAlpha=true, const std::string &tooltip="") |
|
template<typename T = Scalar> |
void | addNumberInput (const std::string &name, std::function< void(T)> callback, T initial, T min=std::numeric_limits< T >::lowest(), T max=std::numeric_limits< T >::max(), const std::string &tooltip="", int dec=3) |
|
template<typename T = Scalar> |
void | addConstrainedNumberInput (const std::string &name, std::function< void(T)> callback, Scalar initial, std::function< bool(T)> predicate, const std::string &tooltip="", int dec=3) |
|
void | addSliderInput (const std::string &name, std::function< void(int)> callback, int initial=0, int min=0, int max=100, const std::string &tooltip="") |
|
void | addPowerSliderInput (const std::string &name, std::function< void(double)> callback, double initial=0, double min=0, double max=100, const std::string &tooltip="") |
|
template<typename T = Scalar> |
void | addVectorInput (const std::string &name, std::function< void(const std::vector< T > &)> callback, const std::vector< T > &initial, const std::string &tooltip="") |
|
void | addMatrixInput (const std::string &name, std::function< void(const Ra::Core::MatrixN &)> callback, const Ra::Core::MatrixN &initial, int dec=3, const std::string &tooltip="") |
|
void | addFileInput (const std::string &name, std::function< void(std::string)> callback, const std::string &rootDirectory, const std::string &filters, const std::string &tooltip="") |
|
void | addFileOutput (const std::string &name, std::function< void(std::string)> callback, const std::string &rootDirectory, const std::string &filters, const std::string &tooltip="") |
|
void | addComboBox (const std::string &name, std::function< void(int)> callback, int initial, const std::vector< std::string > &items, const std::string &tooltip="") |
|
void | addComboBox (const std::string &name, std::function< void(const QString &)> callback, const std::string &initial, const std::vector< std::string > &items, const std::string &tooltip="") |
|
void | addWidget (QWidget *newWidget) |
|
Simple Widget for RenderParameter editing The editor will expose a control panel containing all of the editable parameters from a RenderParameter set.
Definition at line 33 of file ParameterSetEditor.hpp.