ML Reference
MeVis/Foundation/Sources/ML/include/mlModuleTools.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //-------------------------------------------------------------------------
00011 //-------------------------------------------------------------------------
00012 #ifndef __mlModuleTools_H
00013 #define __mlModuleTools_H
00014 
00015 // ML-includes
00016 #ifndef __mlInitSystemML_H
00017 #include "mlInitSystemML.h"
00018 #endif
00019 
00020 #ifndef __mlBasics_H
00021 #include "mlBasics.h"
00022 #endif
00023 
00024 ML_START_NAMESPACE
00025 
00026 //-------------------------------------------------------------------------
00029 //-------------------------------------------------------------------------
00030 class MLEXPORT ModuleTools 
00031 {
00032 
00033 public:
00034 
00041   static const MLint MAX_NUM_PAGES_PER_IMAGE;
00042 
00051   static void adaptPageExtent (ImageVector&       pageExtent,
00052                                MLDataType         imageType, 
00053                                const ImageVector& newImageExtent,
00054                                const ImageVector& oldImageExtent, 
00055                                const ImageVector& pageUnit      = ImageVector(0),
00056                                const ImageVector& minPageExtent = ImageVector(0), 
00057                                const ImageVector& maxPageExtent = ImageVector(0));
00058   
00059 #ifdef ML_DEPRECATED
00060   
00062 
00063   
00064 public:
00065   
00068   inline ML_DEPRECATED static void adaptPageExt(ImageVector &pageExt,
00069                                                 MLDataType imgType, 
00070                                                 const ImageVector &newImgExt,
00071                                                 const ImageVector &oldImgExt, 
00072                                                 const ImageVector &pageUnit   = ImageVector(0),
00073                                                 const ImageVector &minPageExt = ImageVector(0), 
00074                                                 const ImageVector &maxPageExt = ImageVector(0))
00075   {
00076     adaptPageExtent(pageExt, imgType, newImgExt, oldImgExt, pageUnit, minPageExt, maxPageExt);
00077   }
00078   
00080   
00081 #endif // ML_DEPRECATED
00082   
00083 };
00084 
00085 
00086 #ifdef ML_DEPRECATED
00087 
00088 
00089 
00090 
00091 ML_DEPRECATED typedef ModuleTools BaseOpTools;
00093 #endif // ML_DEPRECATED
00094 
00095 
00096 ML_END_NAMESPACE
00097 
00098 #endif //of __mlModuleTools_H