ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkGE4ImageIO.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software 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  *
20  * Portions of this file are subject to the VTK Toolkit Version 3 copyright.
21  *
22  * Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
23  *
24  * For complete copyright, license and disclaimer of warranty information
25  * please refer to the NOTICE file at the top of the ITK source tree.
26  *
27  *=========================================================================*/
42 #ifndef itkGE4ImageIO_h
43 #define itkGE4ImageIO_h
44 #include "ITKIOGEExport.h"
45 
46 #include "itkIPLCommonImageIO.h"
47 
48 namespace itk
49 {
58 class ITKIOGE_EXPORT GE4ImageIO:public IPLCommonImageIO
59 {
60 public:
61  ITK_DISALLOW_COPY_AND_ASSIGN(GE4ImageIO);
62 
64  using Self = GE4ImageIO;
67 
69  itkNewMacro(Self);
70 
72  itkTypeMacro(GE4ImageIO, Superclass);
73 
74  /*-------- This part of the interfaces deals with reading data. ----- */
75 
82  bool CanReadFile(const char *FileNameToRead) override;
83 
85  // Implemented in superclass
86  // virtual void ReadImageInformation();
87 
89  // Implemented in superclass
90  // virtual const std::type_info& GetPixelType() const;
91 
93  // Implemented in superclass
94  // virtual void Read(void* buffer);
95 
99  // Implemented in superclass
100  // virtual unsigned int GetComponentSize() const;
101 
102  /*-------- This part of the interfaces deals with writing data. ----- */
103 
104  /* * Determine if the file can be written with this ImageIO implementation.
105  * \param FileNameToWrite The name of the file to test for writing.
106  * \author Hans J. Johnson
107  * \post Sets classes ImageIOBase::m_FileName variable to be FileNameToWrite
108  * \return Returns true if this ImageIO can write the file specified.
109  */
110  // Implemented in superclass
111  // virtual bool CanWriteFile(const char * FileNameToWrite);
112 
113  /* * Set the spacing and dimension information for the set filename. */
114  // Implemented in superclass
115  // virtual void WriteImageInformation();
116 
117  /* * Writes the data to disk from the memory buffer provided. Make sure
118  * that the IORegions has been set properly. */
119  // Implemented in superclass
120  // virtual void Write(const void* buffer);
121 
122 protected:
123  GE4ImageIO();
124  ~GE4ImageIO() override;
125  // Implemented in Superclass
126  // void PrintSelf(std::ostream& os, Indent indent) const;
127  GEImageHeader * ReadHeader(const char *FileNameToRead) override;
128 
129 private:
130  float MvtSunf(int numb);
131 
132 };
133 } // end namespace itk
134 
135 #endif // itkGE4ImageIO_h
Light weight base class for most itk classes.
Class that defines how to read GE4 file format.
float MvtSunf(int numb)
This file was written as a modification to the itkMetaImageIO as a new method for reading in files fr...
Class that defines how to read GE4 file format.
Definition: itkGE4ImageIO.h:58
Base class for most ITK classes.
Definition: itkObject.h:60