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{
39
40template <typename TOutputPath>
41class ITK_TEMPLATE_EXPORT PathSource : public ProcessObject
42{
43public:
44 ITK_DISALLOW_COPY_AND_MOVE(PathSource);
45
51
54
56 itkNewMacro(Self);
57
59 itkOverrideGetNameOfClassMacro(PathSource);
60
62 using OutputPathType = TOutputPath;
63 using OutputPathPointer = typename OutputPathType::Pointer;
64 using OutputPathInputType = typename OutputPathType::InputType;
65 using OutputPathOutputType = typename OutputPathType::OutputType;
66 using OutputPathIndexType = typename OutputPathType::IndexType;
67 using OutputPathOffsetType = typename OutputPathType::OffsetType;
68
112
114 GetOutput(unsigned int idx);
116
151 // just calls GraftNthOutput()
152 virtual void
154
161 virtual void
162 GraftNthOutput(unsigned int idx, OutputPathType * graft);
163
183
184protected:
186 ~PathSource() override = default;
187 void
188 PrintSelf(std::ostream & os, Indent indent) const override;
189
190 // Inherit the empty ProcessObject::GenerateData()
191
192 // Inherit ProcessObject::PrepareOutputs(), which calls Initialize()
193 // (Image replaces w/ empty function)
194};
195} // end namespace itk
196
197#ifndef ITK_MANUAL_INSTANTIATION
198# include "itkPathSource.hxx"
199#endif
200
201#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....