ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPathToChainCodePathFilter.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 itkPathToChainCodePathFilter_h
19#define itkPathToChainCodePathFilter_h
20
21#include "itkPathToPathFilter.h"
22#include "itkOffset.h"
23// Templates require interfaces conforming to itkPath.h and itkChainCodePath.h
24
25namespace itk
26{
37template <typename TInputPath, typename TOutputChainCodePath>
38class ITK_TEMPLATE_EXPORT PathToChainCodePathFilter : public PathToPathFilter<TInputPath, TOutputChainCodePath>
39{
40public:
41 ITK_DISALLOW_COPY_AND_MOVE(PathToChainCodePathFilter);
42
48
50 itkNewMacro(Self);
51
53 itkOverrideGetNameOfClassMacro(PathToChainCodePathFilter);
54
56 using InputPathType = TInputPath;
57 using InputPathPointer = typename InputPathType::Pointer;
58 using InputPathInputType = typename InputPathType::InputType;
59 using OutputPathType = TOutputChainCodePath;
60 using OutputPathPointer = typename OutputPathType::Pointer;
61 using OutputPathInputType = typename OutputPathType::InputType;
62 using IndexType = typename InputPathType::IndexType;
63 using OffsetType = typename InputPathType::OffsetType;
64
67 itkSetMacro(MaximallyConnected, bool);
68 itkGetConstMacro(MaximallyConnected, bool);
69 itkBooleanMacro(MaximallyConnected);
71protected:
73 ~PathToChainCodePathFilter() override = default;
74 void
75 PrintSelf(std::ostream & os, Indent indent) const override;
76
77 void
78 GenerateData() override;
79
80private:
81 bool m_MaximallyConnected{ false };
82};
83} // end namespace itk
84
85#ifndef ITK_MANUAL_INSTANTIATION
86# include "itkPathToChainCodePathFilter.hxx"
87#endif
88
89#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
typename OutputPathType::InputType OutputPathInputType
typename InputPathType::Pointer InputPathPointer
void PrintSelf(std::ostream &os, Indent indent) const override
~PathToChainCodePathFilter() override=default
typename InputPathType::IndexType IndexType
typename InputPathType::OffsetType OffsetType
PathToPathFilter< TInputPath, TOutputChainCodePath > Superclass
typename OutputPathType::Pointer OutputPathPointer
typename InputPathType::InputType InputPathInputType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....