fw4spl
fwMedDataTools::ModelSeries Class Reference

This class contains helper to manipulate ::fwData::ModelSeries. More...

#include <ModelSeries.hpp>

Static Public Member Functions

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. More...
 
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. More...
 
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. More...
 

Detailed Description

This class contains helper to manipulate ::fwData::ModelSeries.

Definition at line 28 of file ools/include/fwMedDataTools/ModelSeries.hpp.

Member Function Documentation

void fwMedDataTools::ModelSeries::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 
)
static

Add a mesh into a model series. A reconstruction for this mesh will be automatically created.

Parameters
_modelSeriesModel series where the mesh must be added.
_meshMesh that must be added
_organNameOrgan name to associate with the mesh
_structureTypeStructure type to associate with the mesh
_colorColor of the material of the reconstruction.
_modeRepresentation mode of the material of the reconstruction.
_visibleVisibility flag of the reconstruction.

Definition at line 17 of file ools/src/fwMedDataTools/ModelSeries.cpp.

References addReconstruction(), createReconstructionFromMesh(), and fwMedData::ModelSeries::s_RECONSTRUCTIONS_ADDED_SIG.

+ Here is the call graph for this function:

void fwMedDataTools::ModelSeries::addReconstruction ( ::fwMedData::ModelSeries::sptr &  _modelSeries,
::fwData::Reconstruction::sptr &  _rec 
)
static

Add a mesh into a model series. A reconstruction for this mesh will be created.

Parameters
_modelSeriesModel series where the mesh must be added.
_recReconstruction that must be added

Definition at line 63 of file ools/src/fwMedDataTools/ModelSeries.cpp.

Referenced by addMesh().

+ Here is the caller graph for this function:

fwData::Reconstruction::sptr fwMedDataTools::ModelSeries::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 
)
static

Create a reconstruction from a mesh.

Parameters
_meshMesh that must be added
_organNameOrgan name to associate with the mesh
_structureTypeStructure type to associate with the mesh
_colorColor of the material of the reconstruction.
_modeRepresentation mode of the material of the reconstruction.
_visibleVisibility flag of the reconstruction.
Returns
Output reconstruction.

Definition at line 38 of file ools/src/fwMedDataTools/ModelSeries.cpp.

Referenced by addMesh().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: