NDEVR
API Documentation
SmoothDialog

A widget allowing the user to select options and execute smoothing a 3D mesh. More...

Inheritance diagram for SmoothDialog:
[legend]
Collaboration diagram for SmoothDialog:
[legend]

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, fltp08bounds () const
 Returns the combined 3D bounding box of all target design objects.
void clearTargets ()
 Removes all target design objects from this widget.
QTModelManagermanager () const
 Returns the current model manager.
Buffer< Modelmodels () 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< UUIDtargetIDs () 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.
Togglem_retain_size = nullptr
 Toggle for retaining original mesh size after smoothing.
Togglem_smooth_normals = nullptr
 Toggle for enabling normal smoothing.
QCustomLineEditm_smooth_normals_angle = nullptr
 Line edit for the normal smoothing angle threshold.
QCustomComboBoxm_smoothing_type
 Combo box for selecting the smoothing algorithm type.
Protected Attributes inherited from DesignObjectWidgetInterface
DesignObjectInterfacem_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.

Detailed Description

A widget allowing the user to select options and execute smoothing a 3D mesh.


Definition at line 45 of file SmoothButton.h.

Constructor & Destructor Documentation

◆ SmoothDialog()

SmoothDialog::SmoothDialog ( QWidget * parent = nullptr)

Constructs a smooth dialog widget.

Parameters
[in]parentThe parent widget.

The documentation for this class was generated from the following file: