Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVectorImageMapper2D.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 _MITK_VECTOR_IMAGE_MAPPER_2D__H_
18 #define _MITK_VECTOR_IMAGE_MAPPER_2D__H_
19 
20 #include "MitkMapperExtExports.h"
21 
22 #include "mitkCommon.h"
23 #include "mitkGLMapper.h"
24 #include "mitkImage.h"
25 
26 class vtkLookupTable;
27 class vtkScalarsToColors;
28 class vtkImageReslice;
29 class vtkPolyData;
30 class vtkGlyph2D;
31 class vtkPlane;
32 class vtkCutter;
33 
34 namespace mitk
35 {
36  class BaseRenderer;
37  class PlaneGeometry;
38 
40  {
41  public:
43 
44  itkFactorylessNewMacro(Self) itkCloneMacro(Self) typedef double vtkScalarType;
45 
50  const mitk::Image *GetInput(void);
51 
52  virtual void Paint(mitk::BaseRenderer *renderer) override;
53 
58  itkSetConstObjectMacro(Image, mitk::Image);
59 
64  itkGetConstObjectMacro(Image, mitk::Image);
65 
66  virtual void PaintCells(vtkPolyData *contour,
67  const PlaneGeometry * /*worldGeometry*/,
68  vtkLinearTransform *vtktransform,
69  BaseRenderer *renderer,
70  vtkScalarsToColors *lut,
71  mitk::Color color,
72  float lwidth,
73  double *spacing);
74 
75  protected:
76  int GetCurrentTimeStep(mitk::BaseData *data, mitk::BaseRenderer *renderer);
77 
79 
80  virtual ~VectorImageMapper2D();
81 
82  mitk::Image::ConstPointer m_Image;
83 
84  vtkLookupTable *m_LUT;
85 
86  vtkPlane *m_Plane;
87 
88  vtkCutter *m_Cutter;
89  };
90 
91 } // namespace mitk
92 #endif
Base of all data objects.
Definition: mitkBaseData.h:39
#define MITKMAPPEREXT_EXPORT
Organizes the rendering process.
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:45
DataCollection - Class to facilitate loading/accessing structured data.
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:54
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Describes a two-dimensional, rectangular plane.