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

itkIOCommon.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkIOCommon.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-05-27 11:41:08 $
00007   Version:   $Revision: 1.27 $
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 #ifndef __itkIOCommon_h
00018 #define __itkIOCommon_h
00019 
00020 #ifdef _MSC_VER
00021 #pragma warning ( disable : 4786 )
00022 #endif
00023 
00024 #include "itkIntTypes.h"
00025 #include "itkProcessObject.h"
00026 #include "itkObjectFactory.h"
00027 #include "itkSpatialOrientation.h"
00028 
00029 namespace itk
00030 {
00031 
00040 class ITK_EXPORT IOCommon 
00041 {
00042 public:
00043   typedef enum
00044     {
00046     MAX_FILENAMELIST_SIZE = 512
00047     } SysConstants;
00048   typedef enum
00049     {
00050     ITK_UCHAR,         // aka uint8_t
00051     ITK_CHAR,
00052     ITK_USHORT,        // aka uint16_t
00053     ITK_SHORT,
00054     ITK_UINT,          // aka uint32_t
00055     ITK_INT,
00056     ITK_ULONG,         // aka uint64_t
00057     ITK_LONG,
00058     ITK_FLOAT,
00059     ITK_DOUBLE
00060     } AtomicPixelType;   // enumerated constants for the different data types
00061 
00063   static std::string AtomicPixelTypeToString(const AtomicPixelType pixelType);
00064 
00066   static unsigned int ComputeSizeOfAtomicPixelType(const AtomicPixelType pixelType);
00067 
00073   itkLegacyMacro( static char* ExtractFilePath (const char* fileName) );
00074 
00081   itkLegacyMacro( static char* ExtractFileExtension (const char* fileName) );
00082 
00088   itkLegacyMacro( static char* ExtractFileName (const char* fileName) );
00089 
00096   itkLegacyMacro( static bool FileExists(const char* filename) );
00097 
00098 };
00099   
00100 
00101 extern const char *const ITK_OnDiskStorageTypeName;
00102 extern const char *const ITK_ImageFileBaseName;
00103 extern const char *const ITK_VoxelUnits;
00104 extern const char *const ITK_OnDiskBitPerPixel;
00105 extern const char *const SPM_ROI_SCALE;
00106 extern const char *const ITK_FileNotes;
00107 #define ITKIO_DEPRECATED_METADATA_ORIENTATION
00108 #if defined(ITKIO_DEPRECATED_METADATA_ORIENTATION)
00109 extern const char *const ITK_CoordinateOrientation;
00110 #endif
00111 extern const char *const ITK_Origin;
00112 extern const char *const ITK_Spacing;
00113 extern const char *const ITK_FileOriginator;
00114 extern const char *const ITK_OriginationDate;
00115 extern const char *const ITK_PatientID;
00116 extern const char *const ITK_ExperimentDate;
00117 extern const char *const ITK_ExperimentTime;
00118 extern const char *const ITK_InputFilterName;
00119 extern const char *const ITK_NumberOfDimensions;
00120 extern const char *const ITK_ImageType;
00121 extern const char *const ITK_PatientName;
00122 extern const char *const ITK_ScanID;
00123 extern const char *const ROI_NAME;
00124 extern const char *const ROI_X_SIZE;
00125 extern const char *const ROI_X_RESOLUTION;
00126 extern const char *const ROI_Y_SIZE;
00127 extern const char *const ROI_Y_RESOLUTION;
00128 extern const char *const ROI_Z_SIZE;
00129 extern const char *const ROI_Z_RESOLUTION;
00130 extern const char *const ROI_NUM_SEGMENTS;
00131 extern const char *const ROI_PLANE;
00132 extern const char *const ROI_SCAN_ID;
00133 } // end namespace itk
00134 
00135 #endif // __itkIOCommon_h
00136 

Generated at Thu May 28 10:32:05 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000