![]() |
NDEVR
API Documentation
|
A widget showing key properties of a DesignObject selection, used primarily in a SelectionWidget. More...
Classes | |
| struct | PropertiesStruct |
| Aggregated rendering properties of the current selection, used to update UI controls. More... | |
Public Member Functions | |
| DesignWidget (QTModelManager *model_manager, QWidget *parent) | |
| Constructs a DesignWidget bound to the given model manager. | |
| void | clear () |
| Clears all displayed data and resets the widget. | |
| QSize | minimumSizeHint () const override |
| Returns the minimum size hint for this widget. | |
| Buffer< UUID > | modelIDs () const |
| Returns the UUIDs of the currently displayed models. | |
| Buffer< Model > | models () const |
| Returns the currently displayed models. | |
| const PropertiesStruct & | propertiesStruct () const |
| Returns the current aggregated properties of the selection. | |
| void | refreshFromModel (const UUID &id) |
| Refreshes the displayed values for a specific model. | |
| void | refreshFromModels () |
| Refreshes all displayed values from the current set of models. | |
| void | setHorizontal (bool is_horizontal) |
| Sets whether the layout is horizontal or vertical. | |
| void | setModelIDs (const Buffer< UUID > &model_ids) |
| Sets the design objects to display properties for. | |
Protected Member Functions | |
| void | collectProperties (PropertiesStruct &properties) const |
| Collects rendering properties from all current models into the given struct. | |
| Thread * | createCalcThread () |
| Creates a background thread for computing volume and area. | |
| void | setupMaterialSection (Model &model, uint04 duration) |
| Sets up the material section of the UI for the given model. | |
| void | updateProperties () |
| Updates the aggregated properties and refreshes the UI accordingly. | |
| void | updateVolumeAndAreaWidget () |
| Updates the volume and area display widget with cached or freshly computed values. | |
Protected Attributes | |
| CameraLocationCombo * | m_camera_location_combo |
| Combo box for camera location presets. | |
| bool | m_is_horizontal |
| Whether the widget uses horizontal layout. | |
| bool | m_is_volume_queued |
| Whether a volume computation is queued. | |
| DesignWidgetCache | m_last_data |
| Cached computed values from the last update. | |
| Buffer< UUID > | m_model_ids |
| The UUIDs of the currently displayed models. | |
| QTModelManager * | m_model_manager |
| The model manager providing design objects. | |
| PropertiesStruct | m_properties |
| The aggregated rendering properties of the current selection. | |
| QTResourceListener * | m_units_listener |
| Listener for unit changes to refresh display. | |
| Thread * | m_volume_thread |
| The background thread for computing volume and area. | |
| Ui::DesignWidgetUI * | ui |
| The generated UI form. | |
A widget showing key properties of a DesignObject selection, used primarily in a SelectionWidget.
Definition at line 59 of file DesignWidget.h.
| DesignWidget::DesignWidget | ( | QTModelManager * | model_manager, |
| QWidget * | parent ) |
Constructs a DesignWidget bound to the given model manager.
| [in] | model_manager | The QTModelManager providing design objects. |
| [in] | parent | The parent widget. |
References DesignWidget().
Referenced by DesignWidget().
|
protected |
Collects rendering properties from all current models into the given struct.
| [in] | properties | The struct to populate. |
|
protected |
Creates a background thread for computing volume and area.
|
override |
Returns the minimum size hint for this widget.
Returns the UUIDs of the currently displayed models.
Definition at line 145 of file DesignWidget.h.
References m_model_ids.
Returns the currently displayed models.
|
inline |
Returns the current aggregated properties of the selection.
Definition at line 140 of file DesignWidget.h.
References m_properties.
| void DesignWidget::refreshFromModel | ( | const UUID & | id | ) |
Refreshes the displayed values for a specific model.
| [in] | id | The UUID of the model to refresh. |
| void DesignWidget::setHorizontal | ( | bool | is_horizontal | ) |
Sets whether the layout is horizontal or vertical.
| [in] | is_horizontal | True for horizontal layout. |
Sets the design objects to display properties for.
| [in] | model_ids | The UUIDs of the models to inspect. |
Sets up the material section of the UI for the given model.
| [in] | model | The model to display material info for. |
| [in] | duration | The animation duration in milliseconds. |