Medical Imaging Interaction Toolkit  2024.06.00
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkVectorImageMapper2D_h
14 #define mitkVectorImageMapper2D_h
15 
16 #include "MitkMapperExtExports.h"
17 
18 #include "mitkCommon.h"
19 #include "mitkGLMapper.h"
20 #include "mitkImage.h"
21 
22 class vtkLookupTable;
23 class vtkScalarsToColors;
24 class vtkImageReslice;
25 class vtkPolyData;
26 class vtkGlyph2D;
27 class vtkPlane;
28 class vtkCutter;
29 
30 namespace mitk
31 {
32  class BaseRenderer;
33  class PlaneGeometry;
34 
36  {
37  public:
39 
40  itkFactorylessNewMacro(Self);
41 
42  itkCloneMacro(Self) typedef double vtkScalarType;
43 
48  const mitk::Image *GetInput(void);
49 
50  void Paint(mitk::BaseRenderer *renderer) override;
51 
56  itkSetConstObjectMacro(Image, mitk::Image);
57 
62  itkGetConstObjectMacro(Image, mitk::Image);
63 
64  virtual void PaintCells(vtkPolyData *contour,
65  const PlaneGeometry * /*worldGeometry*/,
66  vtkLinearTransform *vtktransform,
67  BaseRenderer *renderer,
68  vtkScalarsToColors *lut,
69  mitk::Color color,
70  float lwidth,
71  double *spacing);
72 
73  protected:
74  int GetCurrentTimeStep(mitk::BaseData *data, mitk::BaseRenderer *renderer);
75 
77 
78  ~VectorImageMapper2D() override;
79 
81 
82  vtkLookupTable *m_LUT;
83 
84  vtkPlane *m_Plane;
85 
86  vtkCutter *m_Cutter;
87  };
88 
89 } // namespace mitk
90 #endif
mitk::VectorImageMapper2D::m_Cutter
vtkCutter * m_Cutter
Definition: mitkVectorImageMapper2D.h:86
MitkMapperExtExports.h
mitkImage.h
mitkGLMapper.h
mitk::PlaneGeometry
Describes a two-dimensional, rectangular plane.
Definition: mitkPlaneGeometry.h:78
mitk::VectorImageMapper2D::m_LUT
vtkLookupTable * m_LUT
Definition: mitkVectorImageMapper2D.h:82
mitk::Color
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Definition: mitkColorProperty.h:38
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< const Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::VectorImageMapper2D::vtkScalarType
double vtkScalarType
Definition: mitkVectorImageMapper2D.h:42
mitk::VectorImageMapper2D::m_Plane
vtkPlane * m_Plane
Definition: mitkVectorImageMapper2D.h:84
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
mitkCommon.h
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitk::VectorImageMapper2D::m_Image
mitk::Image::ConstPointer m_Image
Definition: mitkVectorImageMapper2D.h:80
mitk::GLMapper
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:41
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
MITKMAPPEREXT_EXPORT
#define MITKMAPPEREXT_EXPORT
Definition: MitkMapperExtExports.h:15
mitk::VectorImageMapper2D
Definition: mitkVectorImageMapper2D.h:35