Medical Imaging Interaction Toolkit  2025.12.02
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:
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
#define MITKLEGACYIO_EXPORT
static Pointer New()
static void RegisterOneFactory(void)
~ImageWriterFactory() override
const char * GetITKSourceVersion(void) const override
const char * GetDescription(void) const override
mitkClassMacroItkParent(mitk::ImageWriterFactory, itk::ObjectFactoryBase)
#define DEPRECATED(func)
Definition: mitkCommon.h:175
Find image slices visible on a given plane.