Medical Imaging Interaction Toolkit  2023.12.99-b826bd4b
Medical Imaging Interaction Toolkit
mitkCommon.h File Reference
#include "itkObject.h"
#include "mitkConfig.h"
#include "mitkExceptionMacro.h"
#include "mitkGetClassHierarchy.h"
#include "mitkLog.h"

Go to the source code of this file.

Macros

#define mitkClassMacro(className, SuperClassName)
 
#define mitkClassMacroItkParent(className, SuperClassName)
 
#define mitkClassMacroNoParent(className)
 
#define mitkNewMacro1Param(classname, type)
 
#define mitkNewMacro2Param(classname, typea, typeb)
 
#define mitkNewMacro3Param(classname, typea, typeb, typec)
 
#define mitkNewMacro4Param(classname, typea, typeb, typec, typed)
 
#define mitkNewMacro5Param(classname, typea, typeb, typec, typed, typee)
 
#define mitkNewMacro6Param(classname, typea, typeb, typec, typed, typee, typef)
 
#define mitkGetObjectMacroConst(name, type)
 
#define mitkCloneMacro(classname)
 
#define DEPRECATED(func)
 
#define MITK_EXPORT
 
#define MITK_IMPORT
 
#define MITK_LOCAL
 

Typedefs

typedef unsigned int MapperSlotId
 

Macro Definition Documentation

◆ DEPRECATED

#define DEPRECATED (   func)

cross-platform deprecation macro

Definition at line 175 of file mitkCommon.h.

◆ MITK_EXPORT

#define MITK_EXPORT

Mark templates as exported to generate public RTTI symbols which are needed for GCC and Clang to support e.g. dynamic_cast between DSOs.

Definition at line 191 of file mitkCommon.h.

◆ MITK_IMPORT

#define MITK_IMPORT

Definition at line 192 of file mitkCommon.h.

◆ MITK_LOCAL

#define MITK_LOCAL

Definition at line 193 of file mitkCommon.h.

◆ mitkClassMacro

#define mitkClassMacro (   className,
  SuperClassName 
)

From ITK 4.7 version, the TypeMacro overrides (by using the explicit attribute) the GetNameOfClass hence the SuperClass must provide one.

If not, use the mitkClassMacroNoParent version

Definition at line 36 of file mitkCommon.h.

◆ mitkClassMacroItkParent

#define mitkClassMacroItkParent (   className,
  SuperClassName 
)

Definition at line 45 of file mitkCommon.h.

◆ mitkClassMacroNoParent

#define mitkClassMacroNoParent (   className)

At version 4.7 provides two type macros, the normal one expects the Superclass to provide the GetNameOfClass explicitly, the NoParent deos not expect anything.

Definition at line 57 of file mitkCommon.h.

◆ mitkCloneMacro

#define mitkCloneMacro (   classname)

Creates a Clone() method for "Classname". Returns a smartPtr of a clone of the calling object

Definition at line 154 of file mitkCommon.h.

◆ mitkGetObjectMacroConst

#define mitkGetObjectMacroConst (   name,
  type 
)

Get a smart const pointer to an object. Creates the member Get"name"() (e.g., GetPoints()).

Definition at line 145 of file mitkCommon.h.

◆ mitkNewMacro1Param

#define mitkNewMacro1Param (   classname,
  type 
)

Macro for Constructors with one parameter for classes derived from itk::Lightobject

Definition at line 68 of file mitkCommon.h.

◆ mitkNewMacro2Param

#define mitkNewMacro2Param (   classname,
  typea,
  typeb 
)

Macro for Constructors with two parameters for classes derived from itk::Lightobject

Definition at line 81 of file mitkCommon.h.

◆ mitkNewMacro3Param

#define mitkNewMacro3Param (   classname,
  typea,
  typeb,
  typec 
)

Macro for Constructors with three parameters for classes derived from itk::Lightobject

Definition at line 94 of file mitkCommon.h.

◆ mitkNewMacro4Param

#define mitkNewMacro4Param (   classname,
  typea,
  typeb,
  typec,
  typed 
)

Macro for Constructors with four parameters for classes derived from itk::Lightobject

Definition at line 107 of file mitkCommon.h.

◆ mitkNewMacro5Param

#define mitkNewMacro5Param (   classname,
  typea,
  typeb,
  typec,
  typed,
  typee 
)

Macro for Constructors with five parameters for classes derived from itk::Lightobject

Definition at line 120 of file mitkCommon.h.

◆ mitkNewMacro6Param

#define mitkNewMacro6Param (   classname,
  typea,
  typeb,
  typec,
  typed,
  typee,
  typef 
)

Macro for Constructors with six parameters for classes derived from itk::Lightobject

Definition at line 133 of file mitkCommon.h.

Typedef Documentation

◆ MapperSlotId

typedef unsigned int MapperSlotId

Definition at line 29 of file mitkCommon.h.