Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkImageWriterFactory.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 mitkImageWriterFactory_h
14 #define mitkImageWriterFactory_h
15 
16 #include <MitkLegacyIOExports.h>
17 
18 #include "itkObjectFactoryBase.h"
19 #include "mitkBaseData.h"
20 
21 namespace mitk
22 {
26  class DEPRECATED() MITKLEGACYIO_EXPORT ImageWriterFactory : public itk::ObjectFactoryBase
27  {
28  public:
29  mitkClassMacroItkParent(mitk::ImageWriterFactory, itk::ObjectFactoryBase);
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  ImageWriterFactory::Pointer imageWriterFactory = ImageWriterFactory::New();
48  ObjectFactoryBase::RegisterFactory(imageWriterFactory);
49  IsRegistered = true;
50  }
51  }
52 
53  protected:
55  ~ImageWriterFactory() override;
56 
57  private:
58  ImageWriterFactory(const Self &); // purposely not implemented
59  void operator=(const Self &); // purposely not implemented
60  };
61 
62 } // end namespace mitk
63 
64 #endif
mitk::ImageWriterFactory::New
static Pointer New()
DEPRECATED
#define DEPRECATED(func)
Definition: mitkCommon.h:175
mitk::ImageWriterFactory
Definition: mitkImageWriterFactory.h:26
MitkLegacyIOExports.h
mitk::ImageWriterFactory::RegisterOneFactory
static void RegisterOneFactory(void)
Definition: mitkImageWriterFactory.h:42
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MITKLEGACYIO_EXPORT
#define MITKLEGACYIO_EXPORT
Definition: MitkLegacyIOExports.h:15
mitkBaseData.h