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: 2005/03/06 03:51:08 $
00007   Version:   $Revision: 1.7 $
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 
00054 class ITK_EXPORT StimulateImageIO : public ImageIOBase
00055 {
00056 public:
00058   typedef StimulateImageIO            Self;
00059   typedef ImageIOBase  Superclass;
00060   typedef SmartPointer<Self>  Pointer;
00061   
00063   itkNewMacro(Self);
00064 
00066   itkTypeMacro(StimulateImageIO, Superclass);
00067 
00068   /*-------- This part of the interface deals with reading data. ------ */
00069 
00072   virtual bool CanReadFile(const char*);
00073   
00075   virtual void ReadImageInformation();
00076   
00078   virtual void Read(void* buffer);
00079 
00080   /*-------- This part of the interfaces deals with writing data. ----- */
00081 
00084   virtual bool CanWriteFile(const char*);
00085 
00088   virtual void WriteImageInformation() {};
00089   
00092   virtual void Write(const void* buffer);
00093 
00100   itkGetVectorMacro( DisplayRange, const float, 2);
00101 
00102 protected:
00103   StimulateImageIO();
00104   ~StimulateImageIO();
00105   void PrintSelf(std::ostream& os, Indent indent) const;
00106 
00107   bool OpenStimulateFileForReading(std::ifstream& os, const char* filename);
00108   bool OpenStimulateFileForWriting(std::ofstream& os, const char* filename);
00109   void InternalReadImageInformation(std::ifstream& file);
00110 
00111 private:
00112   std::string m_DataFileName;
00113   char    m_SdtOrient[256];
00114   float   m_DisplayRange[2];
00115   float   m_DisplayThresh;
00116   char    m_FidName[256];
00117 
00118   StimulateImageIO(const Self&); //purposely not implemented
00119   void operator=(const Self&); //purposely not implemented
00120 };
00121 
00122 } // end namespace itk
00123 
00124 #endif // __itkStimulateImageIO_h

Generated at Tue Aug 30 16:46:28 2005 for ITK by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2000