2 #include <Gui/RaGui.hpp>
6 #include <QPlainTextEdit>
10 #include <nlohmann/json.hpp>
12 #include <Gui/ParameterSetEditor/ParameterSetEditor.hpp>
18 class RenderParameters;
53 const nlohmann::json& constraints,
54 const std::string& name =
"" );
63 void setupFromMaterial( std::shared_ptr<Ra::Engine::Data::Material> material );
70 void showUnspecified(
bool enable );
80 QLabel* m_matInstanceNameLabel;
82 QLabel* m_matNameLabel;
84 QPlainTextEdit* m_matProperties;
86 QVBoxLayout* m_matParamsLayout;
90 bool m_showUnspecified =
false;
93 QGroupBox* m_matInfoGroup;
Simple Widget for Material/RenderParameter edition A material editor will show information about the ...
void materialParametersModified(const std::string &name)
void setupFromParameters(Engine::Data::RenderParameters ¶ms, const nlohmann::json &constraints, const std::string &name="")
Update the different UI element with the given renderParameter, using the given constraints.
Simple Widget for RenderParameter edition The editor will expose a control panel containing all of th...