Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
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 _MITK_DATA_TREE_NODE_SOURCE_H
14 #define _MITK_DATA_TREE_NODE_SOURCE_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 
41  typedef mitk::DataNode OutputType;
42 
44 
51  DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override;
52 
59  DataObjectPointer MakeOutput(const DataObjectIdentifierType &name) override;
60 
61  OutputType *GetOutput();
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 _MITK_BASE_DATA_SOURCE_H
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
mitk::DataNode OutputType
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
OutputType::Pointer OutputTypePointer
Superclass of all classes generating data tree nodes (instances of class mitk::DataNode) as output...
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57