Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPlanarFigureSubclassesSerializer.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkPlanarFiguresSubclassesSerializer_h_included
18 #define mitkPlanarFiguresSubclassesSerializer_h_included
19 
21 
22 #define MITK_REGISTER_PF_SUB_SERIALIZER(classname) \
23  \
24  namespace mitk \
25  \
26 { \
27  \
28 class classname##Serializer : public PlanarFigureSerializer\
29 { \
30  \
31 public : \
32  \
33  mitkClassMacro(classname##Serializer, PlanarFigureSerializer) itkFactorylessNewMacro(Self) itkCloneMacro(Self) \
34  \
35 protected : \
36  \
37  classname##Serializer(){} virtual ~classname##Serializer(){} \
38  \
39 }; \
40  \
41 } \
42  \
43  MITK_REGISTER_SERIALIZER(classname##Serializer);
44 
48 MITK_REGISTER_PF_SUB_SERIALIZER(PlanarFourPointAngle)
51 MITK_REGISTER_PF_SUB_SERIALIZER(PlanarRectangle)
53 MITK_REGISTER_PF_SUB_SERIALIZER(PlanarDoubleEllipse)
54 MITK_REGISTER_PF_SUB_SERIALIZER(PlanarBezierCurve)
55 MITK_REGISTER_PF_SUB_SERIALIZER(PlanarSubdivisionPolygon)
56 
57 #endif
#define MITK_REGISTER_PF_SUB_SERIALIZER(classname)