Shapeworks Studio  2.1
Shape analysis software suite
itkIncludeRequiredIOFactories.h
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkIncludeRequiredIOFactories.h
5  Language: C++
6  Date: $Date$
7  Version: $Revision$
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  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 
18 #ifndef __itkTestDriverIncludeRequiredIOFactories_h
19 #define __itkTestDriverIncludeRequiredIOFactories_h
20 #include "itkGDCMImageIOFactory.h"
21 #include "itkMetaImageIOFactory.h"
22 #include "itkObjectFactoryBase.h"
23 #include "itkNrrdImageIOFactory.h"
24 
26 void RegisterRequiredFactories(){
27  itk::ObjectFactoryBase::RegisterFactory( itk::MetaImageIOFactory::New() );
28  itk::ObjectFactoryBase::RegisterFactory( itk::GDCMImageIOFactory::New() );
29  itk::ObjectFactoryBase::RegisterFactory( itk::NrrdImageIOFactory::New() );
30 }
31 
32 #endif