for (i=0;i<size;i++)
{
- tmpMap = bbGetInputIn()[i];
- printf("EED GetDicomAttributesFromMaps::Process %d", tmpMap.size() );
-
- strElement = tmpMap.find( bbGetInputKeyDicom() )->second;
- lstResult.push_back( strElement );
+ tmpMap = bbGetInputIn()[i];
+ strElement = tmpMap.find( bbGetInputKeyDicom() )->second;
+ lstResult.push_back( strElement );
} // for i
bbSetOutputOut( lstResult );
bool mult, const std::string out_model)
{
// First we select the files
- std::vector<std::string> files;
+ std::vector<std::string> files;
std::string db_name = crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection()));
GetTreeViewMap()[crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection()))]->GetSelectedAsString(files);
mGimmick->GetSetting(SETTINGS_OUTPUT_ASK, asking);
mGimmick->GetSetting(SETTINGS_OUTPUT_DIM, dim);
+
if (asking == "true")
{
// display the output dialog box
dim = dlg->getDim();
mGimmick->UpdateSetting(SETTINGS_OUTPUT_ASK, dlg->getAsking());
mGimmick->UpdateSetting(SETTINGS_OUTPUT_DIM, dim);
- }
- else
- {
+ } else {
return;
}
- }
- else
- {
+ } else {
}
sscanf(dim.c_str(),"%d",&i_dim_out);
-
// Next we create the structure for dicom output infos
OutputAttr Oattr;
+//EED 01/09/2014
+ if (i_dim_out==2)
+ {
+ Oattr.mult=true;
+ } // i_dim_out
+
+
Oattr.db = crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection()));
if(i_attr.empty())
{
// We don't send informations!
- }
- else if( i_attr.size() == 1 && i_attr.front() == "ALL")
+ } else if( i_attr.size() == 1 && i_attr.front() == "ALL")
{
// we send all database
Oattr.inside.push_back("ALL");
- }
- else if( (i_attr.size() == 1 && i_attr.front() != "ALL")
+ } else if( (i_attr.size() == 1 && i_attr.front() != "ALL")
|| (i_attr.size() >1) )
{
mGimmick->fillVectInfos(i_attr, Oattr);
- }
- else
- {
+ } else {
// nothing
}