ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkTransformMeshFilter.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 __itkTransformMeshFilter_h
00019 #define __itkTransformMeshFilter_h
00020 
00021 #include "itkMeshToMeshFilter.h"
00022 #include "itkTransform.h"
00023 
00024 namespace itk
00025 {
00041 template< class TInputMesh, class TOutputMesh, class TTransform >
00042 class ITK_EXPORT TransformMeshFilter:
00043   public MeshToMeshFilter< TInputMesh, TOutputMesh >
00044 {
00045 public:
00047   typedef TransformMeshFilter                         Self;
00048   typedef MeshToMeshFilter< TInputMesh, TOutputMesh > Superclass;
00049   typedef SmartPointer< Self >                        Pointer;
00050   typedef SmartPointer< const Self >                  ConstPointer;
00051 
00052   typedef TInputMesh                       InputMeshType;
00053   typedef TOutputMesh                      OutputMeshType;
00054   typedef typename InputMeshType::Pointer  InputMeshPointer;
00055   typedef typename OutputMeshType::Pointer OutputMeshPointer;
00056 
00058   typedef typename TInputMesh::CoordRepType CoordRepType;
00059 
00061   typedef TTransform TransformType;
00062 
00064   itkNewMacro(Self);
00065 
00067   itkTypeMacro(TransformMeshFilter, MeshToMeshFilter);
00068 
00070   itkSetObjectMacro(Transform, TransformType);
00071 
00073   itkGetObjectMacro(Transform, TransformType);
00074 protected:
00075   TransformMeshFilter();
00076   ~TransformMeshFilter() {}
00077   void PrintSelf(std::ostream & os, Indent indent) const;
00079 
00081   virtual void GenerateData(void);
00082 
00084   typename TransformType::Pointer m_Transform;
00085 private:
00086   TransformMeshFilter(const TransformMeshFilter &); //purposely not implemented
00087   void operator=(const TransformMeshFilter &);      //purposely not implemented
00088 };
00089 } // end namespace itk
00091 
00092 #ifndef ITK_MANUAL_INSTANTIATION
00093 #include "itkTransformMeshFilter.hxx"
00094 #endif
00095 
00096 #endif
00097