mitk::CoreObjectFactory::CoreObjectFactory() : m_PointSetIOFactory(PointSetIOFactory::New().GetPointer()) , m_STLFileIOFactory(STLFileIOFactory::New().GetPointer()) , m_VtkSurfaceIOFactory(VtkSurfaceIOFactory::New().GetPointer()) , m_VtkImageIOFactory(VtkImageIOFactory::New().GetPointer()) , m_VtiFileIOFactory(VtiFileIOFactory::New().GetPointer()) , m_ItkImageFileIOFactory(ItkImageFileIOFactory::New().GetPointer()) , m_SurfaceVtkWriterFactory(SurfaceVtkWriterFactory::New().GetPointer()) , m_PointSetWriterFactory(PointSetWriterFactory::New().GetPointer()) , m_ImageWriterFactory(ImageWriterFactory::New().GetPointer()) { static bool alreadyDone = false; if (!alreadyDone) { MITK_DEBUG << "CoreObjectFactory c'tor" << std::endl; itk::ObjectFactoryBase::RegisterFactory( m_PointSetIOFactory ); itk::ObjectFactoryBase::RegisterFactory( m_STLFileIOFactory ); itk::ObjectFactoryBase::RegisterFactory( m_VtkSurfaceIOFactory ); itk::ObjectFactoryBase::RegisterFactory( m_VtkImageIOFactory ); itk::ObjectFactoryBase::RegisterFactory( m_VtiFileIOFactory ); itk::ObjectFactoryBase::RegisterFactory( m_ItkImageFileIOFactory ); itk::ObjectFactoryBase::RegisterFactory( m_SurfaceVtkWriterFactory ); itk::ObjectFactoryBase::RegisterFactory( m_PointSetWriterFactory ); itk::ObjectFactoryBase::RegisterFactory( m_ImageWriterFactory ); m_FileWriters.push_back(mitk::ImageWriter::New().GetPointer()); CreateFileExtensionsMap(); alreadyDone = true; } }
mitk::DiffusionCoreObjectFactory::DiffusionCoreObjectFactory() : CoreObjectFactoryBase() , m_NrrdDiffusionImageIOFactory(mitk::NrrdDiffusionImageIOFactory::New().GetPointer()) , m_NrrdQBallImageIOFactory(mitk::NrrdQBallImageIOFactory::New().GetPointer()) , m_NrrdTensorImageIOFactory(mitk::NrrdTensorImageIOFactory::New().GetPointer()) , m_NrrdDiffusionImageWriterFactory(mitk::NrrdDiffusionImageWriterFactory::New().GetPointer()) , m_NrrdQBallImageWriterFactory(mitk::NrrdQBallImageWriterFactory::New().GetPointer()) , m_NrrdTensorImageWriterFactory(mitk::NrrdTensorImageWriterFactory::New().GetPointer()) { static bool alreadyDone = false; if (!alreadyDone) { MITK_DEBUG << "DiffusionCoreObjectFactory c'tor" << std::endl; itk::ObjectFactoryBase::RegisterFactory(m_NrrdDiffusionImageIOFactory); itk::ObjectFactoryBase::RegisterFactory(m_NrrdQBallImageIOFactory); itk::ObjectFactoryBase::RegisterFactory(m_NrrdTensorImageIOFactory); itk::ObjectFactoryBase::RegisterFactory(m_NrrdDiffusionImageWriterFactory); itk::ObjectFactoryBase::RegisterFactory(m_NrrdQBallImageWriterFactory); itk::ObjectFactoryBase::RegisterFactory(m_NrrdTensorImageWriterFactory); m_FileWriters.push_back( NrrdDiffusionImageWriter<DiffusionPixelType>::New().GetPointer() ); m_FileWriters.push_back( NrrdQBallImageWriter::New().GetPointer() ); m_FileWriters.push_back( NrrdTensorImageWriter::New().GetPointer() ); CreateFileExtensionsMap(); alreadyDone = true; } }
mitk::CoreExtObjectFactory::CoreExtObjectFactory() :CoreObjectFactoryBase() { static bool alreadyDone = false; if (!alreadyDone) { MITK_DEBUG << "CoreExtObjectFactory c'tor" << std::endl; RegisterIOFactories(); itk::ObjectFactoryBase::RegisterFactory( ParRecFileIOFactory::New() ); itk::ObjectFactoryBase::RegisterFactory( ObjFileIOFactory::New() ); itk::ObjectFactoryBase::RegisterFactory( VtkUnstructuredGridIOFactory::New() ); itk::ObjectFactoryBase::RegisterFactory( StlVolumeTimeSeriesIOFactory::New() ); itk::ObjectFactoryBase::RegisterFactory( VtkVolumeTimeSeriesIOFactory::New() ); mitk::UnstructuredGridVtkWriterFactory::RegisterOneFactory(); m_FileWriters.push_back(mitk::UnstructuredGridVtkWriter<vtkUnstructuredGridWriter>::New().GetPointer()); m_FileWriters.push_back(mitk::UnstructuredGridVtkWriter<vtkXMLUnstructuredGridWriter>::New().GetPointer()); m_FileWriters.push_back(mitk::UnstructuredGridVtkWriter<vtkXMLPUnstructuredGridWriter>::New().GetPointer()); CreateFileExtensionsMap(); alreadyDone = true; } }
mitk::DiffusionCoreObjectFactory::DiffusionCoreObjectFactory(bool /*registerSelf*/) :CoreObjectFactoryBase() { static bool alreadyDone = false; if (!alreadyDone) { MITK_DEBUG << "DiffusionCoreObjectFactory c'tor" << std::endl; RegisterIOFactories(); mitk::NrrdDiffusionImageIOFactory::RegisterOneFactory(); mitk::NrrdQBallImageIOFactory::RegisterOneFactory(); mitk::NrrdTensorImageIOFactory::RegisterOneFactory(); mitk::NrrdDiffusionImageWriterFactory::RegisterOneFactory(); mitk::NrrdQBallImageWriterFactory::RegisterOneFactory(); mitk::NrrdTensorImageWriterFactory::RegisterOneFactory(); m_FileWriters.push_back( NrrdDiffusionImageWriter<DiffusionPixelType>::New().GetPointer() ); m_FileWriters.push_back( NrrdQBallImageWriter::New().GetPointer() ); m_FileWriters.push_back( NrrdTensorImageWriter::New().GetPointer() ); mitk::CoreObjectFactory::GetInstance()->RegisterExtraFactory(this); CreateFileExtensionsMap(); alreadyDone = true; } }
mitk::TubeGraphObjectFactory::TubeGraphObjectFactory() : CoreObjectFactoryBase() { static bool alreadyDone = false; if (!alreadyDone) { MITK_INFO << "TubeGraphObjectFactory c'tor" << std::endl; CreateFileExtensionsMap(); alreadyDone = true; } }
void mitk::SegmentationObjectFactory::RegisterIOFactories() { //register io classes of mitkContourModel mitk::ContourModelIOFactory::RegisterOneFactory(); mitk::ContourModelWriterFactory::RegisterOneFactory(); this->m_FileWriters.push_back(mitk::ContourModelWriter::New().GetPointer()); CreateFileExtensionsMap(); }
mitk::CoreObjectFactory::CoreObjectFactory() { static bool alreadyDone = false; if (!alreadyDone) { CreateFileExtensionsMap(); // RegisterLegacyReaders(this); // RegisterLegacyWriters(this); alreadyDone = true; } }
mitk::PlanarFigureObjectFactory::PlanarFigureObjectFactory() : m_PlanarFigureIOFactory(PlanarFigureIOFactory::New().GetPointer()), m_PlanarFigureWriterFactory(PlanarFigureWriterFactory::New().GetPointer()) { static bool alreadyDone = false; if (!alreadyDone) { itk::ObjectFactoryBase::RegisterFactory(m_PlanarFigureIOFactory); itk::ObjectFactoryBase::RegisterFactory(m_PlanarFigureWriterFactory); m_FileWriters.push_back(PlanarFigureWriter::New().GetPointer()); CreateFileExtensionsMap(); alreadyDone = true; } }
mitk::PlanarFigureObjectFactory::PlanarFigureObjectFactory() { static bool alreadyDone = false; if ( !alreadyDone ) { MITK_INFO << "PlanarFigureObjectFactory c'tor" << std::endl; RegisterIOFactories(); itk::ObjectFactoryBase::RegisterFactory( PlanarFigureIOFactory::New() ); PlanarFigureWriterFactory::RegisterOneFactory(); m_FileWriters.push_back( PlanarFigureWriter::New().GetPointer() ); mitk::CoreObjectFactory::GetInstance()->RegisterExtraFactory(this); CreateFileExtensionsMap(); alreadyDone = true; } }