Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkPointSetWriterFactory.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef POINTSETWRITERFACTORY_H_HEADER_INCLUDED
14 #define POINTSETWRITERFACTORY_H_HEADER_INCLUDED
15 
16 #include <MitkLegacyIOExports.h>
17 
18 #include "itkObjectFactoryBase.h"
19 #include "mitkBaseData.h"
20 
21 namespace mitk
22 {
26  class DEPRECATED() MITKLEGACYIO_EXPORT PointSetWriterFactory : public itk::ObjectFactoryBase
27  {
28  public:
30 
32  const char *GetITKSourceVersion(void) const override;
33  const char *GetDescription(void) const override;
34 
36  itkFactorylessNewMacro(Self);
37 
42  DEPRECATED(static void RegisterOneFactory(void))
43  {
44  static bool IsRegistered = false;
45  if (!IsRegistered)
46  {
47  PointSetWriterFactory::Pointer pointSetWriterFactory = PointSetWriterFactory::New();
48  ObjectFactoryBase::RegisterFactory(pointSetWriterFactory);
49  IsRegistered = true;
50  }
51  }
52 
53  protected:
55  ~PointSetWriterFactory() override;
56 
57  private:
58  PointSetWriterFactory(const Self &); // purposely not implemented
59  void operator=(const Self &); // purposely not implemented
60  };
61 
62 } // end namespace mitk
63 
64 #endif
#define MITKLEGACYIO_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define DEPRECATED(func)
Definition: mitkCommon.h:179
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49