KWStyle - itkTransformFactory.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkTransformFactory.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:48 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12   Portions of this code are covered under the VTK copyright.
13   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
14
15      This software is distributed WITHOUT ANY WARRANTY; without even 
16      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
17 IND *****PURPOSE.  See the above copyright notices for more information.
18
19 =========================================================================*/
20 #ifndef __itkTransformFactory_h
21 #define __itkTransformFactory_h
22
23 #include "itkTransformFactoryBase.h"
24
25 namespace itk
26 {
27 /** \class TransformFactory
28  * \brief Create instances of Transforms
29  */
30
31 template <class T>
32 class TransformFactory : public TransformFactoryBase
33 {
34 public:  
35   static void RegisterTransform ()
36     {
37     typename T::Pointer t = T::New();
38 LEN     // std::cout << "Registering: " << t->GetTransformTypeAsString() << std::endl;
39     TransformFactoryBase::Pointer f = TransformFactoryBase::GetFactory();
40     f->RegisterTransform ( t->GetTransformTypeAsString().c_str(),
41 IND ***************************t->GetTransformTypeAsString().c_str(),
42 IND ***************************t->GetTransformTypeAsString().c_str(),
43 IND ***************************1,
44 IND ***************************CreateObjectFunction<T>::New() );
45     };
46 };
47 // end namespace itk
48
49 #endif
50

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:50PM
© Kitware Inc.