File SelectionManager.h
FileList > editor > SelectionManager.h
Go to the source code of this file
Generic selection state management for objects. More...
#include <algorithm>#include <string>#include <vector>#include <unordered_set>
Classes
| Type | Name |
|---|---|
| class | SelectionManager <class _Base> Generic selection state manager supporting single and multi-selection. |
Detailed Description
SelectionManager provides a type-safe container for tracking user selections. It supports single and multi-selection modes with fast lookup via hash set.
Architecture: * Template-based for use with any object type (ObjectID, Mesh, etc.) * EditorContext owns SelectionManager<ObjectID> for scene selections * UI queries selections to highlight/display selected objects * Controllers mutate selections in response to user input
Selection Patterns: * Single select: Replace current selection * Multi-select (increment): Add to selection set * Deselect: Remove from selection set * Active object: Last selected object in list
Note:
Editor Layer: SelectionManager is part of EditorContext
Note:
Thread-safety: Not thread-safe. Must be used from main thread only.
The documentation for this class was generated from the following file src/editor/SelectionManager.h