RTK  1.4.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  * 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 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 "rtkMacro.h"
30 
31 namespace rtk
32 {
33 
45 {
46 public:
48  typedef OraImageIO Self;
51 
53  itkNewMacro(Self);
54 
56  itkTypeMacro(OraImageIO, itk::MetaImageIO);
57 
58  /*-------- This part of the interface deals with reading data. ------ */
59 
62  bool CanReadFile( const char* FileNameToRead ) ITK_OVERRIDE;
63 
65  void ReadImageInformation() ITK_OVERRIDE;
66 
68  void Read(void *buffer) ITK_OVERRIDE;
69 
70  bool CanWriteFile(const char* filename) ITK_OVERRIDE;
71 
72 protected:
74 }; // end class OraImageIO
75 }
76 
77 #endif /* end #define rtkOraImageIO_h */
bool CanWriteFile(const char *filename) override
STL namespace.
void Read(void *buffer) override
itk::SmartPointer< Self > Pointer
Definition: rtkOraImageIO.h:50
void ReadImageInformation() override
OraImageIO Self
Definition: rtkOraImageIO.h:48
std::string m_MetaFileName
Definition: rtkOraImageIO.h:73
bool CanReadFile(const char *FileNameToRead) override
itk::MetaImageIO Superclass
Definition: rtkOraImageIO.h:49
Class for reading Ora Image file format.
Definition: rtkOraImageIO.h:44