Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::GroupModifiedEvent Class Reference

#include <mitkMultiLabelEvents.h>

Inheritance diagram for mitk::GroupModifiedEvent:
Collaboration diagram for mitk::GroupModifiedEvent:

Public Types

using Self = GroupModifiedEvent
 
using Superclass = AnyGroupEvent
 
- Public Types inherited from mitk::AnyGroupEvent
using GroupIndexType = std::size_t
 Type for group indices. More...
 
using Self = AnyGroupEvent
 
using Superclass = itk::ModifiedEvent
 

Public Member Functions

 GroupModifiedEvent ()=default
 
 GroupModifiedEvent (AnyGroupEvent::GroupIndexType value)
 
 GroupModifiedEvent (const Self &s)
 
virtual ~ GroupModifiedEvent () override
 
virtual const char * GetEventName () const override
 
virtual bool CheckEvent (const itk::EventObject *e) const override
 
virtual itk::EventObject * MakeObject () const override
 
- Public Member Functions inherited from mitk::AnyGroupEvent
 AnyGroupEvent ()=default
 
 AnyGroupEvent (GroupIndexType groupID)
 Constructor with a specific group index. More...
 
 AnyGroupEvent (const Self &s)
 Copy constructor. More...
 
 ~AnyGroupEvent () override
 
const char * GetEventName () const override
 Returns the name of this event class. More...
 
bool CheckEvent (const itk::EventObject *e) const override
 Checks if a given event matches this event type and group index. More...
 
itk::EventObject * MakeObject () const override
 Creates a copy of this event. More...
 
void SetGroupID (GroupIndexType groupID)
 Sets the group index this event refers to. More...
 
GroupIndexType GetGroupID () const
 Returns the group index this event refers to. More...
 

Additional Inherited Members

- Static Public Attributes inherited from mitk::AnyGroupEvent
static const GroupIndexType ANY_GROUP
 Sentinel value indicating the event applies to any/all groups. More...
 

Detailed Description

Event class that is used to indicated if a group is modified in a MultiLabel class.

It has a member that indicates the group id the event is referring to. Use the ANY_GROUP value if you want to define an event (e.g. for adding an observer) that reacts to every group and not just to a special one.

Definition at line 278 of file mitkMultiLabelEvents.h.

Member Typedef Documentation

◆ Self

◆ Superclass

Constructor & Destructor Documentation

◆ GroupModifiedEvent() [1/3]

mitk::GroupModifiedEvent::GroupModifiedEvent ( )
default

◆ GroupModifiedEvent() [2/3]

mitk::GroupModifiedEvent::GroupModifiedEvent ( AnyGroupEvent::GroupIndexType  value)

◆ GroupModifiedEvent() [3/3]

mitk::GroupModifiedEvent::GroupModifiedEvent ( const Self &  s)

◆ ~ GroupModifiedEvent()

virtual mitk::GroupModifiedEvent::~ GroupModifiedEvent ( )
overridevirtual

Member Function Documentation

◆ CheckEvent()

virtual bool mitk::GroupModifiedEvent::CheckEvent ( const itk::EventObject *  e) const
overridevirtual

◆ GetEventName()

virtual const char* mitk::GroupModifiedEvent::GetEventName ( ) const
overridevirtual

◆ MakeObject()

virtual itk::EventObject* mitk::GroupModifiedEvent::MakeObject ( ) const
overridevirtual

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