Medical Imaging Interaction Toolkit  2016.11.0
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,
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 MITKMESHVTKMAPPER3D_H_HEADER_INCLUDED
18 #define MITKMESHVTKMAPPER3D_H_HEADER_INCLUDED
19 
20 #include "MitkMapperExtExports.h"
21 #include "mitkBaseRenderer.h"
22 #include "mitkCommon.h"
23 #include "mitkMesh.h"
24 #include "mitkVtkMapper.h"
25 
26 #include <vtkAppendPolyData.h>
27 #include <vtkCellArray.h>
28 #include <vtkFloatArray.h>
29 #include <vtkLinearTransform.h>
30 #include <vtkPointData.h>
31 #include <vtkPoints.h>
32 #include <vtkPolyData.h>
33 #include <vtkSphereSource.h>
34 #include <vtkTextSource.h>
35 #include <vtkTransformPolyDataFilter.h>
36 #include <vtkTubeFilter.h>
37 #include <vtkVectorText.h>
38 
39 class vtkActor;
40 class vtkAssembly;
41 class vtkFollower;
42 class vtkPolyDataMapper;
43 class vtkPropAssembly;
44 
45 namespace mitk
46 {
52  {
53  public:
55 
56  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
57 
58  virtual const mitk::Mesh *GetInput();
59 
60  virtual vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
61  virtual void UpdateVtkTransform(mitk::BaseRenderer *renderer) override;
62 
64 
65  protected:
67 
68  virtual ~MeshVtkMapper3D();
69 
70  virtual void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override;
71 
72  virtual void ResetMapper(BaseRenderer *renderer) override;
73 
74  vtkPropAssembly *m_PropAssembly;
75 
76  vtkActor *m_SpheresActor;
77  vtkActor *m_ContourActor;
78  vtkPolyDataMapper *m_ContourMapper;
79  vtkPolyDataMapper *m_SpheresMapper;
80 
81  vtkPolyDataMapper *m_TextVtkPolyDataMapper;
82 
83  vtkAppendPolyData *m_Spheres;
84  vtkPolyData *m_Contour;
85  };
86 
87 } // namespace mitk
88 
89 #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:53
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:54
vtkPolyDataMapper * m_ContourMapper
DataStructure which stores a set of points (incl. pointdata) where each point can be associated to an...
Definition: mitkMesh.h:54
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
vtkAppendPolyData * m_Spheres
LocalStorageHandler< BaseLocalStorage > m_LSH
vtkPolyDataMapper * m_SpheresMapper