RTK  1.4.0
Reconstruction Toolkit
rtkHisImageIOFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright RTK Consortium
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  * http://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 
19 #ifndef rtkHisImageIOFactory_h
20 #define rtkHisImageIOFactory_h
21 
22 #include "RTKExport.h"
23 #include "rtkHisImageIO.h"
24 #include "rtkMacro.h"
25 
26 // itk include
27 #include <itkImageIOBase.h>
28 #include <itkObjectFactoryBase.h>
29 #include <itkVersion.h>
30 
31 namespace rtk
32 {
33 
41 class RTK_EXPORT HisImageIOFactory : public itk::ObjectFactoryBase
42 {
43 public:
49 
51  const char* GetITKSourceVersion(void) const ITK_OVERRIDE {
52  return ITK_SOURCE_VERSION;
53  }
54 
55  const char* GetDescription(void) const ITK_OVERRIDE {
56  return "His ImageIO Factory, allows the loading of His images into insight";
57  }
58 
60  itkFactorylessNewMacro(Self);
61 
64 
66  static void RegisterOneFactory(void) {
67  ObjectFactoryBase::RegisterFactory( Self::New() );
68  }
69 
70 protected:
72  virtual ~HisImageIOFactory() ITK_OVERRIDE {}
74  const myProductType* m_MyProduct;
75 
76 private:
77  HisImageIOFactory(const Self&); //purposely not implemented
78  void operator=(const Self&); //purposely not implemented
79 
80 };
81 
82 } // end namespace
83 
84 #endif /* end #define rtkHisImageIOFactory_h */
ITK factory for His file I/O.
#define ITK_SOURCE_VERSION
const myProductType * m_MyProduct
HisImageIOFactory myProductType
const char * GetITKSourceVersion(void) const override
itk::ObjectFactoryBase Superclass
itk::SmartPointer< const Self > ConstPointer
virtual ~HisImageIOFactory() override
itk::SmartPointer< Self > Pointer
const char * GetDescription(void) const override
static void RegisterOneFactory(void)