NDEVR
API Documentation
DefaultSelectionEffect

The default behavior for selection, which is to create a bounding box around an object. More...

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

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< BitFlaggrip_mode
 Application-wide option controlling which grip modes are active.

Detailed Description

The default behavior for selection, which is to create a bounding box around an object.


Definition at line 37 of file SelectionEffect.h.

Constructor & Destructor Documentation

◆ DefaultSelectionEffect()

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.

Parameters
[in]lookupThe design object lookup used to query selected models and manage scene objects.

◆ ~DefaultSelectionEffect()

DefaultSelectionEffect::~DefaultSelectionEffect ( )

Destroys the DefaultSelectionEffect and cleans up the grip mode listener.


Member Function Documentation

◆ applySelectionEffects()

void DefaultSelectionEffect::applySelectionEffects ( )
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.

◆ removeSelectionEffects()

void DefaultSelectionEffect::removeSelectionEffects ( )
overridevirtual

Removes all bounding box and grip effects from the scene.


Implements SelectionEffect.

◆ setUseGrips()

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.

Parameters
[in]use_gripsWhether to use grip handles for selection visualization.

◆ setUseVertexHighlights()

void DefaultSelectionEffect::setUseVertexHighlights ( bool use)

Enables or disables vertex highlighting on selected models.


Note
This feature is currently not active; the implementation is commented out.
Parameters
[in]useWhether to use vertex highlighting for selection visualization.

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