Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkSegmentationTaskListIO.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkSegmentationTaskListIO_h
14 #define mitkSegmentationTaskListIO_h
15 
16 #include <mitkAbstractFileIO.h>
17 #include <mitkFileSystem.h>
18 
19 namespace mitk
20 {
21  class SegmentationTaskList;
22 
32  {
33  public:
36 
38 
40  void Write() override;
41 
42  protected:
47  std::vector<BaseData::Pointer> DoRead() override;
48 
54  int GetMinimumRequiredVersion(const SegmentationTaskList* segmentationTaskList) const;
55 
61  fs::path ResolvePath(const fs::path& path) const;
62 
63  private:
64  SegmentationTaskListIO* IOClone() const override;
65  };
66 }
67 
68 #endif
Abstract base class for implementing a combined file reader and writer.
std::vector< itk::SmartPointer< BaseData > > Read() override
Read data and create a list of BaseData objects.
File I/O for reading and writing SegmentationTaskList objects.
std::vector< BaseData::Pointer > DoRead() override
Perform the actual reading of a SegmentationTaskList from a JSON file.
fs::path ResolvePath(const fs::path &path) const
Resolve a relative path against the task list file's directory.
void Write() override
Write the SegmentationTaskList to a JSON file.
int GetMinimumRequiredVersion(const SegmentationTaskList *segmentationTaskList) const
Determine the minimum file format version required for the given task list.
SegmentationTaskListIO()
Default constructor. Registers reader/writer for the SegmentationTaskList MIME type.
A list of segmentation tasks.
Portability header that provides a unified namespace alias for the C++ filesystem library.
Find image slices visible on a given plane.