RTK  1.4.0
Reconstruction Toolkit
rtkHisImageIO.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 rtkHisImageIO_h
20 #define rtkHisImageIO_h
21 
22 // itk include
23 #include <itkImageIOBase.h>
24 #include "rtkMacro.h"
25 
26 namespace rtk
27 {
28 
39 {
40 public:
42  typedef HisImageIO Self;
45  typedef signed short int PixelType;
46 
47  HisImageIO() : Superclass() {
48  ;
49  }
50 
52  itkNewMacro(Self);
53 
55  itkTypeMacro(HisImageIO, itk::ImageIOBase);
56 
57  /*-------- This part of the interface deals with reading data. ------ */
58  void ReadImageInformation() ITK_OVERRIDE;
59 
60  bool CanReadFile( const char* FileNameToRead ) ITK_OVERRIDE;
61 
62  void Read(void * buffer) ITK_OVERRIDE;
63 
64  /*-------- This part of the interfaces deals with writing data. ----- */
65  virtual void WriteImageInformation(bool /*keepOfStream*/) {
66  ;
67  }
68 
69  void WriteImageInformation() ITK_OVERRIDE {
70  WriteImageInformation(false);
71  }
72 
73  bool CanWriteFile(const char* filename) ITK_OVERRIDE;
74 
75  void Write(const void* buffer) ITK_OVERRIDE;
76 
77 protected:
79 
80 }; // end class HisImageIO
81 } // end namespace
82 
83 #endif /* end #define rtkHisImageIO_h */
bool CanReadFile(const char *FileNameToRead) override
itk::ImageIOBase Superclass
Definition: rtkHisImageIO.h:43
HisImageIO Self
Definition: rtkHisImageIO.h:42
void ReadImageInformation() override
void Read(void *buffer) override
void Write(const void *buffer) override
itk::SmartPointer< Self > Pointer
Definition: rtkHisImageIO.h:44
bool CanWriteFile(const char *filename) override
void WriteImageInformation() override
Definition: rtkHisImageIO.h:69
virtual void WriteImageInformation(bool)
Definition: rtkHisImageIO.h:65
Class for reading His Image file format.
Definition: rtkHisImageIO.h:38
signed short int PixelType
Definition: rtkHisImageIO.h:45