ITK  4.13.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:
62  typedef GE4ImageIO Self;
65 
67  itkNewMacro(Self);
68 
70  itkTypeMacro(GE4ImageIO, Superclass);
71 
72  /*-------- This part of the interfaces deals with reading data. ----- */
73 
80  virtual bool CanReadFile(const char *FileNameToRead) ITK_OVERRIDE;
81 
83  // Implemented in superclass
84  // virtual void ReadImageInformation();
85 
87  // Implemented in superclass
88  // virtual const std::type_info& GetPixelType() const;
89 
91  // Implemented in superclass
92  // virtual void Read(void* buffer);
93 
97  // Implemented in superclass
98  // virtual unsigned int GetComponentSize() const;
99 
100  /*-------- This part of the interfaces deals with writing data. ----- */
101 
102  /* * Determine if the file can be written with this ImageIO implementation.
103  * \param FileNameToWrite The name of the file to test for writing.
104  * \author Hans J. Johnson
105  * \post Sets classes ImageIOBase::m_FileName variable to be FileNameToWrite
106  * \return Returns true if this ImageIO can write the file specified.
107  */
108  // Implemented in superclass
109  // virtual bool CanWriteFile(const char * FileNameToWrite);
110 
111  /* * Set the spacing and dimension information for the set filename. */
112  // Implemented in superclass
113  // virtual void WriteImageInformation();
114 
115  /* * Writes the data to disk from the memory buffer provided. Make sure
116  * that the IORegions has been set properly. */
117  // Implemented in superclass
118  // virtual void Write(const void* buffer);
119 
120 protected:
121  GE4ImageIO();
122  ~GE4ImageIO() ITK_OVERRIDE;
123  // Implemented in Superclass
124  // void PrintSelf(std::ostream& os, Indent indent) const;
125  virtual GEImageHeader * ReadHeader(const char *FileNameToRead) ITK_OVERRIDE;
126 
127 private:
128  ITK_DISALLOW_COPY_AND_ASSIGN(GE4ImageIO);
129 
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.
GE4ImageIO Self
Definition: itkGE4ImageIO.h:62
SmartPointer< Self > Pointer
Definition: itkGE4ImageIO.h:64
IPLCommonImageIO Superclass
Definition: itkGE4ImageIO.h:63
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:59