Slicer  5.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
itkMRMLIDImageIOFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * https://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkMRMLIDImageIOFactory_h
19 #define itkMRMLIDImageIOFactory_h
20 
21 #include "itkObjectFactoryBase.h"
22 #include "itkImageIOBase.h"
23 
24 #include "itkMRMLIDImageIO.h"
25 
26 #include "itkMRMLIDIOExport.h"
27 
28 namespace itk
29 {
33 class MRMLIDImageIO_EXPORT MRMLIDImageIOFactory : public ObjectFactoryBase
34 {
35 public:
38  typedef ObjectFactoryBase Superclass;
39  typedef SmartPointer<Self> Pointer;
40  typedef SmartPointer<const Self> ConstPointer;
41 
43  const char* GetITKSourceVersion() const override;
44  const char* GetDescription() const override;
45 
47  itkFactorylessNewMacro(Self);
49 
51  itkTypeMacro(MRMLIDImageIOFactory, ObjectFactoryBase);
52 
54  static void RegisterOneFactory()
55  {
56  MRMLIDImageIOFactory::Pointer nrrdFactory = MRMLIDImageIOFactory::New();
57  ObjectFactoryBase::RegisterFactory(nrrdFactory);
58  }
59 
60 protected:
62  ~MRMLIDImageIOFactory() override;
63 
64 private:
65  MRMLIDImageIOFactory(const Self&) = delete;
66  void operator=(const Self&) = delete;
67 
68 };
69 
70 
71 }
72 
73 #endif
Simplified inverse ITK transforms.
SmartPointer< const Self > ConstPointer
Create instances of MRMLIDImageIO objects using an object factory.
static MRMLIDImageIOFactory * FactoryNew()
#define MRMLIDImageIO_EXPORT