ITK  6.0.0
Insight Toolkit
itkGE4ImageIO.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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  *
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 {
59 class ITKIOGE_EXPORT GE4ImageIO : public IPLCommonImageIO
60 {
61 public:
62  ITK_DISALLOW_COPY_AND_MOVE(GE4ImageIO);
63 
65  using Self = GE4ImageIO;
68 
70  itkNewMacro(Self);
71 
73  itkOverrideGetNameOfClassMacro(GE4ImageIO);
74 
75  /*-------- This part of the interfaces deals with reading data. ----- */
76 
83  bool
84  CanReadFile(const char * FileNameToRead) override;
85 
87  // Implemented in superclass
88  // virtual void ReadImageInformation();
89 
91  // Implemented in superclass
92  // virtual const std::type_info& GetPixelType() const;
93 
95  // Implemented in superclass
96  // virtual void Read(void* buffer);
97 
101  // Implemented in superclass
102  // virtual unsigned int GetComponentSize() const;
103 
104  /*-------- This part of the interfaces deals with writing data. ----- */
105 
106  /* * Determine if the file can be written with this ImageIO implementation.
107  * \param FileNameToWrite The name of the file to test for writing.
108  * \author Hans J. Johnson
109  * \post Sets classes ImageIOBase::m_FileName variable to be FileNameToWrite
110  * \return Returns true if this ImageIO can write the file specified.
111  */
112  // Implemented in superclass
113  // virtual bool CanWriteFile(const char * FileNameToWrite);
114 
115  /* * Set the spacing and dimension information for the set filename. */
116  // Implemented in superclass
117  // virtual void WriteImageInformation();
118 
119  /* * Writes the data to disk from the memory buffer provided. Make sure
120  * that the IORegions has been set properly. */
121  // Implemented in superclass
122  // virtual void Write(const void* buffer);
123 
124 protected:
125  GE4ImageIO();
126  ~GE4ImageIO() override;
127  // Implemented in Superclass
128  // void PrintSelf(std::ostream& os, Indent indent) const;
129  GEImageHeader *
130  ReadHeader(const char * FileNameToRead) override;
131 
132 private:
133  float
134  MvtSunf(int numb);
135 };
136 } // end namespace itk
137 
138 #endif // itkGE4ImageIO_h
itkIPLCommonImageIO.h
This file was written as a modification to the itkMetaImageIO as a new method for reading in files fr...
itk::GE4ImageIO
Class that defines how to read GE4 file format.
Definition: itkGE4ImageIO.h:59
itk::SmartPointer< Self >
GEImageHeader
Definition: itkGEImageHeader.h:42
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::IPLCommonImageIO
Class that defines how to read GE4 file format.
Definition: itkIPLCommonImageIO.h:51
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:61
itk::MvtSunf
float MvtSunf(int numb)