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

itkGEAdwImageIO.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003 Program:   Insight Segmentation & Registration Toolkit
00004 Module:    $RCSfile: itkGEAdwImageIO.h,v $
00005 Language:  C++
00006 Date:      $Date: 2007/03/29 18:39:27 $
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 This software is distributed WITHOUT ANY WARRANTY; without even
00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014 PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00031 #ifndef __itkGEAdwImageIO_h
00032 #define __itkGEAdwImageIO_h
00033 
00034 #ifdef _MSC_VER
00035 #pragma warning ( disable : 4786 )
00036 #endif
00037 
00038 #include <fstream>
00039 #include "itkImageIOBase.h"
00040 #include "itkIPLCommonImageIO.h"
00041 #include "itkGEImageHeader.h"
00042 //#include "idbm_hdr_def.h"
00043 
00044 namespace itk
00045 {
00053 class ITK_EXPORT GEAdwImageIO : public IPLCommonImageIO
00054 {
00055 public:
00057   typedef GEAdwImageIO        Self;
00058   typedef IPLCommonImageIO    Superclass;
00059   typedef SmartPointer<Self>  Pointer;
00060 
00062   itkNewMacro(Self);
00063 
00065   itkTypeMacro(GEAdwImageIO, Superclass);
00066 
00067   /*-------- This part of the interfaces deals with reading data. ----- */
00068 
00075   virtual bool CanReadFile(const char* FileNameToRead);
00076 
00078   // Implemented in superclass
00079   //      virtual void ReadImageInformation();
00080 
00082   // Implemented in superclass
00083   //      virtual const std::type_info& GetPixelType() const;
00084 
00086   // Implemented in superclass
00087   //      virtual void Read(void* buffer);
00088 
00092   // Implemented in superclass
00093   //      virtual unsigned int GetComponentSize() const;
00094 
00095   /*-------- This part of the interfaces deals with writing data. ----- */
00096 
00103   // Implemented in superclass
00104   //      virtual bool CanWriteFile(const char * FileNameToWrite);
00105 
00107   // Implemented in superclass
00108   //      virtual void WriteImageInformation();
00109 
00112   // Implemented in superclass
00113   //      virtual void Write(const void* buffer);
00114 protected:
00115   GEAdwImageIO();
00116   ~GEAdwImageIO();
00117   // Implemented in superclass
00118   //      void PrintSelf(std::ostream& os, Indent indent) const;
00119   virtual struct GEImageHeader *ReadHeader(const char *FileNameToRead);
00120 private:
00121   GEAdwImageIO(const Self&); //purposely not implemented
00122   void operator=(const Self&); //purposely not implemented
00123   enum GE_ADW_DEFINES {
00124 
00126     GE_ADW_SU_ID_LEN=4,
00127 
00129     GE_ADW_SU_PRODID_LEN=13,
00130 
00132     GE_ADW_EX_SUID_LEN=4,
00133 
00135     GE_ADW_EX_NO_LEN=2,
00136 
00138     GE_ADW_EX_HOSPNAME_LEN=33,
00139 
00141     GE_ADW_EX_MAGSTRENGTH_LEN=4,
00142 
00144     GE_ADW_EX_PATID_LEN=13,
00145 
00147     GE_ADW_EX_PATNAME_LEN=25,
00148 
00150     GE_ADW_EX_PATAGE_LEN=2,
00151 
00153     GE_ADW_EX_PATIAN_LEN=2,
00154 
00156     GE_ADW_EX_PATSEX_LEN=2,
00157 
00159     GE_ADW_EX_PATWEIGHT_LEN=4,
00160 
00162     GE_ADW_EX_HIST_LEN=61,
00163 
00165     GE_ADW_EX_DATETIME_LEN=4,
00166 
00168     GE_ADW_EX_REFPHY_LEN=33,
00169 
00171     GE_ADW_EX_DIAGRAD_LEN=33,
00172 
00174     GE_ADW_EX_OP_LEN=4,
00175 
00177     GE_ADW_EX_DESC_LEN=23,
00178 
00180     GE_ADW_EX_TYP_LEN=3,
00181 
00183     GE_ADW_EX_FORMAT_LEN=2,
00184 
00186     GE_ADW_EX_SYSID_LEN=9,
00187 
00188 /*** Series Header Variables ***/
00189 
00191     GE_ADW_SE_SUID_LEN=4,
00192 
00194     GE_ADW_SE_UNIQ_LEN=2,
00195 
00197     GE_ADW_SE_EXNO_LEN=2,
00198 
00200     GE_ADW_SE_NO_LEN=2,
00201 
00203     GE_ADW_SE_DATETIME_LEN=4,
00204 
00206     GE_ADW_SE_DESC_LEN=30,
00207 
00209     GE_ADW_SE_TYP_LEN=2,
00210 
00212     GE_ADW_SE_PLANE_LEN=2,
00213 
00215     GE_ADW_SE_POSITION_LEN=4,
00216 
00218     GE_ADW_SE_ENTRY_LEN=4,
00219 
00221     GE_ADW_SE_ANREF_LEN=3,
00222 
00224     GE_ADW_SE_CONTRAST_LEN=2,
00225 
00227     GE_ADW_SE_START_RAS_LEN=1,
00228 
00230     GE_ADW_SE_START_LOC_LEN=4,
00231 
00233     GE_ADW_SE_END_RAS_LEN=1,
00234 
00236     GE_ADW_SE_END_LOC_LEN=4,
00237 
00239     GE_ADW_SE_NUMIMAGES_LEN=4,
00240 
00241 /*** Image Header Variables ***/
00242 
00244     GE_ADW_IM_SUID_LEN=4,
00245 
00247     GE_ADW_IM_UNIQ_LEN=2,
00248 
00250     GE_ADW_IM_EXNO_LEN=2,
00251 
00253     GE_ADW_IM_SENO_LEN=2,
00254 
00256     GE_ADW_IM_NO_LEN=2,
00257 
00259     GE_ADW_IM_DATETIME_LEN=4,
00260 
00262     GE_ADW_IM_ACTUAL_DT_LEN=4,
00263 
00265     GE_ADW_IM_SCTIME_LEN=4,
00266 
00268     GE_ADW_IM_SLTHICK_LEN=4,
00269 
00271     GE_ADW_IM_IMATRIX_X_LEN=2,
00272 
00274     GE_ADW_IM_IMATRIX_Y_LEN=2,
00275 
00277     GE_ADW_IM_DFOV_LEN=4,
00278 
00280     GE_ADW_IM_DFOV_RECT_LEN=4,
00281 
00283     GE_ADW_IM_DIM_X_LEN=4,
00284 
00286     GE_ADW_IM_DIM_Y_LEN=4,
00287 
00289     GE_ADW_IM_PIXSIZE_X_LEN=4,
00290 
00292     GE_ADW_IM_PIXSIZE_Y_LEN=4,
00293 
00295     GE_ADW_IM_CONTMODE_LEN=2,
00296 
00298     GE_ADW_IM_PLANE_LEN=2,
00299 
00301     GE_ADW_IM_SCANSPACING_LEN=4,
00302 
00304     GE_ADW_IM_LOC_RAS_LEN=1,
00305 
00307     GE_ADW_IM_LOC_LEN=4,
00308 
00310     GE_ADW_IM_ULHC_R_LEN=4,
00311 
00313     GE_ADW_IM_ULHC_A_LEN=4,
00314 
00316     GE_ADW_IM_ULHC_S_LEN=4,
00317 
00319     GE_ADW_IM_URHC_R_LEN=4,
00320 
00322     GE_ADW_IM_URHC_A_LEN=4,
00323 
00325     GE_ADW_IM_URHC_S_LEN=4,
00326 
00328     GE_ADW_IM_BRHC_R_LEN=4,
00329 
00331     GE_ADW_IM_BRHC_A_LEN=4,
00332 
00334     GE_ADW_IM_BRHC_S_LEN=4,
00335 
00337     GE_ADW_IM_TR_LEN=4,
00338 
00340     GE_ADW_IM_TI_LEN=4,
00341 
00343     GE_ADW_IM_TE_LEN=4,
00344 
00346     GE_ADW_IM_NUMECHO_LEN=2,
00347 
00349     GE_ADW_IM_ECHONUM_LEN=2,
00350 
00352     GE_ADW_IM_NEX_LEN=4,
00353 
00355     GE_ADW_IM_CONTIG_LEN=2,
00356 
00358     GE_ADW_IM_HRTRATE_LEN=2,
00359 
00361     GE_ADW_IM_TDEL_LEN=4,
00362 
00364     GE_ADW_IM_XMTGAIN_LEN=2,
00365 
00367     GE_ADW_IM_MR_FLIP_LEN=2,
00368 
00370     GE_ADW_IM_CPHASE_LEN=2,
00371 
00373     GE_ADW_IM_SWAPPF_LEN=2,
00374 
00376     GE_ADW_IM_OBPLANE_LEN=4,
00377 
00379     GE_ADW_IM_XMTFREQ_LEN=4,
00380 
00382     GE_ADW_IM_PRESCAN_R1_LEN=2,
00383 
00385     GE_ADW_IM_PRESCAN_R2_LEN=2,
00386 
00388     GE_ADW_IM_IMODE_LEN=2,
00389 
00391     GE_ADW_IM_IOPT_LEN=4,
00392 
00394     GE_ADW_IM_PSEQ_LEN=2,
00395 
00397     GE_ADW_IM_PSDNAME_LEN=33,
00398 
00400     GE_ADW_IM_CTYP_LEN=2,
00401 
00403     GE_ADW_IM_CNAME_LEN=17,
00404 
00406     GE_ADW_IM_SUPP_TECH_LEN=2,
00407 
00409     GE_ADW_IM_VBW_LEN=4,
00410 
00412     GE_ADW_IM_SLQUANT_LEN=2,
00413 
00415     GE_ADW_IM_USER0_LEN=4,
00416 
00418     GE_ADW_IM_USER1_LEN=4,
00419 
00421     GE_ADW_IM_USER2_LEN=4,
00422 
00424     GE_ADW_IM_USER3_LEN=4,
00425 
00427     GE_ADW_IM_USER4_LEN=4,
00428 
00430     GE_ADW_IM_USER5_LEN=4,
00431 
00433     GE_ADW_IM_USER6_LEN=4,
00434 
00436     GE_ADW_IM_USER7_LEN=4,
00437 
00439     GE_ADW_IM_USER8_LEN=4,
00440 
00442     GE_ADW_IM_USER9_LEN=4,
00443 
00445     GE_ADW_IM_USER10_LEN=4,
00446 
00448     GE_ADW_IM_USER11_LEN=4,
00449 
00451     GE_ADW_IM_USER12_LEN=4,
00452 
00454     GE_ADW_IM_USER13_LEN=4,
00455 
00457     GE_ADW_IM_USER14_LEN=4,
00458 
00460     GE_ADW_IM_USER15_LEN=4,
00461 
00463     GE_ADW_IM_USER16_LEN=4,
00464 
00466     GE_ADW_IM_USER17_LEN=4,
00467 
00469     GE_ADW_IM_USER18_LEN=4,
00470 
00472     GE_ADW_IM_USER19_LEN=4,
00473 
00475     GE_ADW_IM_USER20_LEN=4,
00476 
00478     GE_ADW_IM_USER21_LEN=4,
00479 
00481     GE_ADW_IM_USER22_LEN=4,
00482 
00484     GE_ADW_IM_USER23_LEN=4,
00485 
00487     GE_ADW_IM_USER24_LEN=4,
00488 
00490     GE_ADW_IM_SATBITS_LEN=2,
00491 
00493     GE_ADW_IM_SCIC_LEN=2,
00494 
00496     GE_ADW_IM_FLAX_LEN=2,
00497 
00499     GE_ADW_IM_VENC_LEN=2,
00500 
00502     GE_ADW_IM_THK_DISCLMR_LEN=2,
00503 
00505     GE_ADW_IM_VAS_COLLAPSE_LEN=2,
00506 
00508     GE_ADW_IM_X_AXIS_ROT_LEN=4,
00509 
00511     GE_ADW_IM_Y_AXIS_ROT_LEN=4,
00512 
00514     GE_ADW_IM_Z_AXIS_ROT_LEN=4,
00515 
00517     GE_ADW_IM_ECHO_TRN_LEN=2,
00518 
00520     GE_ADW_IM_FRAC_ECHO_LEN=2,
00521 
00523     GE_ADW_IM_PREP_PULSE_LEN=2,
00524 
00526     GE_ADW_IM_CPHASENUM_LEN=2,
00527 
00529     GE_ADW_IM_VAR_ECHO_LEN=2,
00530 
00532     GE_ADW_IM_FREQ_DIR_LEN=2,
00533 
00535     GE_ADW_IM_VMODE_LEN=2,
00536 
00538     GE_ADW_VARIABLE_HDR_LENGTH_LEN=4,
00539 
00541   };
00542 
00543 };
00544 
00545 } // end namespace itk
00546 
00547 #endif // __itkAnalyzeImageIO_h
00548 

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