7 #include "fwMedDataTools/ModelSeries.hpp" 9 #include <fwCom/Signal.hxx> 18 const std::string& _organName,
const std::string& _structureType,
23 ::fwData::Reconstruction::sptr reconstructionQuadMesh =
31 ::fwMedData::ModelSeries::ReconstructionVectorType reconstructionsVector;
32 reconstructionsVector.push_back(reconstructionQuadMesh);
33 sig->asyncEmit(reconstructionsVector);
39 const std::string& _organName,
40 const std::string& _structureType,
41 const ::fwData::Color::sptr& _color,
45 ::fwData::Color::sptr diffuse = ::fwData::Color::New();
46 diffuse->setRGBA(_color->red(), _color->green(), _color->blue(), _color->alpha());
47 ::fwData::Material::sptr pMaterial = ::fwData::Material::New();
48 pMaterial->setDiffuse(diffuse);
49 pMaterial->setRepresentationMode(_mode);
51 ::fwData::Reconstruction::sptr reconstruction = ::fwData::Reconstruction::New();
52 reconstruction->setMesh(_mesh);
53 reconstruction->setIsVisible(_visible);
54 reconstruction->setOrganName(_organName);
55 reconstruction->setStructureType(_structureType);
56 reconstruction->setMaterial(pMaterial);
58 return reconstruction;
65 ::fwMedData::ModelSeries::ReconstructionVectorType recDB = _modelSeries->getReconstructionDB();
67 FW_RAISE_IF(
"Reconstruction is invalid.", _rec ==
nullptr);
68 FW_RAISE_IF(
"Reconstruction already exists in ModelSeries.",
69 std::find(recDB.begin(), recDB.end(), _rec) != recDB.end());
71 recDB.push_back(_rec);
72 _modelSeries->setReconstructionDB(recDB);
static FWMEDDATA_APIconst::fwCom::Signals::SignalKeyType s_RECONSTRUCTIONS_ADDED_SIG
Key in m_signals map of signal m_sigReconstructionsAdded.
This file defines SpyLog macros. These macros are used to log messages to a file or to the console du...
RepresentationType
Representation models.