![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/Selectable.h>
Interface for Data that supports having a Selection. More...
Interface for Data that supports having a Selection.
The interface is thread safe. However, when modified the signalSelectionChanged is emitted on the thread causing the modification.
Public Member Functions | |
Selectable (const Selectable &) | |
Selectable (Selectable &&) | |
Selectable & | operator= (const Selectable &) |
Selectable & | operator= (Selectable &&) |
virtual Selection | selection () const |
virtual int | focus () const |
virtual void | setSelection (const Selection &sel) |
Set the underlying selection. | |
virtual void | setFocus (int index) |
Set focus of the selection. | |
virtual int | size () const =0 |
Public Attributes | |
ProtectedSignal | signalSelectionChanged |
Signals that the selection or size might have changed. | |
Protected Attributes | |
std::mutex | m_selectionMutex |
Mutex protecting the selection. | |
Selection | m_sel |
|
virtual |
|
virtual |
|
virtual |
Set the underlying selection.
Checks and clamps the index to be within the range defined by size(). Emits signalSelectionChanged if sel
is different from the underlying selection.
Reimplemented in RGBDPlayback.
|
virtual |
Set focus of the selection.
Checks and clamps the index to be within the range defined by size(). Emits signalSelectionChanged if index
is different from the underlying selection's focus.
Reimplemented in RGBDPlayback, and VideoFileStream.
|
pure virtual |
Implemented in AnatomicalStructureCollection, ASCSet, FakeImageStream, ImageStream, BoundingBoxSet, KeypointSet, TensorSet, RGBDPlayback, SharedImageSet, StereoSharedImageSet, TrackingSequence, and VideoFileStream.