23 void processSelectionChanged(
const std::list<ot::UID>& _selectedEntityIDs,
const std::list<ot::UID>& _selectedVisibleEntityIDs);
33 std::atomic_bool m_modelSelectionChangedNotificationInProgress =
false;
34 std::mutex m_changeSelectedEntitiesBuffer;
36 std::map<std::string,ot::UIDList> m_ownersWithSelection;
37 std::list<ot::UID> m_selectedEntityIDs;
38 std::list<ot::UID> m_selectedVisibleEntityIDs;
40 void toggleButtonEnabledState();
41 bool anyMaterialItemSelected();
43 void notifyOwnerThread(
const std::map<std::string, std::list<ot::UID>>& _ownerEntityListMap);
45 void setSelectedEntityIDs(
const std::list<ot::UID>& _selectedEntityIDs,
const std::list<ot::UID>& _selectedVisibleEntityIDs);
Definition SelectionHandler.h:12
SelectionHandler(SelectionHandler &&_other)=delete
void clearAllBuffer()
Definition SelectionHandler.cpp:26
void clearAllBufferAndNotify()
Definition SelectionHandler.cpp:20
void processSelectionChanged(const std::list< ot::UID > &_selectedEntityIDs, const std::list< ot::UID > &_selectedVisibleEntityIDs)
Definition SelectionHandler.cpp:8
const std::list< ot::UID > & getSelectedVisibleEntityIDs()
Definition SelectionHandler.cpp:57
SelectionHandler(const SelectionHandler &_other)=delete
SelectionHandler & operator=(SelectionHandler &&_other)=delete
const std::atomic_bool & notificationInProcess()
Definition SelectionHandler.h:24
SelectionHandler()=default
const std::list< ot::UID > & getSelectedEntityIDs()
Definition SelectionHandler.cpp:51
SelectionHandler & operator=(const SelectionHandler &_other)=delete
void deselectEntity(ot::UID _entityID, const std::string &_owner)
Definition SelectionHandler.cpp:33
~SelectionHandler()=default
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27