ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPathSource.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkPathSource_h
19#define itkPathSource_h
20
21#include "itkProcessObject.h"
22#include "itkPath.h"
23
24namespace itk
25{
40
41template <typename TOutputPath>
42class ITK_TEMPLATE_EXPORT PathSource : public ProcessObject
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(PathSource);
46
52
55
57 itkNewMacro(Self);
58
60 itkOverrideGetNameOfClassMacro(PathSource);
61
63 using OutputPathType = TOutputPath;
64 using OutputPathPointer = typename OutputPathType::Pointer;
65 using OutputPathInputType = typename OutputPathType::InputType;
66 using OutputPathOutputType = typename OutputPathType::OutputType;
67 using OutputPathIndexType = typename OutputPathType::IndexType;
68 using OutputPathOffsetType = typename OutputPathType::OffsetType;
69
113
115 GetOutput(unsigned int idx);
116
151 // just calls GraftNthOutput()
152 virtual void
154
161 virtual void
162 GraftNthOutput(unsigned int idx, OutputPathType * graft);
163
182
183protected:
185 ~PathSource() override = default;
186 void
187 PrintSelf(std::ostream & os, Indent indent) const override;
188
189 // Inherit the empty ProcessObject::GenerateData()
190
191 // Inherit ProcessObject::PrepareOutputs(), which calls Initialize()
192 // (Image replaces w/ empty function)
193};
194} // end namespace itk
195
196#ifndef ITK_MANUAL_INSTANTIATION
197# include "itkPathSource.hxx"
198#endif
199
200#endif
SmartPointer< Self > Pointer
Control indentation during Print() invocation.
Definition itkIndent.h:50
PathSource Self
TOutputPath OutputPathType
typename OutputPathType::IndexType OutputPathIndexType
virtual void GraftOutput(OutputPathType *graft)
OutputPathType * GetOutput()
~PathSource() override=default
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
DataObject::Pointer DataObjectPointer
virtual void GraftNthOutput(unsigned int idx, OutputPathType *graft)
ProcessObject Superclass
OutputPathType * GetOutput(unsigned int idx)
SmartPointer< Self > Pointer
typename OutputPathType::OffsetType OutputPathOffsetType
typename OutputPathType::InputType OutputPathInputType
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
typename OutputPathType::Pointer OutputPathPointer
typename OutputPathType::OutputType OutputPathOutputType
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....