Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkUnstructuredGridVtkMapper3D.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 mitkUnstructuredGridVtkMapper3D_h
14 #define mitkUnstructuredGridVtkMapper3D_h
15 
16 #include "MitkMapperExtExports.h"
17 #include "mitkBaseRenderer.h"
18 #include "mitkCommon.h"
19 #include "mitkUnstructuredGrid.h"
20 #include "mitkVtkMapper.h"
21 
22 #include <vtkActor.h>
23 #include <vtkAssembly.h>
24 #include <vtkDataSetTriangleFilter.h>
25 #include <vtkVolume.h>
26 
28 #include <vtkUnstructuredGridVolumeRayCastMapper.h>
29 
30 #include <vtkProjectedTetrahedraMapper.h>
31 #include <vtkUnstructuredGridVolumeZSweepMapper.h>
32 
33 namespace mitk
34 {
35  //##Documentation
36  //## @brief Vtk-based mapper for UnstructuredGrid
37  //##
38  //## @ingroup Mapper
40  {
41  public:
43 
44  itkFactorylessNewMacro(Self);
45 
46  itkCloneMacro(Self);
47 
48  virtual const mitk::UnstructuredGrid *GetInput();
49 
50  vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
51 
52  static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer = nullptr, bool overwrite = false);
53 
54  void ApplyProperties(vtkActor * /*actor*/, mitk::BaseRenderer *renderer) override;
55 
57 
58  protected:
60 
61  ~UnstructuredGridVtkMapper3D() override;
62 
63  void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override;
64  void ResetMapper(BaseRenderer * /*renderer*/) override;
65 
66  void SetProperties(mitk::BaseRenderer *renderer);
67 
68  vtkAssembly *m_Assembly;
69  vtkActor *m_Actor;
70  vtkActor *m_ActorWireframe;
71  vtkVolume *m_Volume;
72 
73  vtkDataSetTriangleFilter *m_VtkTriangleFilter;
74 
77 
78  vtkUnstructuredGridVolumeRayCastMapper *m_VtkVolumeRayCastMapper;
79  vtkProjectedTetrahedraMapper *m_VtkPTMapper;
80  vtkUnstructuredGridVolumeZSweepMapper *m_VtkVolumeZSweepMapper;
81  };
82 
83 } // namespace mitk
84 
85 #endif
mitk::DICOMIOHelper::SetProperties
MITKDICOM_EXPORT void SetProperties(BaseData *image, const FindingsListVectorType &findings)
MitkMapperExtExports.h
mitk::UnstructuredGridVtkMapper3D::m_ActorWireframe
vtkActor * m_ActorWireframe
Definition: mitkUnstructuredGridVtkMapper3D.h:70
vtkUnstructuredGridMapper
Definition: vtkUnstructuredGridMapper.h:27
mitk::UnstructuredGridVtkMapper3D::m_Volume
vtkVolume * m_Volume
Definition: mitkUnstructuredGridVtkMapper3D.h:71
mitkUnstructuredGrid.h
mitk::UnstructuredGrid
Class for storing unstructured grids (vtkUnstructuredGrid)
Definition: mitkUnstructuredGrid.h:27
mitk::UnstructuredGridVtkMapper3D::m_Actor
vtkActor * m_Actor
Definition: mitkUnstructuredGridVtkMapper3D.h:69
mitk::UnstructuredGridVtkMapper3D
Vtk-based mapper for UnstructuredGrid.
Definition: mitkUnstructuredGridVtkMapper3D.h:39
mitk::UnstructuredGridVtkMapper3D::m_VtkDataSetMapper
vtkUnstructuredGridMapper * m_VtkDataSetMapper
Definition: mitkUnstructuredGridVtkMapper3D.h:75
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::UnstructuredGridVtkMapper3D::m_LSH
LocalStorageHandler< BaseLocalStorage > m_LSH
Definition: mitkUnstructuredGridVtkMapper3D.h:56
mitk::LocalStorageHandler< BaseLocalStorage >
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
mitk::VtkMapper
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition: mitkVtkMapper.h:47
mitkCommon.h
mitk::UnstructuredGridVtkMapper3D::m_VtkVolumeZSweepMapper
vtkUnstructuredGridVolumeZSweepMapper * m_VtkVolumeZSweepMapper
Definition: mitkUnstructuredGridVtkMapper3D.h:80
mitkVtkMapper.h
mitk::UnstructuredGridVtkMapper3D::m_VtkDataSetMapper2
vtkUnstructuredGridMapper * m_VtkDataSetMapper2
Definition: mitkUnstructuredGridVtkMapper3D.h:76
mitk::UnstructuredGridVtkMapper3D::m_VtkPTMapper
vtkProjectedTetrahedraMapper * m_VtkPTMapper
Definition: mitkUnstructuredGridVtkMapper3D.h:79
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
vtkUnstructuredGridMapper.h
mitk::UnstructuredGridVtkMapper3D::m_VtkTriangleFilter
vtkDataSetTriangleFilter * m_VtkTriangleFilter
Definition: mitkUnstructuredGridVtkMapper3D.h:73
mitk::UnstructuredGridVtkMapper3D::m_Assembly
vtkAssembly * m_Assembly
Definition: mitkUnstructuredGridVtkMapper3D.h:68
mitkBaseRenderer.h
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
MITKMAPPEREXT_EXPORT
#define MITKMAPPEREXT_EXPORT
Definition: MitkMapperExtExports.h:15
mitk::UnstructuredGridVtkMapper3D::m_VtkVolumeRayCastMapper
vtkUnstructuredGridVolumeRayCastMapper * m_VtkVolumeRayCastMapper
Definition: mitkUnstructuredGridVtkMapper3D.h:78
mitk::ROIMapperHelper::SetDefaultProperties
void SetDefaultProperties(DataNode *node, BaseRenderer *renderer, bool override)
Set common default properties for both 2-d and 3-d ROI mappers.