go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkVectorContainerSource.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkVectorContainerSource_h
19#define itkVectorContainerSource_h
20
21#include "itkProcessObject.h"
22#include "itkDataObjectDecorator.h"
23
24namespace itk
25{
31template <class TOutputVectorContainer>
32class ITK_TEMPLATE_EXPORT VectorContainerSource : public ProcessObject
33{
34public:
36
39 using Superclass = ProcessObject;
40 using Pointer = SmartPointer<Self>;
41 using ConstPointer = SmartPointer<const Self>;
42
44 itkNewMacro(Self);
45
47 itkTypeMacro(VectorContainerSource, ProcessObject);
48
50 using typename Superclass::DataObjectPointer;
51 using OutputVectorContainerType = TOutputVectorContainer;
52 using OutputVectorContainerPointer = typename OutputVectorContainerType::Pointer;
53
57
60 GetOutput(unsigned int idx);
61
63 virtual void
64 GraftOutput(DataObject * output);
65
67 virtual void
68 GraftNthOutput(unsigned int idx, DataObject * output);
69
71 DataObjectPointer
72 MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override;
73
74protected:
75 // Protected using-declaration, to avoid `-Woverloaded-virtual` warnings from GCC (GCC 11.4) or clang (macos-12).
76 using ProcessObject::MakeOutput;
77
81 ~VectorContainerSource() override = default;
82
84 void
85 PrintSelf(std::ostream & os, Indent indent) const override;
86
87private:
89 int m_GenerateDataRegion{};
90 int m_GenerateDataNumberOfRegions{};
91};
92
93} // end namespace itk
94
95#ifndef ITK_MANUAL_INSTANTIATION
96# include "itkVectorContainerSource.hxx"
97#endif
98
99#endif // end #ifndef itkVectorContainerSource_h
A base class for creating an ImageToVectorContainerFilter.
OutputVectorContainerType * GetOutput()
ITK_DISALLOW_COPY_AND_MOVE(VectorContainerSource)
DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
virtual void GraftOutput(DataObject *output)
void PrintSelf(std::ostream &os, Indent indent) const override
TOutputVectorContainer OutputVectorContainerType
~VectorContainerSource() override=default
OutputVectorContainerType * GetOutput(unsigned int idx)
SmartPointer< const Self > ConstPointer
virtual void GraftNthOutput(unsigned int idx, DataObject *output)
typename OutputVectorContainerType::Pointer OutputVectorContainerPointer


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo