ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkPathToChainCodePathFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkPathToChainCodePathFilter_h
00019 #define __itkPathToChainCodePathFilter_h
00020 
00021 #include "itkPathToPathFilter.h"
00022 #include "itkOffset.h"
00023 //Templates require interfaces conforming to itkPath.h and itkChainCodePath.h
00024 
00025 namespace itk
00026 {
00037 template< class TInputPath, class TOutputChainCodePath >
00038 class ITK_EXPORT PathToChainCodePathFilter:public
00039   PathToPathFilter< TInputPath, TOutputChainCodePath >
00040 {
00041 public:
00043   typedef PathToChainCodePathFilter                            Self;
00044   typedef PathToPathFilter< TInputPath, TOutputChainCodePath > Superclass;
00045   typedef SmartPointer< Self >                                 Pointer;
00046   typedef SmartPointer< const Self >                           ConstPointer;
00047 
00049   itkNewMacro(Self);
00050 
00052   itkTypeMacro(PathToChainCodePathFilter, PathToPathFilter);
00053 
00055   typedef TInputPath                         InputPathType;
00056   typedef typename InputPathType::Pointer    InputPathPointer;
00057   typedef typename InputPathType::InputType  InputPathInputType;
00058   typedef TOutputChainCodePath               OutputPathType;
00059   typedef typename OutputPathType::Pointer   OutputPathPointer;
00060   typedef typename OutputPathType::InputType OutputPathInputType;
00061   typedef typename InputPathType::IndexType  IndexType;
00062   typedef typename InputPathType::OffsetType OffsetType;
00063 
00065   itkSetMacro(MaximallyConnected, bool)
00066   itkBooleanMacro(MaximallyConnected)
00067 protected:
00068   PathToChainCodePathFilter();
00069   virtual ~PathToChainCodePathFilter() {}
00070   void PrintSelf(std::ostream & os, Indent indent) const;
00072 
00073   void GenerateData(void);
00074 
00075 private:
00076   PathToChainCodePathFilter(const Self &); //purposely not implemented
00077   void operator=(const Self &);            //purposely not implemented
00078 
00079   bool m_MaximallyConnected;
00080 };
00081 } // end namespace itk
00082 
00083 #ifndef ITK_MANUAL_INSTANTIATION
00084 #include "itkPathToChainCodePathFilter.hxx"
00085 #endif
00086 
00087 #endif
00088