Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkSceneJsonFileReader.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 mitkSceneJsonFileReader_h
14 #define mitkSceneJsonFileReader_h
15 
16 #include <mitkAbstractFileReader.h>
17 
18 namespace mitk
19 {
28  {
29  public:
32 
34 
40  DataStorage::SetOfObjects::Pointer Read(DataStorage &ds) override;
41 
42  protected:
47  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
48 
49  private:
50  SceneJsonFileReader *Clone() const override;
51  };
52 }
53 
54 #endif
Base class for creating mitk::BaseData objects from files or streams.
std::vector< itk::SmartPointer< BaseData > > Read() override
Read data and create a list of BaseData objects.
Abstract data management class that organizes DataNode objects in a directed acyclic graph.
Reader service for MITK JSON scene files (.mitkscene.json).
DataStorage::SetOfObjects::Pointer Read(DataStorage &ds) override
Read the JSON scene file and add all nodes to the given DataStorage.
SceneJsonFileReader()
Default constructor. Registers the reader for the MITK JSON scene MIME type.
std::vector< itk::SmartPointer< BaseData > > DoRead() override
Perform the actual reading of scene file data.
Find image slices visible on a given plane.