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