![]() |
NDEVR
API Documentation
|
A widget that is shown when the user scales a 3D model. More...
Public Member Functions | |
| ScaleCommandWidget (QTModelManager *manager) | |
| Constructs a scale command widget for the given model manager. | |
| virtual SubSelectionMode | defaultSelectionMode () const override |
| Retrieves the default sub-selection mode for scaling. | |
| virtual QWidget * | editWidget () override |
| Retrieves the edit widget for displaying scale controls. | |
| virtual TranslatedString | expandedHint () const override |
| Retrieves an expanded hint with more detail about the scale command. | |
| virtual TranslatedString | group () const override |
| Retrieves the command group name for UI categorization. | |
| virtual TranslatedString | hint () const override |
| Retrieves a short hint describing the scale command. | |
| virtual bool | isSelecting () const override |
| Checks whether the widget is currently in a selection state. | |
| virtual void | onCancel () override |
| Cancels the current scale operation. | |
| virtual void | onSelect (const Buffer< UUID > &selection) override |
| Handles selection of objects for the scale operation. | |
| virtual bool | processKeyEvent (const KeyEvent &event, DesignObjectLookup *lookup, Camera *camera) override |
| Processes a keyboard event during the scale operation. | |
| virtual void | refreshState (ModelEditController &controller) override |
| Refreshes the widget state from the model edit controller. | |
| virtual bool | selectionModeAllowed (const SubSelectionMode &mode) const override |
| Checks whether a given sub-selection mode is allowed during scaling. | |
| virtual void | setupFilters (SelectionController *controller) override |
| Sets up selection filters for the scale operation. | |
| Public Member Functions inherited from QtModelFunction | |
| virtual bool | shouldShowInterface () const override |
| Returns whether the function should show a UI interface. | |
| Public Member Functions inherited from ModelFunction | |
| virtual bool | canAutoFinishNow () const |
| Checks whether the function can automatically finish in its current state. | |
| virtual bool | processMouseEvent (MouseControllerEvent &) |
| Processes a mouse controller event during this function's operation. | |
| virtual void | requestCancel () |
| Requests cancellation of the current function through the controller. | |
| virtual void | requestFinish () |
| Requests that the function finishes its operation through the controller. | |
| virtual void | requestFinishSelection () |
| Requests that the selection phase of this function be completed. | |
Protected Attributes | |
| QTModelManager * | m_manager |
| The model manager providing objects to scale. | |
| Protected Attributes inherited from ModelFunction | |
| ModelEditController * | m_controller = nullptr |
| Pointer to the owning ModelEditController. | |
Additional Inherited Members | |
| Public Attributes inherited from ModelFunction | |
| String | icon |
| The icon identifier used for toolbar/menu display. | |
| UUID | id |
| Unique identifier for this model function. | |
| TranslatedString | name |
| The display name of the function shown in UI. | |
| Protected Member Functions inherited from ModelFunction | |
| virtual void | setController (ModelEditController *controller) |
| Sets the owning controller for this function. | |
A widget that is shown when the user scales a 3D model.
Definition at line 9 of file ScaleCommandWidget.h.
| ScaleCommandWidget::ScaleCommandWidget | ( | QTModelManager * | manager | ) |
Constructs a scale command widget for the given model manager.
| [in] | manager | The model manager providing the objects to scale. |
References ScaleCommandWidget().
Referenced by ScaleCommandWidget().
|
overridevirtual |
Retrieves the default sub-selection mode for scaling.
Implements ModelFunction.
|
overridevirtual |
Retrieves the edit widget for displaying scale controls.
Implements QtModelFunction.
|
overridevirtual |
Retrieves an expanded hint with more detail about the scale command.
Reimplemented from ModelFunction.
|
overridevirtual |
Retrieves the command group name for UI categorization.
Reimplemented from ModelFunction.
|
overridevirtual |
Retrieves a short hint describing the scale command.
Reimplemented from ModelFunction.
|
overridevirtual |
Checks whether the widget is currently in a selection state.
Implements ModelFunction.
Handles selection of objects for the scale operation.
| [in] | selection | The UUIDs of the selected objects. |
Reimplemented from ModelFunction.
|
overridevirtual |
Processes a keyboard event during the scale operation.
| [in] | event | The key event to process. |
| [in] | lookup | The design object lookup. |
| [in] | camera | The active camera. |
Reimplemented from ModelFunction.
|
overridevirtual |
Refreshes the widget state from the model edit controller.
| [in] | controller | The model edit controller providing current state. |
Implements ModelFunction.
|
overridevirtual |
Checks whether a given sub-selection mode is allowed during scaling.
| [in] | mode | The sub-selection mode to check. |
Implements ModelFunction.
|
overridevirtual |
Sets up selection filters for the scale operation.
| [in] | controller | The selection controller to configure. |
Reimplemented from ModelFunction.