MeVisLab Toolbox Reference
mlITKDefaultInstance.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 #pragma once
14 
16 // Include dll-specific settings.
17 #include "mlInitSystemITKSupport.h"
18 
20 #include "mlModuleIncludes.h"
21 
23 #include "mlAPI.h"
24 
25 ML_START_NAMESPACE
26 
48  MLErrorCode setUpDefaultModuleAndApply(const std::string &dataTypeName,
49  const ImageVector &imgExt,
50  const ImageVector &pageExt,
51  bool performOutputUpdate);
52 
74  const std::string &dataTypeName="float",
75  const ImageVector &imgExt = ImageVector(16,16,1,1,1,1),
76  MLint minIdx=0,
77  MLint maxIdx=ML_INT32_MAX,
78  const ImageVector &pageExt = ImageVector(16,16,1,1,1,1));
79 
82 
85 extern MLITK_SUPPORT_EXPORT mlModule *getDefaultModule(bool create = true);
86 
89 
90 ML_END_NAMESPACE
Base class for an image processing module of the ML.
Definition: mlModule.h:156
MLint32 MLErrorCode
Type of an ML Error code.
Definition: mlTypeDefs.h:818
#define mlModule
A macro name for a void pointer to a ml::Module in the ML to make pointer more readable.
Definition: mlAPI.h:60
#define MLITK_SUPPORT_EXPORT
When included by other libraries MLITK_SUPPORT_EXPORT is compiled as import 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
#define ML_INT32_MAX
Definition: mlTypeDefs.h:177
MLITK_SUPPORT_EXPORT MLErrorCode setAndConnectDefaultModuleWithNotify(Module &thisOp, const std::string &dataTypeName="float", const ImageVector &imgExt=ImageVector(16, 16, 1, 1, 1, 1), MLint minIdx=0, MLint maxIdx=ML_INT32_MAX, const ImageVector &pageExt=ImageVector(16, 16, 1, 1, 1, 1))
This function takes the default module (if it still does not exist then it's created),...
MLITK_SUPPORT_EXPORT MLErrorCode setUpDefaultModuleAndApply(const std::string &dataTypeName, const ImageVector &imgExt, const ImageVector &pageExt, bool performOutputUpdate)
This function takes the default module (a TestPattern from BasicModules) (if it still does not exist ...
MLITK_SUPPORT_EXPORT mlModule * getDefaultModule(bool create=true)
Returns the default module instance.
MLITK_SUPPORT_EXPORT void disconnectAllInputs(Module &thisOp)
Disconnects all connected inputs from thisOp.
TImageVector< MLint > ImageVector
Defines the standard ImageVector type which is used by the ML for indexing and coordinates.
MLITK_SUPPORT_EXPORT void destoyDefaultInstance()
Destroys the default module instance.