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: 2004/01/08 00:39:08 $ 00007 Version: $Revision: 1.6 $ 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 #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 /*-------- This part of the interface deals with reading data. ------ */ 00070 00073 virtual bool CanReadFile(const char*); 00074 00076 virtual void ReadImageInformation(); 00077 00079 virtual void Read(void* buffer); 00080 00081 /*-------- This part of the interfaces deals with writing data. ----- */ 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&); //purposely not implemented 00120 void operator=(const Self&); //purposely not implemented 00121 }; 00122 00123 } // end namespace itk 00124 00125 #endif // __itkStimulateImageIO_h

Generated at Sun Apr 1 02:45:16 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000