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: 2004/03/23 18:09:11 $
00007 Version:   $Revision: 1.19 $
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   {
00045     ITK_MAXPATHLEN =2048, 
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 
00069   static char* ExtractFilePath (const char* fileName);
00070 
00072   static char* ExtractFileExtension (const char* fileName);
00073 
00075   static char* ExtractFileName (const char* fileName);
00076 
00079   static bool FileExists(const char* filename);
00080 
00081 };
00082   
00083 
00084 extern const char *const ITK_OnDiskStorageTypeName ;
00085 extern const char *const ITK_ImageFileBaseName ;
00086 extern const char *const ITK_VoxelUnits;
00087 extern const char *const ITK_OnDiskBitPerPixel;
00088 extern const char *const SPM_ROI_SCALE;
00089 extern const char *const ITK_FileNotes;
00090 extern const char *const ITK_CoordinateOrientation;
00091 extern const char *const ITK_Origin;
00092 extern const char *const ITK_FileOriginator;
00093 extern const char *const ITK_OriginationDate;
00094 extern const char *const ITK_PatientID;
00095 extern const char *const ITK_ExperimentDate;
00096 extern const char *const ITK_ExperimentTime;
00097 extern const char *const ITK_InputFilterName;
00098 extern const char *const ITK_NumberOfDimensions;
00099 extern const char *const ITK_ImageType;
00100 extern const char *const ITK_PatientName;
00101 extern const char *const ITK_ScanID;
00102 extern const char *const ROI_NAME;
00103 extern const char *const ROI_X_SIZE;
00104 extern const char *const ROI_X_RESOLUTION;
00105 extern const char *const ROI_Y_SIZE;
00106 extern const char *const ROI_Y_RESOLUTION;
00107 extern const char *const ROI_Z_SIZE;
00108 extern const char *const ROI_Z_RESOLUTION;
00109 extern const char *const ROI_NUM_SEGMENTS;
00110 extern const char *const ROI_PLANE;
00111 extern const char *const ROI_SCAN_ID;
00112 } // end namespace itk
00113 
00114 #endif // __itkIOCommon_h

Generated at Wed May 24 23:29:34 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000