Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkLookupTableSource.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 mitkLookupTableSource_h
14 #define mitkLookupTableSource_h
15 
17 #include <mitkCommon.h>
18 #include <mitkLookupTable.h>
19 
20 #include <itkProcessObject.h>
21 
22 namespace mitk
23 {
33  class MITKDATATYPESEXT_EXPORT LookupTableSource : public itk::ProcessObject
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
42 
44  typedef OutputType::Pointer OutputTypePointer;
45 
47  typedef itk::DataObject::Pointer DataObjectPointer;
48 
55  itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override;
56 
63  itk::DataObject::Pointer MakeOutput(const DataObjectIdentifierType &name) override;
64 
71 
77  virtual void GraftOutput(OutputType *output);
78 
83  virtual OutputType *GetOutput();
84 
86  virtual const OutputType *GetOutput() const;
87 
93  virtual OutputType *GetOutput(DataObjectPointerArraySizeType idx);
94 
96  virtual const OutputType *GetOutput(DataObjectPointerArraySizeType idx) const;
97 
98  protected:
100  ~LookupTableSource() override;
101  };
102 
103 } // namespace mitk
104 
105 #endif
#define MITKDATATYPESEXT_EXPORT
Base class for all process objects that produce a mitk::LookupTable as output.
virtual const OutputType * GetOutput() const
Get the primary output (const).
virtual void GraftOutput(OutputType *output)
Graft the given output onto this source.
void GenerateInputRequestedRegion() override
Generate the input requested region.
itk::DataObject::Pointer MakeOutput(const DataObjectIdentifierType &name) override
Allocate a new output object by name.
virtual OutputType * GetOutput(DataObjectPointerArraySizeType idx)
Get an output by index.
mitkClassMacroItkParent(LookupTableSource, itk::ProcessObject)
virtual const OutputType * GetOutput(DataObjectPointerArraySizeType idx) const
Get an output by index (const).
itk::DataObject::Pointer DataObjectPointer
Generic smart pointer to a data object.
itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
Allocate a new output object.
OutputType::Pointer OutputTypePointer
Smart pointer to the output type.
mitk::LookupTable OutputType
The output type of this source.
virtual OutputType * GetOutput()
Get the primary output.
~LookupTableSource() override
MITK wrapper for a vtkLookupTable.
Find image slices visible on a given plane.