ImFusion C++ SDK 4.4.0
ImFusion::LabelSelector Class Reference
Inheritance diagram for ImFusion::LabelSelector:

Public Types

enum  SelectorOption {
  NoOptions = 0 , ShowEye = 1 << 0 , ShowLock = 1 << 1 , Selectable = 1 << 2 ,
  HideZeroLabel = 1 << 3 , MultiSelection = 1 << 4 , ZeroLabelUnselectable = 1 << 5
}

Public Member Functions

 LabelSelector (AnnotationActionSharedState::LabelMapSettings &settings, Flags< SelectorOption > options, QWidget *parent=nullptr)
void setBlankOverride (std::unique_ptr< Project::PixelwiseLabelType > blankOverride)
Project::PixelwiseLabelTypeblankOverride () const
const Project::PixelwiseLabelTypeactiveLabel (bool withOverride=true) const
int labelCount () const
QSize sizeHint () const override
void keyPressEvent (QKeyEvent *event) override
void keyReleaseEvent (QKeyEvent *event) override
void showEvent (QShowEvent *event) override
void mousePressEvent (QMouseEvent *event) override
void addCustomContextMenuAction (const QString &text, std::function< void(void)> lambda)
 Appends a custom context-menu action with the given text and callback.
void clearCustomContextMenuActions ()
 Clears all custom context menu actions.

The documentation for this class was generated from the following file:
  • ImFusionLabels/lib/include/ImFusion/Labels/UI/Widgets/LabelSelector.h
Search Tab / S to search, Esc to close