ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkGEAdwImageIO.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
32 #ifndef __itkGEAdwImageIO_h
33 #define __itkGEAdwImageIO_h
34 
35 
36 #include "itkIPLCommonImageIO.h"
37 
38 namespace itk
39 {
48 class ITK_EXPORT GEAdwImageIO:public IPLCommonImageIO
49 {
50 public:
52  typedef GEAdwImageIO Self;
55 
57  itkNewMacro(Self);
58 
60  itkTypeMacro(GEAdwImageIO, Superclass);
61 
62  /*-------- This part of the interfaces deals with reading data. ----- */
63 
70  virtual bool CanReadFile(const char *FileNameToRead);
71 
72  /* * Set the spacing and dimension information for the set filename. */
73  // Implemented in superclass
74  // virtual void ReadImageInformation();
75 
76  /* * Get the type of the pixel. */
77  // Implemented in superclass
78  // virtual const std::type_info& GetPixelType() const;
79 
80  /* * Reads the data from disk into the memory buffer provided. */
81  // Implemented in superclass
82  // virtual void Read(void* buffer);
83 
84  /* * Compute the size (in bytes) of the components of a pixel. For
85  * example, and RGB pixel of unsigned char would have a
86  * component size of 1 byte. */
87  // Implemented in superclass
88  // virtual unsigned int GetComponentSize() const;
89 
90  /*-------- This part of the interfaces deals with writing data. ----- */
91 
92  /* * Determine if the file can be written with this ImageIO implementation.
93  * \param FileNameToWrite The name of the file to test for writing.
94  * \author Hans J. Johnson
95  * \post Sets classes ImageIOBase::m_FileName variable to be FileNameToWrite
96  * \return Returns true if this ImageIO can write the file specified.
97  */
98  // Implemented in superclass
99  // virtual bool CanWriteFile(const char * FileNameToWrite);
100 
101  /* * Set the spacing and dimension information for the set filename. */
102  // Implemented in superclass
103  // virtual void WriteImageInformation();
104 
105  /* * Writes the data to disk from the memory buffer provided. Make sure
106  * that the IORegions has been set properly. */
107  // Implemented in superclass
108  // virtual void Write(const void* buffer);
109 protected:
110  GEAdwImageIO();
111  ~GEAdwImageIO();
112  // Implemented in superclass
113  // void PrintSelf(std::ostream& os, Indent indent) const;
114  virtual GEImageHeader * ReadHeader(const char *FileNameToRead);
115 
116 private:
117  GEAdwImageIO(const Self &); //purposely not implemented
118  void operator=(const Self &); //purposely not implemented
119 
122  GE_ADW_SU_ID_LEN = 4,
123 
125  GE_ADW_SU_PRODID_LEN = 13,
126 
128  GE_ADW_EX_SUID_LEN = 4,
129 
131  GE_ADW_EX_NO_LEN = 2,
132 
134  GE_ADW_EX_HOSPNAME_LEN = 33,
135 
137  GE_ADW_EX_MAGSTRENGTH_LEN = 4,
138 
140  GE_ADW_EX_PATID_LEN = 13,
141 
143  GE_ADW_EX_PATNAME_LEN = 25,
144 
146  GE_ADW_EX_PATAGE_LEN = 2,
147 
149  GE_ADW_EX_PATIAN_LEN = 2,
150 
152  GE_ADW_EX_PATSEX_LEN = 2,
153 
155  GE_ADW_EX_PATWEIGHT_LEN = 4,
156 
158  GE_ADW_EX_HIST_LEN = 61,
159 
161  GE_ADW_EX_DATETIME_LEN = 4,
162 
164  GE_ADW_EX_REFPHY_LEN = 33,
165 
167  GE_ADW_EX_DIAGRAD_LEN = 33,
168 
170  GE_ADW_EX_OP_LEN = 4,
171 
173  GE_ADW_EX_DESC_LEN = 23,
174 
176  GE_ADW_EX_TYP_LEN = 3,
177 
179  GE_ADW_EX_FORMAT_LEN = 2,
180 
182  GE_ADW_EX_SYSID_LEN = 9,
183 
189  GE_ADW_SE_SUID_LEN = 4,
190 
192  GE_ADW_SE_UNIQ_LEN = 2,
193 
195  GE_ADW_SE_EXNO_LEN = 2,
196 
198  GE_ADW_SE_NO_LEN = 2,
199 
201  GE_ADW_SE_DATETIME_LEN = 4,
202 
204  GE_ADW_SE_DESC_LEN = 30,
205 
207  GE_ADW_SE_TYP_LEN = 2,
208 
210  GE_ADW_SE_PLANE_LEN = 2,
211 
213  GE_ADW_SE_POSITION_LEN = 4,
214 
216  GE_ADW_SE_ENTRY_LEN = 4,
217 
219  GE_ADW_SE_ANREF_LEN = 3,
220 
222  GE_ADW_SE_CONTRAST_LEN = 2,
223 
226  GE_ADW_SE_START_RAS_LEN = 1,
227 
229  GE_ADW_SE_START_LOC_LEN = 4,
230 
233  GE_ADW_SE_END_RAS_LEN = 1,
234 
236  GE_ADW_SE_END_LOC_LEN = 4,
237 
240  GE_ADW_SE_NUMIMAGES_LEN = 4,
241 
247  GE_ADW_IM_SUID_LEN = 4,
248 
250  GE_ADW_IM_UNIQ_LEN = 2,
251 
253  GE_ADW_IM_EXNO_LEN = 2,
254 
256  GE_ADW_IM_SENO_LEN = 2,
257 
259  GE_ADW_IM_NO_LEN = 2,
260 
263  GE_ADW_IM_DATETIME_LEN = 4,
264 
267  GE_ADW_IM_ACTUAL_DT_LEN = 4,
268 
270  GE_ADW_IM_SCTIME_LEN = 4,
271 
273  GE_ADW_IM_SLTHICK_LEN = 4,
274 
277  GE_ADW_IM_IMATRIX_X_LEN = 2,
278 
281  GE_ADW_IM_IMATRIX_Y_LEN = 2,
282 
284  GE_ADW_IM_DFOV_LEN = 4,
285 
288  GE_ADW_IM_DFOV_RECT_LEN = 4,
289 
291  GE_ADW_IM_DIM_X_LEN = 4,
292 
294  GE_ADW_IM_DIM_Y_LEN = 4,
295 
297  GE_ADW_IM_PIXSIZE_X_LEN = 4,
298 
300  GE_ADW_IM_PIXSIZE_Y_LEN = 4,
301 
303  GE_ADW_IM_CONTMODE_LEN = 2,
304 
306  GE_ADW_IM_PLANE_LEN = 2,
307 
310  GE_ADW_IM_SCANSPACING_LEN = 4,
311 
313  GE_ADW_IM_LOC_RAS_LEN = 1,
314 
316  GE_ADW_IM_LOC_LEN = 4,
317 
320  GE_ADW_IM_ULHC_R_LEN = 4,
321 
324  GE_ADW_IM_ULHC_A_LEN = 4,
325 
328  GE_ADW_IM_ULHC_S_LEN = 4,
329 
332  GE_ADW_IM_URHC_R_LEN = 4,
333 
336  GE_ADW_IM_URHC_A_LEN = 4,
337 
340  GE_ADW_IM_URHC_S_LEN = 4,
341 
344  GE_ADW_IM_BRHC_R_LEN = 4,
345 
348  GE_ADW_IM_BRHC_A_LEN = 4,
349 
352  GE_ADW_IM_BRHC_S_LEN = 4,
353 
355  GE_ADW_IM_TR_LEN = 4,
356 
358  GE_ADW_IM_TI_LEN = 4,
359 
361  GE_ADW_IM_TE_LEN = 4,
362 
364  GE_ADW_IM_NUMECHO_LEN = 2,
365 
367  GE_ADW_IM_ECHONUM_LEN = 2,
368 
370  GE_ADW_IM_NEX_LEN = 4,
371 
373  GE_ADW_IM_CONTIG_LEN = 2,
374 
376  GE_ADW_IM_HRTRATE_LEN = 2,
377 
379  GE_ADW_IM_TDEL_LEN = 4,
380 
383  GE_ADW_IM_XMTGAIN_LEN = 2,
384 
387  GE_ADW_IM_MR_FLIP_LEN = 2,
388 
391  GE_ADW_IM_CPHASE_LEN = 2,
392 
394  GE_ADW_IM_SWAPPF_LEN = 2,
395 
397  GE_ADW_IM_OBPLANE_LEN = 4,
398 
400  GE_ADW_IM_XMTFREQ_LEN = 4,
401 
403  GE_ADW_IM_PRESCAN_R1_LEN = 2,
404 
406  GE_ADW_IM_PRESCAN_R2_LEN = 2,
407 
409  GE_ADW_IM_IMODE_LEN = 2,
410 
412  GE_ADW_IM_IOPT_LEN = 4,
413 
415  GE_ADW_IM_PSEQ_LEN = 2,
416 
418  GE_ADW_IM_PSDNAME_LEN = 33,
419 
421  GE_ADW_IM_CTYP_LEN = 2,
422 
424  GE_ADW_IM_CNAME_LEN = 17,
425 
428  GE_ADW_IM_SUPP_TECH_LEN = 2,
429 
431  GE_ADW_IM_VBW_LEN = 4,
432 
435  GE_ADW_IM_SLQUANT_LEN = 2,
436 
438  GE_ADW_IM_USER0_LEN = 4,
439 
441  GE_ADW_IM_USER1_LEN = 4,
442 
444  GE_ADW_IM_USER2_LEN = 4,
445 
447  GE_ADW_IM_USER3_LEN = 4,
448 
450  GE_ADW_IM_USER4_LEN = 4,
451 
453  GE_ADW_IM_USER5_LEN = 4,
454 
456  GE_ADW_IM_USER6_LEN = 4,
457 
459  GE_ADW_IM_USER7_LEN = 4,
460 
462  GE_ADW_IM_USER8_LEN = 4,
463 
465  GE_ADW_IM_USER9_LEN = 4,
466 
468  GE_ADW_IM_USER10_LEN = 4,
469 
471  GE_ADW_IM_USER11_LEN = 4,
472 
474  GE_ADW_IM_USER12_LEN = 4,
475 
477  GE_ADW_IM_USER13_LEN = 4,
478 
480  GE_ADW_IM_USER14_LEN = 4,
481 
483  GE_ADW_IM_USER15_LEN = 4,
484 
486  GE_ADW_IM_USER16_LEN = 4,
487 
489  GE_ADW_IM_USER17_LEN = 4,
490 
492  GE_ADW_IM_USER18_LEN = 4,
493 
495  GE_ADW_IM_USER19_LEN = 4,
496 
498  GE_ADW_IM_USER20_LEN = 4,
499 
501  GE_ADW_IM_USER21_LEN = 4,
502 
504  GE_ADW_IM_USER22_LEN = 4,
505 
507  GE_ADW_IM_USER23_LEN = 4,
508 
510  GE_ADW_IM_USER24_LEN = 4,
511 
513  GE_ADW_IM_SATBITS_LEN = 2,
514 
517  GE_ADW_IM_SCIC_LEN = 2,
518 
520  GE_ADW_IM_FLAX_LEN = 2,
521 
523  GE_ADW_IM_VENC_LEN = 2,
524 
526  GE_ADW_IM_THK_DISCLMR_LEN = 2,
527 
529  GE_ADW_IM_VAS_COLLAPSE_LEN = 2,
530 
532  GE_ADW_IM_X_AXIS_ROT_LEN = 4,
533 
535  GE_ADW_IM_Y_AXIS_ROT_LEN = 4,
536 
538  GE_ADW_IM_Z_AXIS_ROT_LEN = 4,
539 
541  GE_ADW_IM_ECHO_TRN_LEN = 2,
542 
544  GE_ADW_IM_FRAC_ECHO_LEN = 2,
545 
547  GE_ADW_IM_PREP_PULSE_LEN = 2,
548 
551  GE_ADW_IM_CPHASENUM_LEN = 2,
552 
554  GE_ADW_IM_VAR_ECHO_LEN = 2,
555 
557  GE_ADW_IM_FREQ_DIR_LEN = 2,
558 
560  GE_ADW_IM_VMODE_LEN = 2,
561 
564  GE_ADW_VARIABLE_HDR_LENGTH_LEN = 4,
565 
568  };
569 };
570 } // end namespace itk
571 
572 #endif // __itkAnalyzeImageIO_h
573