Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkSegmentationTaskListMacros.h File Reference

Convenience macros for declaring SegmentationTask and SegmentationTaskList value properties. More...

Go to the source code of this file.

Macros

#define mitkSegmentationTaskHasValueMacro(name)
 Declare a Has<name>() method returning whether the optional value is set. More...
 
#define mitkSegmentationTaskGetValueMacro(type, name)
 Declare a Get<name>() method returning the value or its default. More...
 
#define mitkSegmentationTaskSetValueMacro(type, name)
 Declare a Set<name>() method that stores the value. More...
 
#define mitkSegmentationTaskValueMacro(type, name)
 Declare Has/Get/Set methods and the backing std::optional member for a task property. More...
 
#define mitkSegmentationTaskListGetValueMacro(type, name)
 Declare a per-index Get<name>(index) method for the task list. More...
 
#define mitkSegmentationTaskListHasValueMacro(name)
 Declare a per-index Has<name>(index) method that checks the task or its defaults. More...
 
#define mitkSegmentationTaskListSetDefaultMacro(type, name)
 Declare a SetDefault<name>() method for the task list default values. More...
 
#define mitkSegmentationTaskListValueMacro(type, name)
 Declare Has/Get/SetDefault methods for a task list property (combines list-level macros). More...
 

Detailed Description

Convenience macros for declaring SegmentationTask and SegmentationTaskList value properties.

These macros generate Has/Get/Set methods backed by std::optional members. For task lists, per-index accessors and default setters are generated as well.

Definition in file mitkSegmentationTaskListMacros.h.

Macro Definition Documentation

◆ mitkSegmentationTaskGetValueMacro

#define mitkSegmentationTaskGetValueMacro (   type,
  name 
)

Declare a Get<name>() method returning the value or its default.

Definition at line 31 of file mitkSegmentationTaskListMacros.h.

◆ mitkSegmentationTaskHasValueMacro

#define mitkSegmentationTaskHasValueMacro (   name)

Declare a Has<name>() method returning whether the optional value is set.

Definition at line 25 of file mitkSegmentationTaskListMacros.h.

◆ mitkSegmentationTaskListGetValueMacro

#define mitkSegmentationTaskListGetValueMacro (   type,
  name 
)

Declare a per-index Get<name>(index) method for the task list.

Definition at line 54 of file mitkSegmentationTaskListMacros.h.

◆ mitkSegmentationTaskListHasValueMacro

#define mitkSegmentationTaskListHasValueMacro (   name)

Declare a per-index Has<name>(index) method that checks the task or its defaults.

Definition at line 60 of file mitkSegmentationTaskListMacros.h.

◆ mitkSegmentationTaskListSetDefaultMacro

#define mitkSegmentationTaskListSetDefaultMacro (   type,
  name 
)

Declare a SetDefault<name>() method for the task list default values.

Definition at line 66 of file mitkSegmentationTaskListMacros.h.

◆ mitkSegmentationTaskListValueMacro

#define mitkSegmentationTaskListValueMacro (   type,
  name 
)

Declare Has/Get/SetDefault methods for a task list property (combines list-level macros).

Definition at line 72 of file mitkSegmentationTaskListMacros.h.

◆ mitkSegmentationTaskSetValueMacro

#define mitkSegmentationTaskSetValueMacro (   type,
  name 
)

Declare a Set<name>() method that stores the value.

Definition at line 39 of file mitkSegmentationTaskListMacros.h.

◆ mitkSegmentationTaskValueMacro

#define mitkSegmentationTaskValueMacro (   type,
  name 
)

Declare Has/Get/Set methods and the backing std::optional member for a task property.

Definition at line 45 of file mitkSegmentationTaskListMacros.h.