Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVtkSimulationPolyDataMapper2D.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 mitkVtkSimulationPolyDataMapper2D_h
18 #define mitkVtkSimulationPolyDataMapper2D_h
19 
20 #include <mitkSimulation.h>
21 #include <vtkPolyDataMapper.h>
22 #include <MitkSimulationExports.h>
23 
24 namespace mitk
25 {
26  class ISimulationService;
27 
28  class MITKSIMULATION_EXPORT vtkSimulationPolyDataMapper2D : public vtkPolyDataMapper
29  {
30  public:
32  vtkTypeMacro(vtkSimulationPolyDataMapper2D, vtkPolyDataMapper);
33 
34  using vtkPolyDataMapper::GetBounds;
35  double* GetBounds() override;
36  void Render(vtkRenderer* renderer, vtkActor* actor) override;
37  void RenderPiece(vtkRenderer*, vtkActor*) override;
38  void SetSimulation(mitk::Simulation::Pointer simulation);
39 
40  private:
43 
44  Simulation::Pointer m_Simulation;
45  ISimulationService* m_SimulationService;
46  };
47 }
48 
49 #endif
DataCollection - Class to facilitate loading/accessing structured data.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.