ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkTestDriverIncludeRequiredIOFactories.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 __itkTestDriverIncludeRequiredIOFactories_h
00019 #define __itkTestDriverIncludeRequiredIOFactories_h
00020 #include "itkGDCMImageIOFactory.h"
00021 #include "itkMetaImageIOFactory.h"
00022 #include "itkJPEGImageIOFactory.h"
00023 #include "itkPNGImageIOFactory.h"
00024 #include "itkTIFFImageIOFactory.h"
00025 #include "itkBMPImageIOFactory.h"
00026 #include "itkVTKImageIOFactory.h"
00027 #include "itkNrrdImageIOFactory.h"
00028 #include "itkGiplImageIOFactory.h"
00029 #include "itkNiftiImageIOFactory.h"
00030 #include "itkTestDriverInclude.h"
00031 #include "itkObjectFactoryBase.h"
00032 
00033 void RegisterRequiredFactories(){
00034   itk::ObjectFactoryBase::RegisterFactory( itk::MetaImageIOFactory::New() );
00035   itk::ObjectFactoryBase::RegisterFactory( itk::GDCMImageIOFactory::New() );
00036   itk::ObjectFactoryBase::RegisterFactory( itk::JPEGImageIOFactory::New() );
00037   itk::ObjectFactoryBase::RegisterFactory( itk::VTKImageIOFactory::New() );
00038   itk::ObjectFactoryBase::RegisterFactory( itk::PNGImageIOFactory::New() );
00039   itk::ObjectFactoryBase::RegisterFactory( itk::TIFFImageIOFactory::New() );
00040   itk::ObjectFactoryBase::RegisterFactory( itk::BMPImageIOFactory::New() );
00041   itk::ObjectFactoryBase::RegisterFactory( itk::NrrdImageIOFactory::New() );
00042   itk::ObjectFactoryBase::RegisterFactory( itk::GiplImageIOFactory::New() );
00043   itk::ObjectFactoryBase::RegisterFactory( itk::NiftiImageIOFactory::New() );
00044 }
00045 
00046 void ProcessArgumentsAndRegisterRequiredFactories(int *ac, ArgumentStringType *av)
00047 {
00048   RegisterRequiredFactories();
00049   ProcessArguments( ac, av );
00050 
00051 }
00052 #endif
00053