Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkSurfaceVtkWriterFactory.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 mitkSurfaceVtkWriterFactory_h
14 #define mitkSurfaceVtkWriterFactory_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 SurfaceVtkWriterFactory : 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  SurfaceVtkWriterFactory::Pointer surfaceVtkWriterFactory = SurfaceVtkWriterFactory::New();
48  ObjectFactoryBase::RegisterFactory(surfaceVtkWriterFactory);
49  IsRegistered = true;
50  }
51  }
52 
53  protected:
55  ~SurfaceVtkWriterFactory() override;
56 
57  private:
58  SurfaceVtkWriterFactory(const Self &); // purposely not implemented
59  void operator=(const Self &); // purposely not implemented
60  };
61 
62 } // end namespace mitk
63 
64 #endif
DEPRECATED
#define DEPRECATED(func)
Definition: mitkCommon.h:175
MitkLegacyIOExports.h
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::SurfaceVtkWriterFactory::New
static Pointer New()
MITKLEGACYIO_EXPORT
#define MITKLEGACYIO_EXPORT
Definition: MitkLegacyIOExports.h:15
mitkBaseData.h
mitk::SurfaceVtkWriterFactory::RegisterOneFactory
static void RegisterOneFactory(void)
Definition: mitkSurfaceVtkWriterFactory.h:42
mitk::SurfaceVtkWriterFactory
Definition: mitkSurfaceVtkWriterFactory.h:26