MeVisLab Toolbox Reference
mlModuleTools.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef ML_MODULE_TOOLS_H
14 #define ML_MODULE_TOOLS_H
15 
19 
20 #include "mlInitSystemML.h"
21 
22 #include <mlTypeDefs.h>
23 #include <mlImageVector.h>
24 
25 ML_START_NAMESPACE
26 
27 //-------------------------------------------------------------------------
30 //-------------------------------------------------------------------------
32 {
33 
34 public:
35 
43 
52  static void adaptPageExtent (ImageVector& pageExtent,
53  MLDataType imageType,
54  const ImageVector& newImageExtent,
55  const ImageVector& oldImageExtent,
56  const ImageVector& pageUnit = ImageVector(0),
57  const ImageVector& minPageExtent = ImageVector(0),
58  const ImageVector& maxPageExtent = ImageVector(0));
59 
60 #if ML_DEPRECATED_SINCE(3,5,0)
61 
64 
65 public:
66 
69  inline ML_DEPRECATED static void adaptPageExt(ImageVector &pageExt,
70  MLDataType imgType,
71  const ImageVector &newImgExt,
72  const ImageVector &oldImgExt,
73  const ImageVector &pageUnit = ImageVector(0),
74  const ImageVector &minPageExt = ImageVector(0),
75  const ImageVector &maxPageExt = ImageVector(0))
76  {
77  adaptPageExtent(pageExt, imgType, newImgExt, oldImgExt, pageUnit, minPageExt, maxPageExt);
78  }
79 
81 
82 #endif
83 
84 };
85 
86 
87 #if ML_DEPRECATED_SINCE(3,5,0)
92 ML_DEPRECATED typedef ModuleTools BaseOpTools;
94 #endif
95 
96 
97 ML_END_NAMESPACE
98 
99 #endif
#define ML_DEPRECATED
Definition: CSOGroup.h:371
Class containing some helper functionality for Module programming and/or for the Module class itself.
Definition: mlModuleTools.h:32
static const MLint MAX_NUM_PAGES_PER_IMAGE
Currently used maximum number of pages.
Definition: mlModuleTools.h:42
static void adaptPageExtent(ImageVector &pageExtent, MLDataType imageType, const ImageVector &newImageExtent, const ImageVector &oldImageExtent, const ImageVector &pageUnit=ImageVector(0), const ImageVector &minPageExtent=ImageVector(0), const ImageVector &maxPageExtent=ImageVector(0))
Adapt page extent.
MLint32 MLDataType
MLDataType.
Definition: mlTypeDefs.h:684
#define MLEXPORT
To export symbols from a dll/shared object, we need to mark them with the MLEXPORT symbol.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Definition: mlTypeDefs.h:578
TImageVector< MLint > ImageVector
Defines the standard ImageVector type which is used by the ML for indexing and coordinates.