Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkMeshVtkMapper3D.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 MITKMESHVTKMAPPER3D_H_HEADER_INCLUDED
14 #define MITKMESHVTKMAPPER3D_H_HEADER_INCLUDED
15 
16 #include "MitkMapperExtExports.h"
17 #include "mitkBaseRenderer.h"
18 #include "mitkCommon.h"
19 #include "mitkMesh.h"
20 #include "mitkVtkMapper.h"
21 
22 #include <vtkAppendPolyData.h>
23 #include <vtkCellArray.h>
24 #include <vtkFloatArray.h>
25 #include <vtkLinearTransform.h>
26 #include <vtkPointData.h>
27 #include <vtkPoints.h>
28 #include <vtkPolyData.h>
29 #include <vtkSphereSource.h>
30 #include <vtkTextSource.h>
31 #include <vtkTransformPolyDataFilter.h>
32 #include <vtkTubeFilter.h>
33 #include <vtkVectorText.h>
34 
35 class vtkActor;
36 class vtkAssembly;
37 class vtkFollower;
38 class vtkPolyDataMapper;
39 class vtkPropAssembly;
40 
41 namespace mitk
42 {
48  {
49  public:
51 
52  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
53 
54  virtual const mitk::Mesh *GetInput();
55 
56  vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
57  void UpdateVtkTransform(mitk::BaseRenderer *renderer) override;
58 
60 
61  protected:
63 
64  ~MeshVtkMapper3D() override;
65 
66  void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override;
67 
68  void ResetMapper(BaseRenderer *renderer) override;
69 
70  vtkPropAssembly *m_PropAssembly;
71 
72  vtkActor *m_SpheresActor;
73  vtkActor *m_ContourActor;
74  vtkPolyDataMapper *m_ContourMapper;
75  vtkPolyDataMapper *m_SpheresMapper;
76 
77  vtkPolyDataMapper *m_TextVtkPolyDataMapper;
78 
79  vtkAppendPolyData *m_Spheres;
80  vtkPolyData *m_Contour;
81  };
82 
83 } // namespace mitk
84 
85 #endif /* MITKMESHVTKMAPPER3D_H_HEADER_INCLUDED*/
vtkPolyDataMapper * m_TextVtkPolyDataMapper
vtkPropAssembly * m_PropAssembly
#define MITKMAPPEREXT_EXPORT
Vtk-based mapper for PointList.
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition: mitkVtkMapper.h:48
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:49
vtkPolyDataMapper * m_ContourMapper
DataStructure which stores a set of points (incl. pointdata) where each point can be associated to an...
Definition: mitkMesh.h:50
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
vtkAppendPolyData * m_Spheres
LocalStorageHandler< BaseLocalStorage > m_LSH
vtkPolyDataMapper * m_SpheresMapper