Button class that can be used to display information about selected labels of a given multi label segmentation. If the given node is a nullptr the node info text will be shown. The node info can be formatted text (e.g. HTML code; like the tooltip text).  
 More...
#include <QmitkMultiLabelSelectionButton.h>
Button class that can be used to display information about selected labels of a given multi label segmentation. If the given node is a nullptr the node info text will be shown. The node info can be formatted text (e.g. HTML code; like the tooltip text). 
Definition at line 31 of file QmitkMultiLabelSelectionButton.h.
 
◆ LabelValueType
◆ LabelValueVectorType
◆ QmitkMultiLabelSelectionButton()
      
        
          | QmitkMultiLabelSelectionButton::QmitkMultiLabelSelectionButton  | 
          ( | 
          QWidget *  | 
          parent = nullptr | ) | 
           | 
        
      
 
 
◆ ~QmitkMultiLabelSelectionButton()
      
        
          | QmitkMultiLabelSelectionButton::~QmitkMultiLabelSelectionButton  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ changeEvent()
  
  
      
        
          | void QmitkMultiLabelSelectionButton::changeEvent  | 
          ( | 
          QEvent *  | 
          event | ) | 
           | 
         
       
   | 
  
overrideprotected   | 
  
 
 
◆ CurrentSelectionChanged
A signal that will be emitted if the selected labels change. 
- Parameters
 - 
  
    | labels | A list of label values that are now selected.  | 
  
   
 
 
◆ enterEvent()
  
  
      
        
          | void QmitkMultiLabelSelectionButton::enterEvent  | 
          ( | 
          QEnterEvent *  | 
          event | ) | 
           | 
         
       
   | 
  
overrideprotected   | 
  
 
 
◆ GetEmptyInfo()
      
        
          | QString QmitkMultiLabelSelectionButton::GetEmptyInfo  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ GetHighlightingActivated()
      
        
          | bool QmitkMultiLabelSelectionButton::GetHighlightingActivated  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ GetMultiLabelNode()
      
        
          | mitk::DataNode* QmitkMultiLabelSelectionButton::GetMultiLabelNode  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ GetMultiLabelSegmentation()
◆ GetSelectedLabels()
Retrieve the currently selected labels (equals the last CurrentSelectionChanged values). 
 
 
◆ leaveEvent()
  
  
      
        
          | void QmitkMultiLabelSelectionButton::leaveEvent  | 
          ( | 
          QEvent *  | 
          event | ) | 
           | 
         
       
   | 
  
overrideprotected   | 
  
 
 
◆ paintEvent()
  
  
      
        
          | void QmitkMultiLabelSelectionButton::paintEvent  | 
          ( | 
          QPaintEvent *  | 
          p | ) | 
           | 
         
       
   | 
  
overrideprotected   | 
  
 
 
◆ SetEmptyInfo
  
  
      
        
          | void QmitkMultiLabelSelectionButton::SetEmptyInfo  | 
          ( | 
          QString  | 
          info | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Set the info text that should be displayed if no label is selected. The string can contain HTML code, if desired. 
 
 
◆ SetHighlightingActivated
  
  
      
        
          | void QmitkMultiLabelSelectionButton::SetHighlightingActivated  | 
          ( | 
          bool  | 
          visiblityMod | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ SetMultiLabelNode
  
  
      
        
          | void QmitkMultiLabelSelectionButton::SetMultiLabelNode  | 
          ( | 
          mitk::DataNode *  | 
          node | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Sets the segmentation node that will be used /monitored by the widget. 
- Parameters
 - 
  
    | node | A pointer to the segmentation node.  | 
  
   
 
 
◆ SetMultiLabelSegmentation
Sets the segmentation that will be used and monitored by the widget. 
- Parameters
 - 
  
    | segmentation | A pointer to the segmentation to set.  | 
  
   
- Precondition
 - Segmentation node is nullptr. 
 
 
 
◆ SetSelectedLabel
The passed label will be used as new selection in the widget. 
- Parameters
 - 
  
    | selectedLabel | Value of the selected label.  | 
  
   
 
 
◆ SetSelectedLabels
  
  
      
        
          | void QmitkMultiLabelSelectionButton::SetSelectedLabels  | 
          ( | 
          const LabelValueVectorType &  | 
          selectedLabels | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Transform a list of label values into the new selection of the inspector. 
- Parameters
 - 
  
    | selectedLabels | A list of selected label values.  | 
  
   
 
 
The documentation for this class was generated from the following file: