Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVtiFileIOFactory.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef __mitkVtiFileIOFactory_h
17 #define __mitkVtiFileIOFactory_h
18 
19 #ifdef _MSC_VER
20 #pragma warning(disable : 4786)
21 #endif
22 
23 #include <MitkLegacyIOExports.h>
24 
25 #include "itkObjectFactoryBase.h"
26 #include "mitkBaseData.h"
27 
28 namespace mitk
29 {
30  //##Documentation
31  //## @brief Create instances of VtiFileReader objects using an object factory.
32  //##
33  //## @ingroup MitkLegacyIOModule
34  //## @deprecatedSince{2014_10} Use mitk::IOUtils or mitk::FileReaderRegistry instead.
35  class DEPRECATED() MITKLEGACYIO_EXPORT VtiFileIOFactory : public itk::ObjectFactoryBase
36  {
37  public:
40  typedef itk::ObjectFactoryBase Superclass;
43 
45  virtual const char *GetITKSourceVersion(void) const override;
46  virtual const char *GetDescription(void) const override;
47 
49  itkFactorylessNewMacro(Self);
50  static VtiFileIOFactory *FactoryNew() { return new VtiFileIOFactory; }
52  itkTypeMacro(VtiFileIOFactory, ObjectFactoryBase);
53 
58  DEPRECATED(static void RegisterOneFactory(void))
59  {
61  ObjectFactoryBase::RegisterFactory(VtiFileIOFactory);
62  }
63 
64  protected:
67 
68  private:
69  VtiFileIOFactory(const Self &); // purposely not implemented
70  void operator=(const Self &); // purposely not implemented
71  };
72 
73 } // end namespace mitk
74 
75 #endif
#define MITKLEGACYIO_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define DEPRECATED(func)
Definition: mitkCommon.h:183
static Pointer New()
itk::ObjectFactoryBase Superclass
Create instances of VtiFileReader objects using an object factory.
itk::SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
static VtiFileIOFactory * FactoryNew()
static void RegisterOneFactory(void)