Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkDataNodeSource.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 mitkDataNodeSource_h
14 #define mitkDataNodeSource_h
15 
16 #include <itkProcessObject.h>
17 #include <mitkDataNode.h>
18 
19 namespace mitk
20 {
32  class MITKCORE_EXPORT DataNodeSource : public itk::ProcessObject
33  {
34  public:
36 
37  itkFactorylessNewMacro(Self);
38 
39  itkCloneMacro(Self);
40 
43 
45  typedef OutputType::Pointer OutputTypePointer;
46 
55  DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override;
56 
66  DataObjectPointer MakeOutput(const DataObjectIdentifierType &name) override;
67 
73 
75  const OutputType *GetOutput() const;
76 
82  OutputType *GetOutput(DataObjectPointerArraySizeType idx);
83 
85  const OutputType *GetOutput(DataObjectPointerArraySizeType idx) const;
86 
87  protected:
90 
92  ~DataNodeSource() override;
93  };
94 }
95 #endif
#define MITKCORE_EXPORT
Superclass of all classes generating DataNode instances as output.
OutputType * GetOutput()
Get the primary output DataNode.
mitkClassMacroItkParent(DataNodeSource, itk::ProcessObject)
mitk::DataNode OutputType
The output data type (mitk::DataNode).
OutputType::Pointer OutputTypePointer
Pointer type for the output.
OutputType * GetOutput(DataObjectPointerArraySizeType idx)
Get the output DataNode at the given index.
~DataNodeSource() override
Destructor.
const OutputType * GetOutput() const
DataObjectPointer MakeOutput(const DataObjectIdentifierType &name) override
Allocate and return a new output object by name.
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
Allocate and return a new output object.
DataNodeSource()
Constructor. Creates the initial output.
const OutputType * GetOutput(DataObjectPointerArraySizeType idx) const
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Find image slices visible on a given plane.