fw4spl
SModelSeriesObjWriter.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 #ifndef ANDROID
10 
11 #include "ioVTK/config.hpp"
12 
13 #include <fwData/Mesh.hpp>
14 
15 #include <fwIO/IWriter.hpp>
16 
17 #include <boost/filesystem/path.hpp>
18 
19 #include <string>
20 
21 namespace fwData
22 {
23 class Mesh;
24 }
25 
26 namespace fwJobs
27 {
28 class IJob;
29 }
30 
31 namespace ioVTK
32 {
33 
57 class IOVTK_CLASS_API SModelSeriesObjWriter : public ::fwIO::IWriter
58 {
59 
60 public:
61 
62  typedef ::fwCom::Signal< void ( SPTR(::fwJobs::IJob) ) > JobCreatedSignalType;
63 
67  IOVTK_API SModelSeriesObjWriter() noexcept;
68 
69  ~SModelSeriesObjWriter() noexcept
70  {
71  }
72 
74 
80  IOVTK_API virtual void configureWithIHM() override;
81 
82 protected:
83 
84  IOVTK_API virtual ::fwIO::IOPathType getIOPathType() const override;
85 
91  IOVTK_API virtual void starting() override;
92 
98  IOVTK_API virtual void stopping() override;
99 
105  IOVTK_API virtual void configuring() override;
106 
113  IOVTK_API void updating() override;
114 
121  IOVTK_API void info(std::ostream& _sstream ) override;
122 
123 private:
124 
129  bool m_bServiceIsConfigured;
130 
134  ::boost::filesystem::path m_fsMeshPath;
135 
136  SPTR(JobCreatedSignalType) m_sigJobCreated;
137 
138 };
139 
140 } // namespace ioVTK
141 
142 #endif //ANDROID
#define SPTR(_cls_)
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Writer service API. It manages extension points definition and extension configuration.
Definition: IWriter.hpp:33
Contains the representation of the data objects used in the framework.
This namespace fwJobs provides jobs management.
The namespace ioVTK contains reader, writer and helper using the fwVtkIO lib for output and input act...