00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __mitkVtkSurfaceIOFactory_h 00018 #define __mitkVtkSurfaceIOFactory_h 00019 00020 #ifdef _MSC_VER 00021 #pragma warning ( disable : 4786 ) 00022 #endif 00023 00024 #include "itkObjectFactoryBase.h" 00025 #include "mitkBaseData.h" 00026 00027 namespace mitk 00028 { 00029 //##Documentation 00030 //## @brief Create instances of VtkSurfaceReader objects using an object factory. 00031 //## 00032 //## @ingroup IO 00033 class MITK_CORE_EXPORT VtkSurfaceIOFactory : public itk::ObjectFactoryBase 00034 { 00035 public: 00037 typedef VtkSurfaceIOFactory Self; 00038 typedef itk::ObjectFactoryBase Superclass; 00039 typedef itk::SmartPointer<Self> Pointer; 00040 typedef itk::SmartPointer<const Self> ConstPointer; 00041 00043 virtual const char* GetITKSourceVersion(void) const; 00044 virtual const char* GetDescription(void) const; 00045 00047 itkFactorylessNewMacro(Self); 00048 static VtkSurfaceIOFactory* FactoryNew() { return new VtkSurfaceIOFactory;} 00050 itkTypeMacro(VtkSurfaceIOFactory, ObjectFactoryBase); 00051 00053 static void RegisterOneFactory(void) 00054 { 00055 VtkSurfaceIOFactory::Pointer VtkSurfaceIOFactory = VtkSurfaceIOFactory::New(); 00056 ObjectFactoryBase::RegisterFactory(VtkSurfaceIOFactory); 00057 } 00058 00059 protected: 00060 VtkSurfaceIOFactory(); 00061 ~VtkSurfaceIOFactory(); 00062 00063 private: 00064 VtkSurfaceIOFactory(const Self&); //purposely not implemented 00065 void operator=(const Self&); //purposely not implemented 00066 00067 }; 00068 00069 00070 } // end namespace mitk 00071 00072 #endif