27 #ifndef MILXQTALIASES_H_INCLUDED 28 #define MILXQTALIASES_H_INCLUDED 47 #include <vnl/vnl_vector_fixed.h> 48 #include "milxGlobal.h" 51 using milx::coordinate;
52 using milx::coordinateType;
55 #define WIN32_LEAN_AND_MEAN 69 #if defined(MILXQT_MAKEDLL) // create a MILXQT DLL library 70 #define MILXQT_EXPORT __declspec(dllexport) 71 #define MILXQT_TEMPLATEDLL __declspec(dllexport) 72 #else // use a MILXQT DLL library 73 #define MILXQT_EXPORT __declspec(dllimport) 74 #define MILXQT_TEMPLATEDLL 81 #define MILXQT_TEMPLATEDLL 86 #ifdef MILXQT_PLUGIN_DLL 92 #if defined(MILXQT_PLUGIN_MAKEDLL) // create a MILXQT DLL library 93 #define MILXQT_PLUGIN_EXPORT __declspec(dllexport) 94 #define MILXQT_PLUGIN_TEMPLATEDLL __declspec(dllexport) 95 #else // use a MILXQT DLL library 96 #define MILXQT_PLUGIN_EXPORT __declspec(dllimport) 97 #define MILXQT_PLUGIN_TEMPLATEDLL 99 #endif // MILXQT_PLUGIN_DLL 102 #ifndef MILXQT_PLUGIN_EXPORT 103 #define MILXQT_PLUGIN_EXPORT 104 #define MILXQT_PLUGIN_TEMPLATEDLL 107 static const float milxQtVersion =
static_cast<float>(1.01);
108 static const int minWindowSize = 256;
109 static const int maxAASamples = 2;
117 static string openImageExts =
"Images (*.png *.jpeg *.jpg *.bmp *.tiff *.tif *.pbm *.pgm *.ppm)";
118 static string openSeriesImageExts =
"Image Series (*.ima *.dcm *.dicom *.gz)";
119 static string openMedImageExts =
"Medical Images (*.nii *.gz *.ima *.dcm *.dicom *.mha *.mhd *.img *.hdr *.gipl *.spr)";
120 static string openOtherImageExts =
"Other Images (*.vti)";
121 static string openOtherExts =
"Text Delimited Files (*.csv *.dat *.txt)";
122 static string openModelExts =
"Model or Polygonal Files (*.vtp *.vtk *.ply *.obj *.stl)";
123 static string extensionsOpen =
"*.png *.jpeg *.jpg *.bmp *.tiff *.tif *.pbm *.pgm *.ppm *.nii *.gz *.ima *.dcm *.dicom *.mha *.mhd *.img *.hdr *.gipl *.spr *.vti *.vtp *.vtk *.ply *.obj *.stl *.csv *.dat *.txt";
124 static string allFileExts =
"All Files (*.*)";
125 static string openSupportedExts =
"Images and Model Files (*.png *.jpeg *.jpg *.bmp *.tiff *.tif *.pbm *.pgm *.ppm *.nii *.gz *.ima *.dcm *.dicom *.mhd *.img *.hdr *.vti *.mrc *.rec *.vtp *.vtk *.ply *.obj *.stl)";
126 static string openExts = openSupportedExts +
";;" + openModelExts +
";;" + openMedImageExts +
";;" + openImageExts +
";;" + openOtherImageExts +
";;" + openOtherExts +
";;" + allFileExts;
128 static string saveImageExts =
"Images (*.png *.jpeg *.jpg *.bmp *.tiff *.tif)";
129 static string saveMedImageExts =
"Medical Images (*.nii *.gz *.ima *.dcm *.dicom *.mha *.mhd *.img *.hdr)";
130 static string saveOtherExts =
"Text Delimited Files (*.csv *.dat *.txt)";
131 static string saveOtherImageExts =
"Other Images (*.vti)";
132 static string saveModelExts =
"Model or Polygonal File (*.vtp *.vtk *.ply *.obj *.stl)";
133 static string extensionsSave =
"*.png *.jpeg *.jpg *.bmp *.tiff *.tif *.nii *.gz *.ima *.dcm *.dicom *.mhd *.img *.hdr *.vti *.vtp *.vtk *.ply *.obj *.stl";
134 static string saveExtsForImages = saveMedImageExts +
";;" + saveImageExts +
";;" + saveOtherImageExts;
135 static string saveExtsForScreens = saveImageExts;
136 static string saveExtsForModels = saveModelExts;
139 #endif // MILXQTALIASES_H_INCLUDED Include stdexcept to handle conversion exceptions.