![]() |
NDEVR
API Documentation
|
A QtModelFunction that manages the geometry surfacing tool, including selection and UI. More...
Public Member Functions | |
| GeometrySurfacingFunction (QTModelManager *manager) | |
| Constructs a GeometrySurfacingFunction. | |
| virtual | ~GeometrySurfacingFunction () |
| Destroys the GeometrySurfacingFunction. | |
| virtual SubSelectionMode | defaultSelectionMode () const override |
| Returns the default sub-selection mode for this function. | |
| virtual QWidget * | editWidget () override |
| Returns the editing widget for this function. | |
| virtual TranslatedString | expandedHint () const override |
| Returns an expanded hint description. | |
| virtual TranslatedString | group () const override |
| Returns the function group name. | |
| virtual TranslatedString | hint () const override |
| Returns a short hint description. | |
| virtual bool | isSelecting () const override |
| Returns whether the tool is currently in selection mode. | |
| virtual void | onCancel () override |
| Cancels the current surfacing operation. | |
| virtual void | onSelect (const Buffer< UUID > &selection) override |
| Called when a selection is made. | |
| virtual bool | processKeyEvent (const KeyEvent &event, DesignObjectLookup *lookup, Camera *camera) override |
| Processes a keyboard event during surfacing mode. | |
| virtual void | refreshState (ModelEditController &controller) override |
| Refreshes the tool state based on the current edit controller. | |
| virtual bool | selectionModeAllowed (const SubSelectionMode &mode) const override |
| Checks whether the given sub-selection mode is allowed. | |
| virtual void | setupFilters (SelectionController *controller) override |
| Configures selection filters for the surfacing tool. | |
| 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 application model manager. | |
| GeometrySurfacingWidget * | m_widget |
| The surfacing configuration widget. | |
| 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 QtModelFunction that manages the geometry surfacing tool, including selection and UI.
Definition at line 71 of file GeometrySurfacingWidget.h.
| GeometrySurfacingFunction::GeometrySurfacingFunction | ( | QTModelManager * | manager | ) |
Constructs a GeometrySurfacingFunction.
| [in] | manager | The model manager for accessing design data. |
|
overridevirtual |
Returns the default sub-selection mode for this function.
Implements ModelFunction.
|
overridevirtual |
Returns the editing widget for this function.
Implements QtModelFunction.
|
overridevirtual |
Returns an expanded hint description.
Reimplemented from ModelFunction.
|
overridevirtual |
Returns the function group name.
Reimplemented from ModelFunction.
|
overridevirtual |
Returns a short hint description.
Reimplemented from ModelFunction.
|
overridevirtual |
Returns whether the tool is currently in selection mode.
Implements ModelFunction.
|
overridevirtual |
Called when a selection is made.
| [in] | selection | The selected model UUIDs. |
Reimplemented from ModelFunction.
|
overridevirtual |
Processes a keyboard event during surfacing mode.
| [in] | event | The key event. |
| [in] | lookup | The design object lookup. |
| [in] | camera | The active camera. |
Reimplemented from ModelFunction.
|
overridevirtual |
Refreshes the tool state based on the current edit controller.
| [in] | controller | The model edit controller. |
Implements ModelFunction.
|
overridevirtual |
Checks whether the given sub-selection mode is allowed.
| [in] | mode | The selection mode to check. |
Implements ModelFunction.
|
overridevirtual |
Configures selection filters for the surfacing tool.
| [in] | controller | The selection controller to configure. |
Reimplemented from ModelFunction.