Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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 __vtkUnstructuredGridMapper_h
18 #define __vtkUnstructuredGridMapper_h
19 
20 #include "MitkMapperExtExports.h"
21 #include "mitkBaseRenderer.h"
22 #include "mitkBoundingObject.h"
23 #include "mitkCommon.h"
24 
25 #include "vtkMapper.h"
26 
27 class vtkPolyDataMapper;
28 class vtkGeometryFilter;
29 class vtkUnstructuredGrid;
30 
32 {
33 public:
35  vtkTypeMacro(vtkUnstructuredGridMapper, vtkMapper);
36  void PrintSelf(ostream &os, vtkIndent indent) override;
37  void Render(vtkRenderer *ren, vtkActor *act) override;
38 
39  // Description:
40  // Get the internal poly data mapper used to map data set to graphics system.
41  vtkGetObjectMacro(PolyDataMapper, vtkPolyDataMapper);
42 
43  // Description:
44  // Release any graphics resources that are being consumed by this mapper.
45  // The parameter window could be used to determine which graphic
46  // resources to release.
47  // deprecatedSince{2013_12} Use ReleaseGraphicsResources(mitk::BaseRenderer* renderer) instead
48  DEPRECATED(void ReleaseGraphicsResources(vtkWindow *) override);
49 
50  // Description:
51  // Release any graphics resources that are being consumed by this mapper.
52  // The parameter renderer could be used to determine which graphic
53  // resources to release.
54  // deprecatedSince{2013_12} Use ReleaseGraphicsResources(mitk::BaseRenderer* renderer) instead
55  void ReleaseGraphicsResources(mitk::BaseRenderer *renderer);
56 
57  // Description:
58  // Get the mtime also considering the lookup table.
59  unsigned long GetMTime() override;
60 
61  // Description:
62  // Set the Input of this mapper.
63  void SetInput(vtkUnstructuredGrid *input);
64  vtkUnstructuredGrid *GetInput();
65 
66  void SetBoundingObject(mitk::BoundingObject *bo);
67 
68 protected:
71 
72  vtkGeometryFilter *GeometryExtractor;
73  vtkPolyDataMapper *PolyDataMapper;
74 
76 
77  virtual void ReportReferences(vtkGarbageCollector *) override;
78 
79  // see algorithm for more info
80  virtual int FillInputPortInformation(int port, vtkInformation *info) override;
81 
82 private:
83  vtkUnstructuredGridMapper(const vtkUnstructuredGridMapper &); // Not implemented.
84  void operator=(const vtkUnstructuredGridMapper &); // Not implemented.
85 };
86 
87 #endif // __vtkUnstructuredGridMapper_h
mitk::BoundingObject::Pointer m_BoundingObject
#define MITKMAPPEREXT_EXPORT
Organizes the rendering process.
static void info(const char *fmt,...)
Definition: svm.cpp:100
#define DEPRECATED(func)
Definition: mitkCommon.h:183
superclass of all bounding objects (cylinder, cuboid,...)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.