ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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 * 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 rtkHisImageIO_h
20#define rtkHisImageIO_h
21
22// itk include
23#include "RTKExport.h"
24#include "rtkMacro.h"
25#include <itkImageIOBase.h>
26
27namespace rtk
28{
29
39class RTK_EXPORT HisImageIO : public itk::ImageIOBase
40{
41public:
46 using PixelType = signed short int;
47
49
51 itkNewMacro(Self);
52
54 itkOverrideGetNameOfClassMacro(HisImageIO);
55
56 /*-------- This part of the interface deals with reading data. ------ */
57 void
59
60 bool
61 CanReadFile(const char * FileNameToRead) override;
62
63 void
64 Read(void * buffer) override;
65
66 /*-------- This part of the interfaces deals with writing data. ----- */
67 virtual void
68 WriteImageInformation(bool /*keepOfStream*/)
69 {
70 ;
71 }
72
73 void
75 {
77 }
78
79 bool
80 CanWriteFile(const char * filename) override;
81
82 void
83 Write(const void * buffer) override;
84
85protected:
87
88}; // end class HisImageIO
89} // namespace rtk
90
91#endif /* end #define rtkHisImageIO_h */
Abstract superclass defines image IO interface.
Implements transparent reference counting.
HisImageIO Self
bool CanReadFile(const char *FileNameToRead) override
void ReadImageInformation() override
virtual void WriteImageInformation(bool)
void Write(const void *buffer) override
void WriteImageInformation() override
bool CanWriteFile(const char *filename) override
void Read(void *buffer) override
signed short int PixelType
itk::ImageIOBase Superclass
itk::SmartPointer< Self > Pointer