Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkSTLFileIOFactory.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 __mitkSTLFileIOFactory_h
17 #define __mitkSTLFileIOFactory_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 STLFileReader 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 STLFileIOFactory : 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 STLFileIOFactory *FactoryNew() { return new STLFileIOFactory; }
52  itkTypeMacro(STLFileIOFactory, ObjectFactoryBase);
53 
58  DEPRECATED(static void RegisterOneFactory(void))
59  {
61  ObjectFactoryBase::RegisterFactory(STLFileIOFactory);
62  }
63 
64  protected:
67 
68  private:
69  STLFileIOFactory(const Self &); // purposely not implemented
70  void operator=(const Self &); // purposely not implemented
71  };
72 
73 } // end namespace mitk
74 
75 #endif
itk::ObjectFactoryBase Superclass
#define MITKLEGACYIO_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< const Self > ConstPointer
static Pointer New()
#define DEPRECATED(func)
Definition: mitkCommon.h:183
itk::SmartPointer< Self > Pointer
static STLFileIOFactory * FactoryNew()
Create instances of STLFileReader objects using an object factory.
static void RegisterOneFactory(void)