MeVisLab Toolbox Reference
mlITKSupport.h File Reference

Go to the source code of this file.

Classes

class  TypedObjectHolderBase
 Base class for all derived classes containing an itk object type pointer and some of its basic information. More...
 
class  TypedObjectHolderT< FILTER_TYPE >
 Typed version of a mini class containing an itkObject smart pointer. More...
 

Macros

#define ML_ITK_WRAPPER_0_2D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 0 inputs.
 
#define ML_ITK_WRAPPER_1_2D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 1 inputs.
 
#define ML_ITK_WRAPPER_2_2D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 2 inputs.
 
#define ML_ITK_WRAPPER_3_2D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 3 inputs.
 
#define ML_ITK_WRAPPER_0_3D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 0 inputs.
 
#define ML_ITK_WRAPPER_1_3D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 1 inputs.
 
#define ML_ITK_WRAPPER_2_3D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 2 inputs.
 
#define ML_ITK_WRAPPER_3_3D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 3 inputs.
 
#define ML_ITK_WRAPPER_0_2D3D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 0 inputs.
 
#define ML_ITK_WRAPPER_1_2D3D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 1 inputs.
 
#define ML_ITK_WRAPPER_2_2D3D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 2 inputs.
 
#define ML_ITK_WRAPPER_3_2D3D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 3 inputs.
 
#define ML_ITK_WRAPPER_0_6D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 0 inputs.
 
#define ML_ITK_WRAPPER_1_6D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 1 inputs.
 
#define ML_ITK_WRAPPER_2_6D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 2 inputs.
 
#define ML_ITK_WRAPPER_3_6D(PROJECT_PREFIX, CLASS_NAME, NAMESPACE)
 Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 3 inputs.
 
#define IMPLEMENT_ITK_INTERFACE_H(CLASS_NAME)
 Public macro to implements header file stuff and support members for ITK helper function or classes.
 

Functions

void ML_ITK_ML_PRINT_ERROR (const std::string &className, MLErrorCode errCode, std::string reason, const std::string &strParam1="", MLint intParam1=-965386, const std::string &strParam2="", MLint intParam2=-965386, const std::string &strParam3="", MLint intParam3=-965386, const std::string &strParam4="", MLint intParam4=-965386)
 Include most ml specific things.
 

Macro Definition Documentation

◆ IMPLEMENT_ITK_INTERFACE_H

#define IMPLEMENT_ITK_INTERFACE_H ( CLASS_NAME)

Public macro to implements header file stuff and support members for ITK helper function or classes.

Definition at line 245 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_0_2D

#define ML_ITK_WRAPPER_0_2D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:
#define _ML_ITK_DETERMINE_OUT_REGION_0(CLASS_NAME, NAMESPACE)
Calculates the maximum extent of the itk output image for 0 inputs and returns it as SubImageBox.
#define _ML_ITK_DETERMINE_IN_REGION_0(CLASS_NAME, NAMESPACE)
Calculates required input regions for filters with 0 inputs.
#define _ML_ITK_WRAPPER(PROJECT_PREFIX, CLASS_NAME, NAMESPACE, DET_IN_REGION, WRAPPER_TYPEDEFS, CREATOR_SWITCH, DET_OUT_REGION)
Implements a template class CLASS_NAME derived from BASE_CLASS with private constructor,...
#define ML_IMPLEMENT_ALL_ITK_2D_CASES(INFO_STRING, USER_CODE, CLASS_NAME, DATATYPE_ENUM, DIM)
This macro implements 2D code for all ML voxel data types supported by ITK.
#define ML_ITK_DEFAULT_WRAPPER_TYPEDEFS_0(CLASS_NAME, NAMESPACE)
Implement all support functionality for ITK filter calls and the call to the correct template version...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 0 inputs.

Definition at line 78 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_0_2D3D

#define ML_ITK_WRAPPER_0_2D3D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:
#define ML_IMPLEMENT_ALL_ITK_2D3D_CASES(INFO_STRING, USER_CODE, CLASS_NAME, DATATYPE_ENUM, DIM)
This macro implements 2+3D code for all ML voxel data types supported by ITK.

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 0 inputs.

Definition at line 136 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_0_3D

