A simple widget showing some visual properties of a Material or Model.
More...
|
|
void | setup () |
| | Sets up the internal UI layout and child widgets.
|
|
void | updateFromColor () |
| | Updates the widget state based on the current color selection.
|
| void | updateFromMaterial (const Model &model, const Material &mat) |
| | Updates the widget state from the given model and material.
|
A simple widget showing some visual properties of a Material or Model.
Definition at line 46 of file MaterialWidget.h.
◆ MaterialWidget() [1/2]
| MaterialWidget::MaterialWidget |
( |
QWidget * | parent = nullptr | ) |
|
Constructs a MaterialWidget with no initial target.
- Parameters
-
| [in] | parent | The optional parent widget. |
◆ MaterialWidget() [2/2]
Constructs a MaterialWidget bound to the given design object.
- Parameters
-
| [in] | material | The design object whose material properties are displayed. |
| [in] | parent | The optional parent widget. |
◆ setTarget()
Sets the design object target for this widget.
- Parameters
-
| [in] | target | The design object to display material properties for. |
◆ updateFromMaterial()
| void MaterialWidget::updateFromMaterial |
( |
const Model & | model, |
|
|
const Material & | mat ) |
|
protected |
Updates the widget state from the given model and material.
- Parameters
-
| [in] | model | The model that owns the material. |
| [in] | mat | The material to read properties from. |
The documentation for this class was generated from the following file: