bbSetOutputOut(m_results[0]);
bbSetOutputOut2(m_results);
}
- std::vector<std::string> files;
- w.GetSelectedFiles(files);
- bbSetOutputFiles(files);
-
-
- bbSetOutputDicomInfo( m_resultsDicomAtr );
-
-
-
- w.OnExit();
+ std::vector<std::string> files;
+ w.GetSelectedFiles(files);
+ bbSetOutputFiles(files);
+ bbSetOutputDicomInfo( m_resultsDicomAtr );
+ w.OnExit();
}
i_attr.outside.push_back("D0019_100a"); // simens Number Of Images In Mosaic
-//EED Borrame
- int i,isize=i_attr.outside.size();
- for (i=0;i<isize;i++)
- {
- printf("EED GimmickView::readImages1 A i_attr out %s \n", i_attr.outside[i].c_str());
- }
-
-
-
std::vector<std::string>::iterator it;
for (it=im.begin(); it!=im.end(); ++it)
{
OutStrGimmick out;
out.img = vtkImageData::New();
out.img->ShallowCopy(mReader.GetImage(*it));
-printf("EED GimmickView::readImages1 A\n ");
if(i_attr.mult)
{
getAttributes((*it),out.infos,i_attr);
-printf("EED GimmickView::readImages1 B %s \n ", out.infos.find("D0019_100a")->second.c_str() );
}
o_output.push_back(out);
}
if(!i_attr.mult)
{
getAttributes(im.front(), o_output.front().infos, i_attr);
-printf("EED GimmickView::readImages1 C %s \n ", o_output.front().infos.find("D0019_100a")->second.c_str() );
}
}
try {
- mGimmick = boost::shared_ptr<Gimmick>(new Gimmick());
- mGimmick->Initialize(i_namedescp,i_namedb);
+ mGimmick = boost::shared_ptr<Gimmick>(new Gimmick());
+ mGimmick->Initialize(i_namedescp,i_namedb);
- mView = new WxGimmickView(mGimmick,
+ mView = new WxGimmickView(mGimmick,
this,
TVID,
wxDefaultPosition,
min_dim,
max_dim,
threads);
- mView->Initialize();
+ mView->Initialize();
// Connect the AddProgress callback
- mView->ConnectValidationObserver
+ mView->ConnectValidationObserver
( boost::bind( &WxGimmickReaderDialog::OnValid , this, _1 ) );
}
catch (crea::Exception e)
e.Print();
return;
}
-
mtopsizer->Add( mView,1,wxGROW,0);
-
wxSizer* bsizer = this->CreateSeparatedButtonSizer(wxOK|wxCANCEL);
/*mOkButton = new wxButton(this, wxID_OK, _T("OK"), wxPoint(170,50));
mCancelButton = new wxButton(this, wxID_CANCEL, _T("CANCEL"), wxPoint(210,50));
*/ mOkButton = (wxButton*)FindWindowById(GetAffirmativeId(), this);
mCancelButton = (wxButton*)FindWindowById(GetEscapeId(), this);
-
mOkButton->Enable(false);
mtopsizer->Add ( bsizer, 0, wxGROW );
-
- SetSizer( mtopsizer );
-
+ SetSizer( mtopsizer );
Layout();
}
{
mGimmick->Finalize();
}
-
}
///Callback method on a selection
/// \TODO fix warning: unused variable hsize
int hsize = size.GetHeight();
- int top_minsize = 450;
- int bottom_minsize = 50;
+ int top_minsize = 450;
+ int bottom_minsize = 50;
mSplitter->SetMinimumPaneSize( bottom_minsize );
mSplitter->SplitHorizontally( mNotebook, mBottomPanel,
//========================================================================
void WxGimmickView::CreateEditFieldsDialog(tree::Node* node, std::vector<std::string> names, std::vector<std::string> keys)
{
- wxDialog* dial= new wxDialog (this,-1,crea::std2wx("Edit Fields for node "+node->GetLabel()),wxDefaultPosition, wxSize(350,155));
- wxBoxSizer *siz = new wxBoxSizer(wxVERTICAL);
- WxEditFieldsPanel* ef = new WxEditFieldsPanel(dial, dial, this, node, names, keys);
+ wxDialog *dial= new wxDialog (this,-1,crea::std2wx("Edit Fields for node "+node->GetLabel()),wxDefaultPosition, wxSize(350,155));
+ wxBoxSizer *siz = new wxBoxSizer(wxVERTICAL);
+ WxEditFieldsPanel *ef = new WxEditFieldsPanel(dial, dial, this, node, names, keys);
siz->Add( ef,1,wxGROW ,0);
dial->SetSizer(siz);
dlg.ShowModal();
if (dlg.GetReturnCode() == wxID_OK)
{
- dlg.stopReading();
-
- std::vector<creaImageIO::OutStrGimmick> outStrGimmick;
- dlg.getSelected(outStrGimmick, m_attrDicomTags,true,"");
-
+ dlg.stopReading();
+ std::vector<creaImageIO::OutStrGimmick> outStrGimmick;
+ dlg.getSelected(outStrGimmick, m_attrDicomTags,true,"");
m_results.clear();
int size=(int)outStrGimmick.size();
int ii;
infoimage = _T("EED Missing info <void> ???");
infoimageSource = _T("GIMMICK");
-
dlg.OnExit();
}
SetReturnCode( dlg.GetReturnCode() );