#define ML_ITK_WRAPPER_0_3D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:
#define ML_IMPLEMENT_ALL_ITK_3D_CASES(INFO_STRING, USER_CODE, CLASS_NAME, DATATYPE_ENUM, DIM)
This macro implements 3D code for all ML voxel data types supported by ITK.

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 0 inputs.

Definition at line 107 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_0_6D

#define ML_ITK_WRAPPER_0_6D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:
#define ML_IMPLEMENT_ALL_ITK_6D_CASES(INFO_STRING, USER_CODE, CLASS_NAME, DATATYPE_ENUM, DIM)
This macro implements 6D code for all ML voxel data types supported by ITK.

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 0 inputs.

Definition at line 164 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_1_2D

#define ML_ITK_WRAPPER_1_2D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:
#define ML_ITK_DEFAULT_WRAPPER_TYPEDEFS_1(CLASS_NAME, NAMESPACE)
See ML_ITK_DEFAULT_WRAPPER_TYPEDEFS_0; this is for 1 input.
#define _ML_ITK_DETERMINE_OUT_REGION_N(CLASS_NAME, NAMESPACE)
Calculates the maximum extent of the itk output image for N inputs and returns it as SubImageBox.
#define _ML_ITK_DETERMINE_IN_REGION_N(CLASS_NAME, NAMESPACE)
Calculates required input regions for any number of filter inputs.

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 1 inputs.

Definition at line 84 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_1_2D3D

#define ML_ITK_WRAPPER_1_2D3D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 1 inputs.

Definition at line 142 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_1_3D

#define ML_ITK_WRAPPER_1_3D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 1 inputs.

Definition at line 113 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_1_6D

#define ML_ITK_WRAPPER_1_6D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 1 inputs.

Definition at line 170 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_2_2D

#define ML_ITK_WRAPPER_2_2D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:
#define ML_ITK_DEFAULT_WRAPPER_TYPEDEFS_2(CLASS_NAME, NAMESPACE)
See ML_ITK_DEFAULT_WRAPPER_TYPEDEFS_0; this is for 2 inputs.

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 2 inputs.

Definition at line 90 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_2_2D3D

#define ML_ITK_WRAPPER_2_2D3D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 2 inputs.

Definition at line 148 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_2_3D

#define ML_ITK_WRAPPER_2_3D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 2 inputs.

Definition at line 119 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_2_6D

#define ML_ITK_WRAPPER_2_6D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 2 inputs.

Definition at line 176 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_3_2D

#define ML_ITK_WRAPPER_3_2D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:
#define ML_ITK_DEFAULT_WRAPPER_TYPEDEFS_3(CLASS_NAME, NAMESPACE)
See ML_ITK_DEFAULT_WRAPPER_TYPEDEFS_0; this is for 3 inputs.

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 3 inputs.

Definition at line 96 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_3_2D3D

#define ML_ITK_WRAPPER_3_2D3D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 3 inputs.

Definition at line 154 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_3_3D

#define ML_ITK_WRAPPER_3_3D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 3 inputs.

Definition at line 125 of file mlITKSupport.h.

◆ ML_ITK_WRAPPER_3_6D

#define ML_ITK_WRAPPER_3_6D ( PROJECT_PREFIX,
CLASS_NAME,
NAMESPACE )
Value:

Implements the wrapper and support functionality for the ITK class CLASS_NAME, which must have 3 inputs.

Definition at line 182 of file mlITKSupport.h.

Function Documentation

◆ ML_ITK_ML_PRINT_ERROR()

void ML_ITK_ML_PRINT_ERROR ( const std::string & className,
MLErrorCode errCode,
std::string reason,
const std::string & strParam1 = "",
MLint intParam1 = -965386,
const std::string & strParam2 = "",
MLint intParam2 = -965386,
const std::string & strParam3 = "",
MLint intParam3 = -965386,
const std::string & strParam4 = "",
MLint intParam4 = -965386 )
inline

Include most ml specific things.

Include most ml specific things. Include multi fields and other tools. Include internal helper macros. Include tool functions. Extended error printing message with four additional int and string parameters.

Definition at line 34 of file mlITKSupport.h.

References ML_PRINT_ERROR, and mlrange_cast().