ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkGE4ImageIO.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 /*=========================================================================
00019  *
00020  *  Portions of this file are subject to the VTK Toolkit Version 3 copyright.
00021  *
00022  *  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00023  *
00024  *  For complete copyright, license and disclaimer of warranty information
00025  *  please refer to the NOTICE file at the top of the ITK source tree.
00026  *
00027  *=========================================================================*/
00042 #ifndef __itkGE4ImageIO_h
00043 #define __itkGE4ImageIO_h
00044 
00045 #include "itkIPLCommonImageIO.h"
00046 
00047 namespace itk
00048 {
00057 class ITK_EXPORT GE4ImageIO:public IPLCommonImageIO
00058 {
00059 public:
00061   typedef GE4ImageIO           Self;
00062   typedef IPLCommonImageIO     Superclass;
00063   typedef SmartPointer< Self > Pointer;
00064 
00066   itkNewMacro(Self);
00067 
00069   itkTypeMacro(GE4ImageIO, Superclass);
00070 
00071   /*-------- This part of the interfaces deals with reading data. ----- */
00072 
00079   virtual bool CanReadFile(const char *FileNameToRead);
00080 
00082   // Implemented in superclass
00083   //      virtual void ReadImageInformation();
00084 
00086   // Implemented in superclass
00087   // virtual const std::type_info& GetPixelType() const;
00088 
00090   // Implemented in superclass
00091   //      virtual void Read(void* buffer);
00092 
00096   // Implemented in superclass
00097   // virtual unsigned int GetComponentSize() const;
00098 
00099   /*-------- This part of the interfaces deals with writing data. ----- */
00100 
00101   /* * Determine if the file can be written with this ImageIO implementation.
00102    * \param FileNameToWrite The name of the file to test for writing.
00103    * \author Hans J. Johnson
00104    * \post Sets classes ImageIOBase::m_FileName variable to be FileNameToWrite
00105    * \return Returns true if this ImageIO can write the file specified.
00106   */
00107   // Implemented in superclass
00108   // virtual bool CanWriteFile(const char * FileNameToWrite);
00109 
00110   /* * Set the spacing and dimension information for the set filename. */
00111   // Implemented in superclass
00112   // virtual void WriteImageInformation();
00113 
00114   /* * Writes the data to disk from the memory buffer provided. Make sure
00115    * that the IORegions has been set properly. */
00116   // Implemented in superclass
00117   // virtual void Write(const void* buffer);
00118 protected:
00119   GE4ImageIO();
00120   ~GE4ImageIO();
00121   // Implemented in Superclass
00122   // void PrintSelf(std::ostream& os, Indent indent) const;
00123   virtual GEImageHeader * ReadHeader(const char *FileNameToRead);
00124 
00125 private:
00126   GE4ImageIO(const Self &); //purposely not implemented
00127   float MvtSunf(int numb);
00128 
00129   void operator=(const Self &); //purposely not implemented
00130 };
00131 } // end namespace itk
00132 
00133 #endif // __itkGE4ImageIO_h
00134