if(wxArray.size() >0)
{
m_results.clear();
- infoimage=_T("FILE(s):")+wxArray[0];
+ infoimage = wxArray[0];
+ infoimageSource = _T("FILE(s)");
std::vector<std::string> files;
for( int i = 0; i < wxArray.GetCount(); i++)
{
if ( resultShowModal==wxID_OK )
{
m_results.clear();
- infoimage=_T("DIRECTORY:")+dirDlg->GetPath();
+ infoimage = dirDlg->GetPath();
+ infoimageSource = _T("DIRECTORY");
if(! m_view.readDirectory(crea::wx2std(dirDlg->GetPath()) , m_attrDicomTags , m_resultsDicomAtr , m_results))
{
//TO DO WARNING MESSAGE;
// }
// }
+ infoimage = _T("EED Missing info <void> ???");
+ infoimageSource = _T("GIMMICK");
+
dlg.OnExit();
}
SetReturnCode( dlg.GetReturnCode() );
return infoimage;
}
+//-----------------------------------------------------------------------------
+ wxString WxSimpleDlg::getInfoImageSource()
+ {
+ return infoimageSource;
+ }
+
//////////////////////////////////////////////////////////////////////
// Return the results vector //
//////////////////////////////////////////////////////////////////////
first->GetDimensions(dim);
if (dim[2]==1)
{
- vtkImageData *out;
- out = vtkImageData::New();
- out->SetScalarType(first->GetScalarType());
- out->SetNumberOfScalarComponents(first->GetNumberOfScalarComponents());
+ vtkImageData *out = vtkImageData::New();
int ext[6];
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
first->GetWholeExtent(ext);
+#else
+ first->GetExtent(ext);
+#endif
if(ext[5] == 0)
{
ext[5] = getImagesSelected().size()-1;
}
out->SetSpacing(spac);
out->SetDimensions(dim[0], dim[1], getImagesSelected().size() );
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
+
+ out->SetScalarType(first->GetScalarType());
+ out->SetNumberOfScalarComponents(first->GetNumberOfScalarComponents());
out->AllocateScalars();
out->Update();
+#else
+ out->AllocateScalars(first->GetScalarType(),first->GetNumberOfScalarComponents());
+#endif
+
+
unsigned long imsize = dim[0] * dim[1];
imsize = imsize * dim[2]; // deal with multiframes here
// differents formats char , short, etc...