Medical Imaging Interaction Toolkit  2025.12.02
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 
42 
43  typedef OutputType::Pointer OutputTypePointer;
44 
51  DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override;
52 
59  DataObjectPointer MakeOutput(const DataObjectIdentifierType &name) override;
60 
62  const OutputType *GetOutput() const;
63  OutputType *GetOutput(DataObjectPointerArraySizeType idx);
64  const OutputType *GetOutput(DataObjectPointerArraySizeType idx) const;
65 
66  protected:
68 
69  ~DataNodeSource() override;
70  };
71 }
72 #endif
#define MITKCORE_EXPORT
Superclass of all classes generating data tree nodes (instances of class mitk::DataNode) as output.
OutputType * GetOutput()
mitkClassMacroItkParent(DataNodeSource, itk::ProcessObject)
mitk::DataNode OutputType
OutputType::Pointer OutputTypePointer
OutputType * GetOutput(DataObjectPointerArraySizeType idx)
~DataNodeSource() override
const OutputType * GetOutput() const
DataObjectPointer MakeOutput(const DataObjectIdentifierType &name) override
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
const OutputType * GetOutput(DataObjectPointerArraySizeType idx) const
Class for nodes of the DataTree.
Definition: mitkDataNode.h:64
Find image slices visible on a given plane.