ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkXRadImageIO.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 rtkXRadImageIO_h
20#define rtkXRadImageIO_h
21
22#include <cstring>
23#include <fstream>
24#include <itkImageIOBase.h>
25
26#include "RTKExport.h"
27#include "rtkMacro.h"
28
29namespace rtk
30{
31
41class RTK_EXPORT XRadImageIO : public itk::ImageIOBase
42{
43public:
48
50
52 itkNewMacro(Self);
53
55 itkOverrideGetNameOfClassMacro(XRadImageIO);
56
57 /*-------- This part of the interface deals with reading data. ------ */
58 void
60
61 bool
62 CanReadFile(const char * FileNameToRead) override;
63
64 void
65 Read(void * buffer) override;
66
67 /*-------- This part of the interfaces deals with writing data. ----- */
68 virtual void
69 WriteImageInformation(bool keepOfStream);
70
71 void
73 {
75 }
76
77 bool
78 CanWriteFile(const char * filename) override;
79
80 void
81 Write(const void * buffer) override;
82
83protected:
84}; // end class XRadImageIO
85
86} // namespace rtk
87
88#endif
Abstract superclass defines image IO interface.
Implements transparent reference counting.
bool CanReadFile(const char *FileNameToRead) override
void Write(const void *buffer) override
itk::SmartPointer< Self > Pointer
virtual void WriteImageInformation(bool keepOfStream)
void WriteImageInformation() override
bool CanWriteFile(const char *filename) override
void Read(void *buffer) override
void ReadImageInformation() override
itk::ImageIOBase Superclass