Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkROIIO.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 mitkROIIO_h
14 #define mitkROIIO_h
15 
16 #include <mitkAbstractFileIO.h>
17 
18 namespace mitk
19 {
23  class ROIIO : public AbstractFileIO
24  {
25  public:
27  ROIIO();
28 
30 
32  void Write() override;
33 
34  protected:
39  std::vector<BaseData::Pointer> DoRead() override;
40 
41  private:
42  ROIIO* IOClone() const override;
43  };
44 }
45 
46 #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.
Read and write mitk::ROI objects to/from JSON files.
Definition: mitkROIIO.h:24
ROIIO()
Default constructor. Registers reader/writer for the ROI MIME type.
std::vector< BaseData::Pointer > DoRead() override
Perform the actual reading of ROI data from a JSON file.
void Write() override
Write the ROI to a JSON file.
Find image slices visible on a given plane.