fw4spl
SModelSeriesReader.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 "ioVTK/config.hpp"
10 
11 #include <fwData/Mesh.hpp>
12 
13 #include <fwIO/IReader.hpp>
14 
15 #include <boost/filesystem/path.hpp>
16 
17 #include <string>
18 
19 namespace fwJobs
20 {
21 class IJob;
22 }
23 
24 namespace ioVTK
25 {
26 
52 class IOVTK_CLASS_API SModelSeriesReader : public ::fwIO::IReader
53 {
54 
55 public:
57 
58  typedef ::fwCom::Signal< void ( SPTR(::fwJobs::IJob) ) > JobCreatedSignalType;
59 
63  IOVTK_API SModelSeriesReader() noexcept;
64 
65  ~SModelSeriesReader() noexcept
66  {
67  }
68 
74  IOVTK_API virtual void configureWithIHM() override;
75 
76 protected:
77 
78  IOVTK_API virtual ::fwIO::IOPathType getIOPathType() const override;
79 
85  IOVTK_API virtual void starting() override;
86 
92  IOVTK_API virtual void stopping() override;
93 
99  IOVTK_API virtual void configuring() override;
100 
107  IOVTK_API void updating() override;
108 
115  IOVTK_API void info(std::ostream& _sstream ) override;
116 
117 private:
118 
119  IOVTK_API void loadMesh( const ::boost::filesystem::path file, ::fwData::Mesh::sptr mesh );
120 
121  SPTR(JobCreatedSignalType) m_sigJobCreated;
122 
123 };
124 
125 } // namespace ioVTK
#define SPTR(_cls_)
Reader service API. It manages extension points definition and extension configuration.
Definition: IReader.hpp:34
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
This namespace fwJobs provides jobs management.
The namespace ioVTK contains reader, writer and helper using the fwVtkIO lib for output and input act...