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
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
00069
00072 virtual bool CanReadFile(const char*);
00073
00075 virtual void ReadImageInformation();
00076
00078 virtual void Read(void* buffer);
00079
00080
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&);
00119 void operator=(const Self&);
00120 };
00121
00122 }
00123
00124 #endif // __itkStimulateImageIO_h