Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
vtkUnstructuredGridMapper.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 __vtkUnstructuredGridMapper_h
14 #define __vtkUnstructuredGridMapper_h
15 
16 #include "MitkMapperExtExports.h"
17 #include "mitkBaseRenderer.h"
18 #include "mitkBoundingObject.h"
19 #include "mitkCommon.h"
20 
21 #include "vtkMapper.h"
22 
23 class vtkPolyDataMapper;
24 class vtkGeometryFilter;
25 class vtkUnstructuredGrid;
26 
28 {
29 public:
30  static vtkUnstructuredGridMapper *New();
31  vtkTypeMacro(vtkUnstructuredGridMapper, vtkMapper);
32  void PrintSelf(ostream &os, vtkIndent indent) override;
33  void Render(vtkRenderer *ren, vtkActor *act) override;
34 
35  // Description:
36  // Get the internal poly data mapper used to map data set to graphics system.
37  vtkGetObjectMacro(PolyDataMapper, vtkPolyDataMapper);
38 
39  // Description:
40  // Release any graphics resources that are being consumed by this mapper.
41  // The parameter window could be used to determine which graphic
42  // resources to release.
43  // deprecatedSince{2013_12} Use ReleaseGraphicsResources(mitk::BaseRenderer* renderer) instead
44  DEPRECATED(void ReleaseGraphicsResources(vtkWindow *) override);
45 
46  // Description:
47  // Release any graphics resources that are being consumed by this mapper.
48  // The parameter renderer could be used to determine which graphic
49  // resources to release.
50  // deprecatedSince{2013_12} Use ReleaseGraphicsResources(mitk::BaseRenderer* renderer) instead
51  void ReleaseGraphicsResources(mitk::BaseRenderer *renderer);
52 
53  // Description:
54  // Get the mtime also considering the lookup table.
55  vtkMTimeType GetMTime() override;
56 
57  // Description:
58  // Set the Input of this mapper.
59  void SetInput(vtkUnstructuredGrid *input);
60  vtkUnstructuredGrid *GetInput();
61 
62  void SetBoundingObject(mitk::BoundingObject *bo);
63 
64 protected:
66  ~vtkUnstructuredGridMapper() override;
67 
68  vtkGeometryFilter *GeometryExtractor;
69  vtkPolyDataMapper *PolyDataMapper;
70 
72 
73  void ReportReferences(vtkGarbageCollector *) override;
74 
75  // see algorithm for more info
76  int FillInputPortInformation(int port, vtkInformation *info) override;
77 
78 private:
79  vtkUnstructuredGridMapper(const vtkUnstructuredGridMapper &); // Not implemented.
80  void operator=(const vtkUnstructuredGridMapper &); // Not implemented.
81 };
82 
83 #endif // __vtkUnstructuredGridMapper_h
vtkUnstructuredGridMapper::GeometryExtractor
vtkGeometryFilter * GeometryExtractor
Definition: vtkUnstructuredGridMapper.h:68
MitkMapperExtExports.h
vtkUnstructuredGridMapper
Definition: vtkUnstructuredGridMapper.h:27
DEPRECATED
#define DEPRECATED(func)
Definition: mitkCommon.h:175
vtkUnstructuredGridMapper::PolyDataMapper
vtkPolyDataMapper * PolyDataMapper
Definition: vtkUnstructuredGridMapper.h:69
mitkCommon.h
vtkUnstructuredGridMapper::m_BoundingObject
mitk::BoundingObject::Pointer m_BoundingObject
Definition: vtkUnstructuredGridMapper.h:71
mitkBoundingObject.h
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::BoundingObject
superclass of all bounding objects (cylinder, cuboid,...)
Definition: mitkBoundingObject.h:27
mitkBaseRenderer.h
mitk::Surface::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkSurface.h:33
MITKMAPPEREXT_EXPORT
#define MITKMAPPEREXT_EXPORT
Definition: MitkMapperExtExports.h:15