![]() |
NDEVR
API Documentation
|
The default behavior for selection, which is to create a bounding box around an object. More...
Public Member Functions | |
| DefaultSelectionEffect (DesignObjectLookup *lookup) | |
| Constructs a DefaultSelectionEffect tied to the given design object lookup. | |
| ~DefaultSelectionEffect () | |
| Destroys the DefaultSelectionEffect and cleans up the grip mode listener. | |
| void | applySelectionEffects () override |
| Applies bounding box (and optionally grip) effects to all currently selected models. | |
| void | removeSelectionEffects () override |
| Removes all bounding box and grip effects from the scene. | |
| void | setUseGrips (bool use_grips) |
| Enables or disables grip handles on selected models. | |
| void | setUseVertexHighlights (bool use) |
| Enables or disables vertex highlighting on selected models. | |
Static Public Attributes | |
| static ApplicationOption< BitFlag > | grip_mode |
| Application-wide option controlling which grip modes are active. | |
The default behavior for selection, which is to create a bounding box around an object.
Definition at line 37 of file SelectionEffect.h.
| DefaultSelectionEffect::DefaultSelectionEffect | ( | DesignObjectLookup * | lookup | ) |
Constructs a DefaultSelectionEffect tied to the given design object lookup.
Registers a listener on grip_mode so that selection effects are reapplied whenever the grip mode option changes.
| [in] | lookup | The design object lookup used to query selected models and manage scene objects. |
| DefaultSelectionEffect::~DefaultSelectionEffect | ( | ) |
Destroys the DefaultSelectionEffect and cleans up the grip mode listener.
|
overridevirtual |
Applies bounding box (and optionally grip) effects to all currently selected models.
Queries the current selection from the lookup, retrieves the corresponding models, and sets up bounding boxes or grips around them.
Implements SelectionEffect.
|
overridevirtual |
| void DefaultSelectionEffect::setUseGrips | ( | bool | use_grips | ) |
Enables or disables grip handles on selected models.
When grips are enabled, non-application-locked models will display interactive grip handles instead of simple bounding boxes.
| [in] | use_grips | Whether to use grip handles for selection visualization. |
| void DefaultSelectionEffect::setUseVertexHighlights | ( | bool | use | ) |
Enables or disables vertex highlighting on selected models.
| [in] | use | Whether to use vertex highlighting for selection visualization. |