fw4spl
ools/include/fwMedDataTools/ModelSeries.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2014-2016.
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 __FWMEDDATATOOLS_MODELSERIES_HPP__
8 #define __FWMEDDATATOOLS_MODELSERIES_HPP__
9 
10 #include "fwMedDataTools/config.hpp"
11 
12 #include <fwData/Color.hpp>
13 #include <fwData/Material.hpp>
14 #include <fwData/Mesh.hpp>
15 #include <fwData/Reconstruction.hpp>
16 
17 #include <fwMedData/ModelSeries.hpp>
18 
19 #include <string>
20 
21 namespace fwMedDataTools
22 {
23 
29 {
30 public:
31 
37  FWMEDDATATOOLS_API static void addReconstruction( ::fwMedData::ModelSeries::sptr& _modelSeries,
38  ::fwData::Reconstruction::sptr& _rec);
39 
50  FWMEDDATATOOLS_API static ::fwData::Reconstruction::sptr
51  createReconstructionFromMesh( const ::fwData::Mesh::sptr& _mesh,
52  const std::string& _organName,
53  const std::string& _structureType,
54  const ::fwData::Color::sptr& _color = ::fwData::Color::New(),
55  ::fwData::Material::RepresentationType _mode = ::fwData::Material::SURFACE,
56  bool _visible = true);
57 
68  FWMEDDATATOOLS_API static void
69  addMesh( ::fwMedData::ModelSeries::sptr& _modelSeries,
70  const ::fwData::Mesh::sptr& _mesh,
71  const std::string& _organName, const std::string& _structureType,
72  const ::fwData::Color::sptr& _color = ::fwData::Color::New(),
73  ::fwData::Material::RepresentationType _mode = ::fwData::Material::SURFACE,
74  bool _visible = true);
75 };
76 
77 } // end namespace fwMedDataTools
78 
79 #endif // __FWMEDDATATOOLS_MODELSERIES_HPP__
static FWMEDDATATOOLS_API void addReconstruction(::fwMedData::ModelSeries::sptr &_modelSeries,::fwData::Reconstruction::sptr &_rec)
Add a mesh into a model series. A reconstruction for this mesh will be created.
This class contains helper to manipulate ::fwData::ModelSeries.
static FWMEDDATATOOLS_API::fwData::Reconstruction::sptr createReconstructionFromMesh(const ::fwData::Mesh::sptr &_mesh, const std::string &_organName, const std::string &_structureType, const ::fwData::Color::sptr &_color=::fwData::Color::New(),::fwData::Material::RepresentationType _mode=::fwData::Material::SURFACE, bool _visible=true)
Create a reconstruction from a mesh.
static FWMEDDATATOOLS_API void addMesh(::fwMedData::ModelSeries::sptr &_modelSeries, const ::fwData::Mesh::sptr &_mesh, const std::string &_organName, const std::string &_structureType, const ::fwData::Color::sptr &_color=::fwData::Color::New(),::fwData::Material::RepresentationType _mode=::fwData::Material::SURFACE, bool _visible=true)
Add a mesh into a model series. A reconstruction for this mesh will be automatically created...
RepresentationType
Representation models.
Contains utilities dedicated to fwMedData.