fw4spl
Bundles/visu/visuVTK/src/visuVTK/Plugin.cpp
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 #include "visuVTK/Plugin.hpp"
8 
9 #include <fwRender/IRender.hpp>
10 
11 #include <fwRenderVTK/SRender.hpp>
12 #include <fwRenderVTK/vtk/Instantiator.hpp>
13 
14 #include <fwRuntime/utils/GenericExecutableFactoryRegistrar.hpp>
15 
16 #include <fwServices/macros.hpp>
17 
18 namespace visuVTK
19 {
20 
21 static ::fwRuntime::utils::GenericExecutableFactoryRegistrar<Plugin> registrar("::visuVTK::Plugin");
22 
24 fwServicesRegisterMacro( ::fwRender::IRender, ::fwRenderVTK::SRender );
25 
26 Plugin::~Plugin() noexcept
27 {
28 }
29 
30 //------------------------------------------------------------------------------
31 
33 {
34  ::fwRenderVTK::vtk::Instantiator::ClassInitialize();
35 }
36 
37 //------------------------------------------------------------------------------
38 
39 void Plugin::stop() noexcept
40 {
41  ::fwRenderVTK::vtk::Instantiator::ClassFinalize();
42 }
43 
44 } // namespace visuVTK
~Plugin() noexcept
destructor
VISUVTK_API void start()
Overrides.
Defines the service interface managing the rendering service for object.
Definition: IRender.hpp:36
VISUVTK_API void stop() noexcept
Overrides.
The generic scene service shows adaptors in a 3D VTK scene.
The namespace visuVTK supplies a default plugin implementation for the visuVTK bundle.