![]() |
NDEVR
API Documentation
|
A widget allowing the user to select options and execute smoothing a 3D mesh. More...
Public Member Functions | |
| SmoothDialog (QWidget *parent=nullptr) | |
| Constructs a smooth dialog widget. | |
| void | performSmoothing () const |
| Executes the smoothing operation on the target objects. | |
| void | requestSettingsSignal () |
| Emitted when the user requests to configure smoothing settings. | |
| void | setup () |
| Sets up the UI elements and signal connections. | |
| void | valueChanged () |
| Handles changes to any smoothing parameter. | |
| Public Member Functions inherited from DesignObjectWidgetInterface | |
| virtual void | addTarget (const DynamicPointer< QTDesignObject > &object) |
| Adds a design object to the set of targets. | |
| virtual Bounds< 3, fltp08 > | bounds () const |
| Returns the combined 3D bounding box of all target design objects. | |
| void | clearTargets () |
| Removes all target design objects from this widget. | |
| QTModelManager * | manager () const |
| Returns the current model manager. | |
| Buffer< Model > | models () const |
| Returns all target objects as Models. | |
| virtual void | onTargetUpdated (UUID) |
| Called when a target design object is updated. | |
| virtual void | removeTarget (const DynamicPointer< QTDesignObject > &object) |
| Removes a specific target design object. | |
| virtual void | removeTarget (const UUID &object) |
| Removes a specific target by UUID. | |
| void | setManager (QTModelManager *manager) |
| Sets the model manager used for UUID-based lookups. | |
| void | setTarget (const DynamicPointer< QTDesignObject > &object) |
| Sets a single target design object, replacing any existing targets. | |
| void | setTargetID (const UUID &object) |
| Sets a single target by UUID, replacing any existing targets. | |
| void | setTargetIDs (const Buffer< UUID > &objects) |
| Sets multiple targets by UUID, replacing any existing targets. | |
| void | setTargets (const Buffer< DynamicPointer< QTDesignObject > > &objects) |
| Sets multiple target design objects, replacing any existing targets. | |
| Buffer< UUID > | targetIDs () const |
| Returns the UUIDs of all current target design objects. | |
Protected Attributes | |
| TimeSpan | m_animation_time |
| Duration of the smoothing animation. | |
| bool | m_has_pending |
| Whether a smoothing operation is pending. | |
| QRadioButton * | m_heavy_smoothing = nullptr |
| Radio button for heavy smoothing. | |
| bool | m_include_retain_size |
| Whether the retain size option is shown. | |
| bool | m_include_smooth_types |
| Whether the smoothing type selector is shown. | |
| QRadioButton * | m_light_smoothing = nullptr |
| Radio button for light smoothing. | |
| QRadioButton * | m_max_smoothing = nullptr |
| Radio button for maximum smoothing. | |
| QRadioButton * | m_no_smoothing = nullptr |
| Radio button for no smoothing. | |
| QRadioButton * | m_normal_smoothing = nullptr |
| Radio button for normal smoothing intensity. | |
| Toggle * | m_retain_size = nullptr |
| Toggle for retaining original mesh size after smoothing. | |
| Toggle * | m_smooth_normals = nullptr |
| Toggle for enabling normal smoothing. | |
| QCustomLineEdit * | m_smooth_normals_angle = nullptr |
| Line edit for the normal smoothing angle threshold. | |
| QCustomComboBox * | m_smoothing_type |
| Combo box for selecting the smoothing algorithm type. | |
| Protected Attributes inherited from DesignObjectWidgetInterface | |
| DesignObjectInterface * | m_interface |
| The internal QObject-based implementation handling signals and target storage. | |
Additional Inherited Members | |
| Protected Member Functions inherited from DesignObjectWidgetInterface | |
| const Dictionary< UUID, DynamicPointer< QTDesignObject > > & | targets () const |
| Returns a const reference to the dictionary of all targets. | |
A widget allowing the user to select options and execute smoothing a 3D mesh.
Definition at line 45 of file SmoothButton.h.
| SmoothDialog::SmoothDialog | ( | QWidget * | parent = nullptr | ) |
Constructs a smooth dialog widget.
| [in] | parent | The parent widget. |