fw4spl
visu/visuVTKAdaptor/include/visuVTKAdaptor/SSnapshot.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #pragma once
8 
9 #include "visuVTKAdaptor/config.hpp"
10 
11 #include <fwRenderVTK/IAdaptor.hpp>
12 
13 namespace visuVTKAdaptor
14 {
40 class VISUVTKADAPTOR_CLASS_API SSnapshot : public ::fwRenderVTK::IAdaptor
41 {
42 
43 public:
44 
46 
47  VISUVTKADAPTOR_API SSnapshot() noexcept;
48 
49  VISUVTKADAPTOR_API virtual ~SSnapshot() noexcept;
50 
51 protected:
52 
53  VISUVTKADAPTOR_API void configuring() override;
54  VISUVTKADAPTOR_API void starting() override;
55  VISUVTKADAPTOR_API void updating() override;
56  VISUVTKADAPTOR_API void stopping() override;
57 
58 private:
59 
64  static const ::fwCom::Slots::SlotKeyType s_SNAP_SLOT;
66 
68  static const ::fwCom::Slots::SlotKeyType s_SNAPTOIMAGE_SLOT;
69 
71  void snap(std::string filePath);
72 
74  void snapToImage();
79  std::string m_imageUid;
81 };
82 
83 } //namespace visuVTKAdaptor
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
Namespace containing fw4spl communication tools.
Definition: DumpEditor.hpp:30
STL namespace.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
This service will snapshot the current generic scene.