33#include <NDEVR/Editor.h>
34#include <NDEVR/Model.h>
38 class ModelMaterialEditorUI;
84 void createAndShowMaterial(
PopupInfo info);
94 void setMaterialMode(
Model::MaterialMode option);
116 void showMaterialDialog(
UUID material);
118 Ui::ModelMaterialEditorUI*
ui;
The equivelent of std::vector but with a bit more control.
Shows a series of Buttons with large icons that represent DesignObjects that allow the user to choose...
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
ModelMaterialEditor(const DynamicPointer< QTDesignObject > &model, QWidget *parent=Q_NULLPTR)
Constructs the material editor for the given model design object.
OutlineMode
Outline rendering modes for the material display.
@ e_grid
Grid pattern rendering.
@ e_wireframe
Wireframe-only rendering.
@ e_bold_edges
Solid fill with bold edge outlines.
@ e_solid
Solid fill rendering.
void setOutlineMode(const OutlineMode &mode)
Sets the outline rendering mode for material preview.
bool m_ignore_toggle
Flag to suppress toggle callbacks during programmatic updates.
virtual void updateValues() final override
Updates all UI values from the current target model and its materials.
Ui::ModelMaterialEditorUI * ui
The auto-generated UI form.
~ModelMaterialEditor()
Destroys the material editor and releases resources.
A core class that represents a node on model hierarchy.
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
The primary namespace for the NDEVR SDK.