Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkStimulateImageIO.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkStimulateImageIO.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/03/22 14:28:52 $
00007   Version:   $Revision: 1.9 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkStimulateImageIO_h
00021 #define __itkStimulateImageIO_h
00022 
00023 #ifdef _MSC_VER
00024 #pragma warning ( disable : 4786 )
00025 #endif
00026 
00027 #include <fstream>
00028 #include "itkImageIOBase.h"
00029 
00030 namespace itk
00031 {
00032 
00056 class ITK_EXPORT StimulateImageIO : public ImageIOBase
00057 {
00058 public:
00060   typedef StimulateImageIO   Self;
00061   typedef ImageIOBase        Superclass;
00062   typedef SmartPointer<Self> Pointer;
00063 
00065   itkNewMacro(Self);
00066 
00068   itkTypeMacro(StimulateImageIO, Superclass);
00069 
00070   /*-------- This part of the interface deals with reading data. ------ */
00071 
00074   virtual bool CanReadFile(const char*);
00075 
00077   virtual void ReadImageInformation();
00078 
00080   virtual void Read(void* buffer);
00081 
00082   /*-------- This part of the interfaces deals with writing data. ----- */
00083 
00086   virtual bool CanWriteFile(const char*);
00087 
00090   virtual void WriteImageInformation() {};
00091 
00094   virtual void Write(const void* buffer);
00095 
00102   itkGetVectorMacro( DisplayRange, const float, 2);
00103 
00104 protected:
00105   StimulateImageIO();
00106   ~StimulateImageIO();
00107   void PrintSelf(std::ostream& os, Indent indent) const;
00108 
00109   bool OpenStimulateFileForReading(std::ifstream& os, const char* filename);
00110   bool OpenStimulateFileForWriting(std::ofstream& os, const char* filename);
00111   void InternalReadImageInformation(std::ifstream& file);
00112 
00113 private:
00114   std::string m_DataFileName;
00115   char    m_SdtOrient[256];
00116   float   m_DisplayRange[2];
00117   float   m_DisplayThresh;
00118   char    m_FidName[256];
00119 
00120   StimulateImageIO(const Self&); //purposely not implemented
00121   void operator=(const Self&); //purposely not implemented
00122 };
00123 
00124 } // end namespace itk
00125 
00126 #endif // __itkStimulateImageIO_h
00127 

Generated at Sun Sep 23 14:21:14 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000