00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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 #include "itkRawImageIO.h"
00030
00031 namespace itk
00032 {
00033
00055 class ITK_EXPORT StimulateImageIO : public ImageIOBase
00056 {
00057 public:
00059 typedef StimulateImageIO Self;
00060 typedef ImageIOBase Superclass;
00061 typedef SmartPointer<Self> Pointer;
00062
00064 itkNewMacro(Self);
00065
00067 itkTypeMacro(StimulateImageIO, Superclass);
00068
00069
00070
00073 virtual bool CanReadFile(const char*);
00074
00076 virtual void ReadImageInformation();
00077
00079 virtual void Read(void* buffer);
00080
00081
00082
00085 virtual bool CanWriteFile(const char*);
00086
00089 virtual void WriteImageInformation() {};
00090
00093 virtual void Write(const void* buffer);
00094
00101 itkGetVectorMacro( DisplayRange, const float, 2);
00102
00103 protected:
00104 StimulateImageIO();
00105 ~StimulateImageIO();
00106 void PrintSelf(std::ostream& os, Indent indent) const;
00107
00108 bool OpenStimulateFileForReading(std::ifstream& os, const char* filename);
00109 bool OpenStimulateFileForWriting(std::ofstream& os, const char* filename);
00110 void InternalReadImageInformation(std::ifstream& file);
00111
00112 private:
00113 std::string m_DataFileName;
00114 char m_SdtOrient[256];
00115 float m_DisplayRange[2];
00116 float m_DisplayThresh;
00117 char m_FidName[256];
00118
00119 StimulateImageIO(const Self&);
00120 void operator=(const Self&);
00121 };
00122
00123 }
00124
00125 #endif // __itkStimulateImageIO_h