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: 2009-06-14 12:30:12 $
00007   Version:   $Revision: 1.12 $
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 "itkIPLCommonImageIO.h"
00039 
00040 namespace itk
00041 {
00049 class ITK_EXPORT GEAdwImageIO : public IPLCommonImageIO
00050 {
00051 public:
00053   typedef GEAdwImageIO        Self;
00054   typedef IPLCommonImageIO    Superclass;
00055   typedef SmartPointer<Self>  Pointer;
00056 
00058   itkNewMacro(Self);
00059 
00061   itkTypeMacro(GEAdwImageIO, Superclass);
00062 
00063   /*-------- This part of the interfaces deals with reading data. ----- */
00064 
00071   virtual bool CanReadFile(const char* FileNameToRead);
00072 
00073   /* * Set the spacing and dimension information for the set filename. */
00074   // Implemented in superclass
00075   //      virtual void ReadImageInformation();
00076 
00077   /* * Get the type of the pixel.  */
00078   // Implemented in superclass
00079   //      virtual const std::type_info& GetPixelType() const;
00080 
00081   /* * Reads the data from disk into the memory buffer provided. */
00082   // Implemented in superclass
00083   //      virtual void Read(void* buffer);
00084 
00085   /* * Compute the size (in bytes) of the components of a pixel. For
00086        * example, and RGB pixel of unsigned char would have a
00087        * component size of 1 byte. */
00088   // Implemented in superclass
00089   //      virtual unsigned int GetComponentSize() const;
00090 
00091   /*-------- This part of the interfaces deals with writing data. ----- */
00092 
00093   /* * Determine if the file can be written with this ImageIO implementation.
00094        * \param FileNameToWrite The name of the file to test for writing.
00095        * \author Hans J. Johnson
00096        * \post Sets classes ImageIOBase::m_FileName variable to be FileNameToWrite
00097        * \return Returns true if this ImageIO can write the file specified.
00098        */
00099   // Implemented in superclass
00100   //      virtual bool CanWriteFile(const char * FileNameToWrite);
00101 
00102   /* * Set the spacing and dimension information for the set filename. */
00103   // Implemented in superclass
00104   //      virtual void WriteImageInformation();
00105 
00106   /* * Writes the data to disk from the memory buffer provided. Make sure
00107        * that the IORegions has been set properly. */
00108   // Implemented in superclass
00109   //      virtual void Write(const void* buffer);
00110 protected:
00111   GEAdwImageIO();
00112   ~GEAdwImageIO();
00113   // Implemented in superclass
00114   //      void PrintSelf(std::ostream& os, Indent indent) const;
00115   virtual GEImageHeader *ReadHeader(const char *FileNameToRead);
00116 private:
00117   GEAdwImageIO(const Self&); //purposely not implemented
00118   void operator=(const Self&); //purposely not implemented
00119   enum GE_ADW_DEFINES {
00121     GE_ADW_SU_ID_LEN=4,
00122 
00124     GE_ADW_SU_PRODID_LEN=13,
00125 
00127     GE_ADW_EX_SUID_LEN=4,
00128 
00130     GE_ADW_EX_NO_LEN=2,
00131 
00133     GE_ADW_EX_HOSPNAME_LEN=33,
00134 
00136     GE_ADW_EX_MAGSTRENGTH_LEN=4,
00137 
00139     GE_ADW_EX_PATID_LEN=13,
00140 
00142     GE_ADW_EX_PATNAME_LEN=25,
00143 
00145     GE_ADW_EX_PATAGE_LEN=2,
00146 
00148     GE_ADW_EX_PATIAN_LEN=2,
00149 
00151     GE_ADW_EX_PATSEX_LEN=2,
00152 
00154     GE_ADW_EX_PATWEIGHT_LEN=4,
00155 
00157     GE_ADW_EX_HIST_LEN=61,
00158 
00160     GE_ADW_EX_DATETIME_LEN=4,
00161 
00163     GE_ADW_EX_REFPHY_LEN=33,
00164 
00166     GE_ADW_EX_DIAGRAD_LEN=33,
00167 
00169     GE_ADW_EX_OP_LEN=4,
00170 
00172     GE_ADW_EX_DESC_LEN=23,
00173 
00175     GE_ADW_EX_TYP_LEN=3,
00176 
00178     GE_ADW_EX_FORMAT_LEN=2,
00179 
00181     GE_ADW_EX_SYSID_LEN=9,
00182 
00188     GE_ADW_SE_SUID_LEN=4,
00189 
00191     GE_ADW_SE_UNIQ_LEN=2,
00192 
00194     GE_ADW_SE_EXNO_LEN=2,
00195 
00197     GE_ADW_SE_NO_LEN=2,
00198 
00200     GE_ADW_SE_DATETIME_LEN=4,
00201 
00203     GE_ADW_SE_DESC_LEN=30,
00204 
00206     GE_ADW_SE_TYP_LEN=2,
00207 
00209     GE_ADW_SE_PLANE_LEN=2,
00210 
00212     GE_ADW_SE_POSITION_LEN=4,
00213 
00215     GE_ADW_SE_ENTRY_LEN=4,
00216 
00218     GE_ADW_SE_ANREF_LEN=3,
00219 
00221     GE_ADW_SE_CONTRAST_LEN=2,
00222 
00224     GE_ADW_SE_START_RAS_LEN=1,
00225 
00227     GE_ADW_SE_START_LOC_LEN=4,
00228 
00230     GE_ADW_SE_END_RAS_LEN=1,
00231 
00233     GE_ADW_SE_END_LOC_LEN=4,
00234 
00236     GE_ADW_SE_NUMIMAGES_LEN=4,
00237 
00243     GE_ADW_IM_SUID_LEN=4,
00244 
00246     GE_ADW_IM_UNIQ_LEN=2,
00247 
00249     GE_ADW_IM_EXNO_LEN=2,
00250 
00252     GE_ADW_IM_SENO_LEN=2,
00253 
00255     GE_ADW_IM_NO_LEN=2,
00256 
00258     GE_ADW_IM_DATETIME_LEN=4,
00259 
00261     GE_ADW_IM_ACTUAL_DT_LEN=4,
00262 
00264     GE_ADW_IM_SCTIME_LEN=4,
00265 
00267     GE_ADW_IM_SLTHICK_LEN=4,
00268 
00270     GE_ADW_IM_IMATRIX_X_LEN=2,
00271 
00273     GE_ADW_IM_IMATRIX_Y_LEN=2,
00274 
00276     GE_ADW_IM_DFOV_LEN=4,
00277 
00279     GE_ADW_IM_DFOV_RECT_LEN=4,
00280 
00282     GE_ADW_IM_DIM_X_LEN=4,
00283 
00285     GE_ADW_IM_DIM_Y_LEN=4,
00286 
00288     GE_ADW_IM_PIXSIZE_X_LEN=4,
00289 
00291     GE_ADW_IM_PIXSIZE_Y_LEN=4,
00292 
00294     GE_ADW_IM_CONTMODE_LEN=2,
00295 
00297     GE_ADW_IM_PLANE_LEN=2,
00298 
00300     GE_ADW_IM_SCANSPACING_LEN=4,
00301 
00303     GE_ADW_IM_LOC_RAS_LEN=1,
00304 
00306     GE_ADW_IM_LOC_LEN=4,
00307 
00309     GE_ADW_IM_ULHC_R_LEN=4,
00310 
00312     GE_ADW_IM_ULHC_A_LEN=4,
00313 
00315     GE_ADW_IM_ULHC_S_LEN=4,
00316 
00318     GE_ADW_IM_URHC_R_LEN=4,
00319 
00321     GE_ADW_IM_URHC_A_LEN=4,
00322 
00324     GE_ADW_IM_URHC_S_LEN=4,
00325 
00327     GE_ADW_IM_BRHC_R_LEN=4,
00328 
00330     GE_ADW_IM_BRHC_A_LEN=4,
00331 
00333     GE_ADW_IM_BRHC_S_LEN=4,
00334 
00336     GE_ADW_IM_TR_LEN=4,
00337 
00339     GE_ADW_IM_TI_LEN=4,
00340 
00342     GE_ADW_IM_TE_LEN=4,
00343 
00345     GE_ADW_IM_NUMECHO_LEN=2,
00346 
00348     GE_ADW_IM_ECHONUM_LEN=2,
00349 
00351     GE_ADW_IM_NEX_LEN=4,
00352 
00354     GE_ADW_IM_CONTIG_LEN=2,
00355 
00357     GE_ADW_IM_HRTRATE_LEN=2,
00358 
00360     GE_ADW_IM_TDEL_LEN=4,
00361 
00363     GE_ADW_IM_XMTGAIN_LEN=2,
00364 
00366     GE_ADW_IM_MR_FLIP_LEN=2,
00367 
00369     GE_ADW_IM_CPHASE_LEN=2,
00370 
00372     GE_ADW_IM_SWAPPF_LEN=2,
00373 
00375     GE_ADW_IM_OBPLANE_LEN=4,
00376 
00378     GE_ADW_IM_XMTFREQ_LEN=4,
00379 
00381     GE_ADW_IM_PRESCAN_R1_LEN=2,
00382 
00384     GE_ADW_IM_PRESCAN_R2_LEN=2,
00385 
00387     GE_ADW_IM_IMODE_LEN=2,
00388 
00390     GE_ADW_IM_IOPT_LEN=4,
00391 
00393     GE_ADW_IM_PSEQ_LEN=2,
00394 
00396     GE_ADW_IM_PSDNAME_LEN=33,
00397 
00399     GE_ADW_IM_CTYP_LEN=2,
00400 
00402     GE_ADW_IM_CNAME_LEN=17,
00403 
00405     GE_ADW_IM_SUPP_TECH_LEN=2,
00406 
00408     GE_ADW_IM_VBW_LEN=4,
00409 
00411     GE_ADW_IM_SLQUANT_LEN=2,
00412 
00414     GE_ADW_IM_USER0_LEN=4,
00415 
00417     GE_ADW_IM_USER1_LEN=4,
00418 
00420     GE_ADW_IM_USER2_LEN=4,
00421 
00423     GE_ADW_IM_USER3_LEN=4,
00424 
00426     GE_ADW_IM_USER4_LEN=4,
00427 
00429     GE_ADW_IM_USER5_LEN=4,
00430 
00432     GE_ADW_IM_USER6_LEN=4,
00433 
00435     GE_ADW_IM_USER7_LEN=4,
00436 
00438     GE_ADW_IM_USER8_LEN=4,
00439 
00441     GE_ADW_IM_USER9_LEN=4,
00442 
00444     GE_ADW_IM_USER10_LEN=4,
00445 
00447     GE_ADW_IM_USER11_LEN=4,
00448 
00450     GE_ADW_IM_USER12_LEN=4,
00451 
00453     GE_ADW_IM_USER13_LEN=4,
00454 
00456     GE_ADW_IM_USER14_LEN=4,
00457 
00459     GE_ADW_IM_USER15_LEN=4,
00460 
00462     GE_ADW_IM_USER16_LEN=4,
00463 
00465     GE_ADW_IM_USER17_LEN=4,
00466 
00468     GE_ADW_IM_USER18_LEN=4,
00469 
00471     GE_ADW_IM_USER19_LEN=4,
00472 
00474     GE_ADW_IM_USER20_LEN=4,
00475 
00477     GE_ADW_IM_USER21_LEN=4,
00478 
00480     GE_ADW_IM_USER22_LEN=4,
00481 
00483     GE_ADW_IM_USER23_LEN=4,
00484 
00486     GE_ADW_IM_USER24_LEN=4,
00487 
00489     GE_ADW_IM_SATBITS_LEN=2,
00490 
00492     GE_ADW_IM_SCIC_LEN=2,
00493 
00495     GE_ADW_IM_FLAX_LEN=2,
00496 
00498     GE_ADW_IM_VENC_LEN=2,
00499 
00501     GE_ADW_IM_THK_DISCLMR_LEN=2,
00502 
00504     GE_ADW_IM_VAS_COLLAPSE_LEN=2,
00505 
00507     GE_ADW_IM_X_AXIS_ROT_LEN=4,
00508 
00510     GE_ADW_IM_Y_AXIS_ROT_LEN=4,
00511 
00513     GE_ADW_IM_Z_AXIS_ROT_LEN=4,
00514 
00516     GE_ADW_IM_ECHO_TRN_LEN=2,
00517 
00519     GE_ADW_IM_FRAC_ECHO_LEN=2,
00520 
00522     GE_ADW_IM_PREP_PULSE_LEN=2,
00523 
00525     GE_ADW_IM_CPHASENUM_LEN=2,
00526 
00528     GE_ADW_IM_VAR_ECHO_LEN=2,
00529 
00531     GE_ADW_IM_FREQ_DIR_LEN=2,
00532 
00534     GE_ADW_IM_VMODE_LEN=2,
00535 
00537     GE_ADW_VARIABLE_HDR_LENGTH_LEN=4,
00538 
00540   };
00541 
00542 };
00543 
00544 } // end namespace itk
00545 
00546 #endif // __itkAnalyzeImageIO_h
00547 

Generated at Fri Apr 16 18:23:37 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000