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 
41 template< class TAnyItkObject >
43 {
44 public:
45 
48  typedef TAnyItkObject AnyItkObjectType;
49 
53 
58 
61 
63  static ObjectPointer Creator( void )
64  {
65  return dynamic_cast< ObjectType * >( AnyItkObjectType::New().GetPointer() );
66  }
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 
80 };
81 
82 } // end namespace elastix
83 
84 #endif // end #ifndef __elxInstallFunctions_h
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 27-04-2014 for elastix by doxygen 1.8.6 elastix logo