RTK  2.6.0
Reconstruction Toolkit
rtkOraImageIO.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  * 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 
19 #ifndef rtkOraImageIO_h
20 #define rtkOraImageIO_h
21 
22 // This is done to avoid any interference with zlib
23 #ifdef OF
24 # undef OF
25 #endif
26 
27 #include <itkMetaImageIO.h>
28 
29 #include "RTKExport.h"
30 #include "rtkMacro.h"
31 
32 namespace rtk
33 {
34 
45 class RTK_EXPORT OraImageIO : public itk::MetaImageIO
46 {
47 public:
49  using Self = OraImageIO;
52 
54  itkNewMacro(Self);
55 
57 #ifdef itkOverrideGetNameOfClassMacro
58  itkOverrideGetNameOfClassMacro(OraImageIO);
59 #else
60  itkTypeMacro(OraImageIO, itk::MetaImageIO);
61 #endif
62 
63 
64  /*-------- This part of the interface deals with reading data. ------ */
65 
68  bool
69  CanReadFile(const char * FileNameToRead) override;
70 
72  void
73  ReadImageInformation() override;
74 
76  void
77  Read(void * buffer) override;
78 
79  bool
80  CanWriteFile(const char * filename) override;
81 
82 protected:
83  std::string m_MetaFileName;
84 }; // end class OraImageIO
85 } // namespace rtk
86 
87 #endif /* end #define rtkOraImageIO_h */
std::string m_MetaFileName
Definition: rtkOraImageIO.h:83
Class for reading Ora Image file format.
Definition: rtkOraImageIO.h:45