ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkPathToChainCodePathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 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 
25 namespace itk
26 {
37 template< typename TInputPath, typename TOutputChainCodePath >
38 class ITK_TEMPLATE_EXPORT PathToChainCodePathFilter:public
39  PathToPathFilter< TInputPath, TOutputChainCodePath >
40 {
41 public:
47 
49  itkNewMacro(Self);
50 
53 
55  typedef TInputPath InputPathType;
56  typedef typename InputPathType::Pointer InputPathPointer;
57  typedef typename InputPathType::InputType InputPathInputType;
58  typedef TOutputChainCodePath OutputPathType;
59  typedef typename OutputPathType::Pointer OutputPathPointer;
60  typedef typename OutputPathType::InputType OutputPathInputType;
62  typedef typename InputPathType::OffsetType OffsetType;
63 
65  itkSetMacro(MaximallyConnected, bool)
66  itkGetConstMacro(MaximallyConnected, bool)
67  itkBooleanMacro(MaximallyConnected)
68 
69 protected:
71  virtual ~PathToChainCodePathFilter() ITK_OVERRIDE {}
72  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
73 
74  void GenerateData(void) ITK_OVERRIDE;
75 
76 private:
77  ITK_DISALLOW_COPY_AND_ASSIGN(PathToChainCodePathFilter);
78 
79  bool m_MaximallyConnected;
80 };
81 } // end namespace itk
82 
83 #ifndef ITK_MANUAL_INSTANTIATION
84 #include "itkPathToChainCodePathFilter.hxx"
85 #endif
86 
87 #endif
Filter that produces a chain code version of a path.
Light weight base class for most itk classes.
OutputPathType::InputType OutputPathInputType
Base class for filters that take a path as input and produce a path as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
PathToPathFilter< TInputPath, TOutputChainCodePath > Superclass