Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkSetVtkRendererVisitor.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 mitkSetVtkRendererVisitor_h
18 #define mitkSetVtkRendererVisitor_h
19 
20 #include <sofa/simulation/common/Visitor.h>
21 #include <MitkSimulationExports.h>
22 
23 class vtkRenderer;
24 
25 namespace mitk
26 {
27  class MITKSIMULATION_EXPORT SetVtkRendererVisitor : public sofa::simulation::Visitor
28  {
29  public:
30  explicit SetVtkRendererVisitor(vtkRenderer* renderer, const sofa::core::ExecParams* params = sofa::core::ExecParams::defaultInstance());
32 
33  using sofa::simulation::Visitor::processNodeTopDown;
34  Result processNodeTopDown(sofa::simulation::Node* node) override;
35 
36  private:
39 
40  void processVisualModel(sofa::simulation::Node*, sofa::core::visual::VisualModel* visualModel);
41 
42  vtkRenderer* m_VtkRenderer;
43  };
44 }
45 
46 #endif
DataCollection - Class to facilitate loading/accessing structured data.