ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
32namespace rtk
33{
34
45class RTK_EXPORT OraImageIO : public itk::MetaImageIO
46{
47public:
52
54 itkNewMacro(Self);
55
57 itkOverrideGetNameOfClassMacro(OraImageIO);
58
59 /*-------- This part of the interface deals with reading data. ------ */
60
63 bool
64 CanReadFile(const char * FileNameToRead) override;
65
67 void
69
71 void
72 Read(void * buffer) override;
73
74 bool
75 CanWriteFile(const char * filename) override;
76
77protected:
78 std::string m_MetaFileName;
79}; // end class OraImageIO
80} // namespace rtk
81
82#endif /* end #define rtkOraImageIO_h */
Read MetaImage file format.
Implements transparent reference counting.
Class for reading Ora Image file format.
itk::MetaImageIO Superclass
void Read(void *buffer) override
bool CanWriteFile(const char *filename) override
OraImageIO Self
bool CanReadFile(const char *FileNameToRead) override
std::string m_MetaFileName
void ReadImageInformation() override
itk::SmartPointer< Self > Pointer