fw4spl
SResectionDB.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 #ifndef __VISUVTKADAPTOR_SRESECTIONDB_HPP__
8 #define __VISUVTKADAPTOR_SRESECTIONDB_HPP__
9 
10 #include "visuVTKAdaptor/config.hpp"
11 
12 #include <fwRenderVTK/IAdaptor.hpp>
13 
14 namespace visuVTKAdaptor
15 {
16 
38 class VISUVTKADAPTOR_CLASS_API SResectionDB : public ::fwRenderVTK::IAdaptor
39 {
40 
41 public:
43 
44  VISUVTKADAPTOR_API SResectionDB() noexcept;
45 
46  VISUVTKADAPTOR_API virtual ~SResectionDB() noexcept;
47 
48  void setClippingPlanes(::fwRenderVTK::SRender::VtkObjectIdType id);
49 
50 protected:
51 
52  VISUVTKADAPTOR_API void configuring() override;
53  VISUVTKADAPTOR_API void starting() override;
54  VISUVTKADAPTOR_API void updating() override;
55  VISUVTKADAPTOR_API void stopping() override;
56 
65  VISUVTKADAPTOR_API virtual KeyConnectionsMap getAutoConnections() const override;
66 
67 private:
68  ::fwRenderVTK::SRender::VtkObjectIdType m_clippingPlanes;
69  bool m_autoResetCamera;
70 };
71 
72 //------------------------------------------------------------------------------
73 
74 inline void SResectionDB::setClippingPlanes(::fwRenderVTK::SRender::VtkObjectIdType id)
75 {
76  m_clippingPlanes = id;
77 }
78 
79 } //namespace visuVTKAdaptor
80 
81 #endif // __VISUVTKADAPTOR_SRESECTIONDB_HPP__
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace fwRenderVTK contains classes for rendering with VTK.
This service displays a ResectionDB (it launchs Resection adators)