freElementals.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   F.R.E.E. - flexible registration evaluation engine
00004   Version:   v.1.0.0
00005   Date:      $Date: 2006/09/01 12:00:00 $
00006   Module:    $RCSfile: freElementals.h,v $
00007   Language:  C++
00008 
00009 
00010 
00011   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00012   Institute for Medical Biometry and Informatics, University of Heidelberg,
00013   Germany). All rights reserved.
00014   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00015   for details.
00016 
00017      This software is distributed WITHOUT ANY WARRANTY; without even 
00018      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00019      PURPOSE.  See the above copyright notices for more information.
00020 
00021 =========================================================================*/
00022 #ifndef __freElementals_h
00023 #define __freElementals_h
00024 
00028 //This is to avoid the warnings produced by itk/stl and ease the search for errors
00029 //in the creation report
00030 #pragma warning( disable : 4503 4786 4996)
00031 
00032 #include <string>
00033 #include <map>
00034 #include <deque>
00035 
00036 #include "freConstantValues.h"
00037 
00038 #include "itkCommand.h"
00039 #include "itkArray.h"
00040 #include "itkLightObject.h"
00041 
00042 #include "itksys/SystemTools.hxx"
00043 
00044 #define FREE_DONT_USE_EXTERN
00045 
00046 namespace FREE
00047 {
00049 typedef float PixelType;
00050 
00052 typedef double ScalarType;
00053 
00055 typedef unsigned short LoadingPixelType;
00056 
00057 typedef std::string MediaID;
00058 
00062 typedef itk::Array< ScalarType > ParameterArrayType;
00063 
00065 enum DataAccessType 
00066 {
00067         DAGet = 1,  
00068         DASet = 2,  
00069         DAAny = 3  
00070 };
00071 
00072 typedef int MediaDomainDimensionType;
00073 
00074 typedef itk::LightObject GenericMediaType;
00075 
00078 enum RegistrationStatusType 
00079 {
00080         RSTInitializing, 
00081         RSTNewSection, 
00082         RSTCreateProcessor, 
00083         RSTInitProcessor, 
00084         RSTProcessing, 
00085         RSTFinalizing, 
00086         RSTSavingResults, 
00088         RSTFinished, 
00089 };
00090 
00092 typedef std::vector<std::string> STLStringVector;
00093 typedef std::deque<std::string> STLStringDeque;
00094 typedef std::map<std::string, std::string > STLStrToStrMap;
00095 
00099 static std::string GetGeneralFREEPath()
00100 {
00101   std::string sPath = csFREEGeneralPathDefault;
00102         
00103   itksys::SystemTools::GetEnv(csFREEGeneralPath,sPath);
00104   
00105   return sPath;
00106 };
00107 
00108 #define freAppVersionMacro(major,minor,revision) \
00109   static const char* Version_Major() { return #major; }; \
00110   static const char* Version_Minor() { return #minor; }; \
00111   static const char* Version_Revision() { return #revision; }; \
00112   static const char* Version() { return #major "." #minor "." #revision; }
00113 
00114 }//End of Namespace free
00115 
00116 #endif

Generated at Sat Oct 13 15:53:24 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000