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;
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 virtual DataObjectPointer
72 MakeOutput(unsigned int idx);
73
74protected:
78 ~VectorContainerSource() override = default;
79
81 void
82 PrintSelf(std::ostream & os, Indent indent) const override;
83
84private:
88};
89
90} // end namespace itk
91
92#ifndef ITK_MANUAL_INSTANTIATION
93# include "itkVectorContainerSource.hxx"
94#endif
95
96#endif // end #ifndef itkVectorContainerSource_h
A base class for creating an ImageToVectorContainerFilter.
OutputVectorContainerType * GetOutput()
ITK_DISALLOW_COPY_AND_MOVE(VectorContainerSource)
virtual void GraftOutput(DataObject *output)
void PrintSelf(std::ostream &os, Indent indent) const override
TOutputVectorContainer OutputVectorContainerType
~VectorContainerSource() override=default
OutputVectorContainerType * GetOutput(unsigned int idx)
virtual DataObjectPointer MakeOutput(unsigned int idx)
SmartPointer< const Self > ConstPointer
virtual void GraftNthOutput(unsigned int idx, DataObject *output)
typename OutputVectorContainerType::Pointer OutputVectorContainerPointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo