Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitk::LabelsChangedEvent Class Reference

#include <mitkMultiLabelEvents.h>

Inheritance diagram for mitk::LabelsChangedEvent:
Collaboration diagram for mitk::LabelsChangedEvent:

Public Types

using Self = LabelsChangedEvent
 
using Superclass = itk::ModifiedEvent
 

Public Member Functions

 LabelsChangedEvent ()=default
 
 LabelsChangedEvent (std::vector< Label::PixelType > labelValues)
 
 LabelsChangedEvent (const Self &s)
 
 ~LabelsChangedEvent () override
 
const char * GetEventName () const override
 
bool CheckEvent (const itk::EventObject *e) const override
 
itk::EventObject * MakeObject () const override
 
void SetLabelValues (std::vector< Label::PixelType > labelValues)
 
std::vector< Label::PixelTypeGetLabelValues () const
 

Detailed Description

Event class that is used to indicated if a set of labels is changed in a MultiLabel class.

In difference to the other label events LabelsChangedEvent is send only one time after the modification of the MultiLableImage instance is finished. So e.g. even if 4 labels are changed by a merge operation, this event will only be sent once (compared to LabelRemoved or LabelModified). It has a member that indicates the label ids the event is refering to.

Definition at line 120 of file mitkMultiLabelEvents.h.

Member Typedef Documentation

◆ Self

◆ Superclass

using mitk::LabelsChangedEvent::Superclass = itk::ModifiedEvent

Definition at line 124 of file mitkMultiLabelEvents.h.

Constructor & Destructor Documentation

◆ LabelsChangedEvent() [1/3]

mitk::LabelsChangedEvent::LabelsChangedEvent ( )
default

◆ LabelsChangedEvent() [2/3]

mitk::LabelsChangedEvent::LabelsChangedEvent ( std::vector< Label::PixelType labelValues)

◆ LabelsChangedEvent() [3/3]

mitk::LabelsChangedEvent::LabelsChangedEvent ( const Self s)

◆ ~LabelsChangedEvent()

mitk::LabelsChangedEvent::~LabelsChangedEvent ( )
override

Member Function Documentation

◆ CheckEvent()

bool mitk::LabelsChangedEvent::CheckEvent ( const itk::EventObject *  e) const
override

◆ GetEventName()

const char* mitk::LabelsChangedEvent::GetEventName ( ) const
override

◆ GetLabelValues()

std::vector<Label::PixelType> mitk::LabelsChangedEvent::GetLabelValues ( ) const

◆ MakeObject()

itk::EventObject* mitk::LabelsChangedEvent::MakeObject ( ) const
override

◆ SetLabelValues()

void mitk::LabelsChangedEvent::SetLabelValues ( std::vector< Label::PixelType labelValues)

The documentation for this class was generated from the following file: