fw4spl
ModelSeriesObjWriter.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 "fwVtkIO/config.hpp"
10 
11 #include <fwData/location/Folder.hpp>
12 
13 #include <fwDataIO/writer/GenericObjectWriter.hpp>
14 
15 #include <boost/filesystem/path.hpp>
16 
17 namespace fwData
18 {
19 class Reconstruction;
20 }
21 
22 namespace fwMedData
23 {
24 class ModelSeries;
25 }
26 
27 namespace fwJobs
28 {
29 class Observer;
30 }
31 
32 namespace fwVtkIO
33 {
34 
40 class ModelSeriesObjWriter : public ::fwDataIO::writer::GenericObjectWriter< ::fwMedData::ModelSeries >,
41  public ::fwData::location::enableFolder< ::fwDataIO::writer::IObjectWriter >
42 {
43 
44 public:
45 
48  (()),
49  ::fwDataIO::writer::factory::New< ModelSeriesObjWriter >
50  );
51 
53 
56 
58  FWVTKIO_API ~ModelSeriesObjWriter();
59 
61  FWVTKIO_API void write() override;
62 
66  FWVTKIO_API std::string extension() override;
67 
69  FWVTKIO_API SPTR(::fwJobs::IJob) getJob() const override;
70 
71 private:
72 
74  SPTR(::fwJobs::Observer) m_job;
75 };
76 
77 } // namespace fwVtkIO
#define SPTR(_cls_)
This class is an interface for class managing job.
Definition: IJob.hpp:28
Namespace containing medical data.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Write a fwData::Reconstruction.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
#define fwCoreAllowSharedFromThis()
Generate getSptr and getConstSptr methods.
This class is derived by reader/writer.
Definition: Folder.hpp:80
Contains the representation of the data objects used in the framework.
This namespace fwJobs provides jobs management.
generic class for all object writers.