Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkExportMitkVisitor.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 mitkExportMitkVisitor_h
18 #define mitkExportMitkVisitor_h
19 
20 #include <mitkDataStorage.h>
21 #include <sofa/simulation/common/Visitor.h>
22 #include <MitkSimulationExports.h>
23 
24 namespace mitk
25 {
26  class MITKSIMULATION_EXPORT ExportMitkVisitor : public sofa::simulation::Visitor
27  {
28  public:
29  explicit ExportMitkVisitor(DataStorage::Pointer dataStorage, const sofa::core::ExecParams* params = sofa::core::ExecParams::defaultInstance());
30  ExportMitkVisitor(DataStorage::Pointer dataStorage, const std::string& visualModelName, 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:
38  ExportMitkVisitor& operator=(const ExportMitkVisitor&);
39 
40  void processVisualModel(sofa::simulation::Node* node, sofa::core::visual::VisualModel* visualModel);
41 
43  std::string m_VisualModelName;
44  };
45 }
46 
47 #endif
DataCollection - Class to facilitate loading/accessing structured data.
mitk::DataStorage::Pointer m_DataStorage