go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxInstallFunctions.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 
15 #ifndef __elxInstallFunctions_h
16 #define __elxInstallFunctions_h
17 
18 #include "elxComponentDatabase.h"
19 
20 namespace elastix
21 {
22 
23 
42  template<class TAnyItkObject>
44  {
45  public:
46 
49  typedef TAnyItkObject AnyItkObjectType;
50 
54 
59 
62 
64  static ObjectPointer Creator(void)
65  {
66  return dynamic_cast< ObjectType * >( AnyItkObjectType::New().GetPointer() );
67  }
68 
72  static int InstallComponent(
73  const ComponentDescriptionType & name,
74  IndexType i, ComponentDatabase * cdb )
75  {
76  return cdb->SetCreator( name, i, Self::Creator );
77  }
78 
79  }; // end class InstallFunctions
80 
81 
82 } // end namespace elastix
83 
84 
85 #endif // end #ifndef __elxInstallFunctions_h
86 
ComponentDatabase::ObjectType ObjectType
A class with functions that are used to install elastix components.
ComponentDatabase::ObjectPointer ObjectPointer
static int InstallComponent(const ComponentDescriptionType &name, IndexType i, ComponentDatabase *cdb)
ComponentDatabase::IndexType IndexType
ComponentDatabase::ComponentDescriptionType ComponentDescriptionType
static ObjectPointer Creator(void)
The ComponentDatabase class is a class that stores the New() functions of all components.
int SetCreator(const ComponentDescriptionType &name, IndexType i, PtrToCreator creator)
ObjectType::Pointer ObjectPointer


Generated on 05-12-2013 for elastix by doxygen 1.8.5 elastix logo