Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkImageCaster.h
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 MITKIMAGECASTER_H
18 #define MITKIMAGECASTER_H
19 
20 #include <itkCastImageFilter.h>
21 #include <itkImage.h>
22 #include <mitkImageCast.h>
23 #include <mitkSurface.h>
24 #include <vtkRenderWindow.h>
25 
26 #include <mitkPPSeqForEach.h>
27 
28 #define DeclareMitkImageCasterMethods(r, data, type) \
29  static void CastToItkImage(const mitk::Image *, itk::SmartPointer<itk::Image<MITK_PP_TUPLE_REM(2) type>> &); \
30  static void CastToMitkImage(const itk::Image<MITK_PP_TUPLE_REM(2) type> *, itk::SmartPointer<mitk::Image> &);
31 
32 namespace mitk
33 {
40  {
41  public:
44 
45  static void CastBaseData(mitk::BaseData *const, itk::SmartPointer<mitk::Image> &);
46  };
47 
49  {
50  public:
51  static void Cast(BaseData *dat, Surface *surface);
52  };
53 
55  {
56  public:
57  static void Set3DRenderer(vtkRenderer *renderer);
58  static vtkRenderer *Get3DRenderer();
59 
60  protected:
61  static vtkRenderer *m_3DRenderer;
62  };
63 }
64 
65 #endif // MITKIMAGECASTER_H
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:32
#define MITKCORE_EXPORT
static vtkRenderer * m_3DRenderer
Base of all data objects.
Definition: mitkBaseData.h:39
This class is just a proxy for global functions which are needed by the python wrapping process since...
DataCollection - Class to facilitate loading/accessing structured data.
#define MITK_PP_SEQ_FOR_EACH(macro, data, seq)
#define MITK_ACCESSBYITK_TYPES_DIMN_SEQ(dim)
Definition: mitkConfig.h:34
#define DeclareMitkImageCasterMethods(r, data, type)