Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVtkSimulationPolyDataMapper3D.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 mitkVtkSimulationPolyDataMapper3D_h
18 #define mitkVtkSimulationPolyDataMapper3D_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 vtkSimulationPolyDataMapper3D : public vtkPolyDataMapper
29  {
30  public:
32  vtkTypeMacro(vtkSimulationPolyDataMapper3D, vtkPolyDataMapper);
33 
34  using vtkPolyDataMapper::GetBounds;
35  double* GetBounds() override;
36 
37  void Render(vtkRenderer* renderer, vtkActor* actor) override;
38  void RenderPiece(vtkRenderer*, vtkActor*) override;
39  void SetSimulation(mitk::Simulation::Pointer simulation);
40 
41  private:
44 
45  Simulation::Pointer m_Simulation;
46  ISimulationService* m_SimulationService;
47  };
48 }
49 
50 #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.