Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _MITK_DATA_TREE_NODE_SOURCE_H
18 #define _MITK_DATA_TREE_NODE_SOURCE_H
19 
20 #include "itkProcessObject.h"
21 #include "mitkDataNode.h"
22 
23 namespace mitk
24 {
36  class MITKCORE_EXPORT DataNodeSource : public itk::ProcessObject
37  {
38  public:
40 
41  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
42 
44 
45  typedef OutputType::Pointer OutputTypePointer;
46 
53  virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override;
54 
61  virtual DataObjectPointer MakeOutput(const DataObjectIdentifierType &name) override;
62 
63  OutputType *GetOutput();
64  const OutputType *GetOutput() const;
65  OutputType *GetOutput(DataObjectPointerArraySizeType idx);
66  const OutputType *GetOutput(DataObjectPointerArraySizeType idx) const;
67 
68  protected:
70 
71  virtual ~DataNodeSource();
72  };
73 }
74 #endif // #define _MITK_BASE_DATA_SOURCE_H
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
Superclass of all classes generating data tree nodes (instances of class mitk::DataNode) as output...
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66