00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __freElementals_h
00023 #define __freElementals_h
00024
00028
00029
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 }
00115
00116 #endif