fw4spl
TransformationMatrix3DReader.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 __FWDATAIO_READER_TRANSFORMATIONMATRIX3DREADER_HPP__
8 #define __FWDATAIO_READER_TRANSFORMATIONMATRIX3DREADER_HPP__
9 
10 #include "fwDataIO/config.hpp"
11 #include "fwDataIO/reader/GenericObjectReader.hpp"
12 
13 #include <fwData/location/SingleFile.hpp>
14 #include <fwData/TransformationMatrix3D.hpp>
15 
16 namespace fwDataIO
17 {
18 
19 namespace reader
20 {
21 
29 class FWDATAIO_CLASS_API TransformationMatrix3DReader :
30  public GenericObjectReader< ::fwData::TransformationMatrix3D >,
31  public ::fwData::location::enableSingleFile< IObjectReader >
32 {
33 
34 public:
35 
37  TransformationMatrix3D >),
38  (()),
39  ::fwDataIO::reader::factory::New< TransformationMatrix3DReader >
40  );
41 
44 
46  FWDATAIO_API virtual ~TransformationMatrix3DReader();
47 
49  FWDATAIO_API virtual void read() override;
50 
52  FWDATAIO_API virtual std::string extension() override;
53 
54 };
55 
56 }
57 
58 }
59 
60 #endif /* __FWDATAIO_READER_TRANSFORMATIONMATRIX3DREADER_HPP__ */
Reader for transformation of 3D Matrix. Read file format .trf.
This namespace fwDataIO contains reader and writer for several framework&#39;s data.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
generic class for all object readers.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
This class is derived by reader/writer.
Definition: SingleFile.hpp:70
Contains the representation of the data objects used in the framework.