else if (im.size()>1) // Test inutile ? JPR
{
/// \TODO fix unused variable 'first'
- vtkImageData* first = mReader.GetImage( im.front());
+// vtkImageData* first = mReader.GetImage( im.front());
if (dimension == 2)
{
// n3D
vtkImageData* out = vtkImageData::New();
out->ShallowCopy(mReader.GetImage(*it));
s.push_back(out);
- }
- }
- else
- {
+ } // for
+ } else {
// n2D to 3D // NO!
// n *2D + T in a vector :
{
vtkImageData* out = mReader.GetImage( (*it));
s.push_back(out);
- }
- }
- }
+ } // for
+ } // if dimension
+ } // if im.size
}
//======================================================================
// We need a gdcm::FileHelper, since we want to load the pixels
GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(file);
-
- uint8_t *imageData = fh->GetImageData();
+
+//Borrame
+//EED uint8_t *imageData = fh->GetImageData();
// Institution name
file->AddAnonymizeElement(0x0008, 0x0080, "*");
// Signal/slot mechanism for progress events
-#include <boost/signal.hpp>
+#include <boost/signals2/signal.hpp>
#include <boost/bind.hpp>
#define GIMMICK_NO_IMAGE_SELECTION 0
vtkImageData* GetDefaultImage() { return mReader.GetImage(""); }
//=============================================
- typedef boost::signal<void (bool)> ValidationSignalType;
+ typedef boost::signals2::signal<void (bool)> ValidationSignalType;
typedef ValidationSignalType::slot_function_type ValidationCallbackType;
//=============================================
#include <time.h>
#include <wx/thread.h>
// Signal/slot mechanism
-#include <boost/signal.hpp>
+#include <boost/signals2/signal.hpp>
#include <boost/bind.hpp>
#include <boost/thread/mutex.hpp>
///Related with signals
//=============================================
- typedef boost::signal<void (bool)> MountingSignalType;
+ typedef boost::signals2::signal<void (bool)> MountingSignalType;
typedef MountingSignalType::slot_function_type MountingCallbackType;
//=============================================
do
{
pos = str.find('\\');
- if (pos!=-1)
+ if ( pos != (size_t)-1 )
{
str.replace(pos, 1, "/");
}
}
- while (pos!=-1);
+ while ( pos != (size_t)-1 );
}
//=====================================================================
query = "SELECT PATH, REMOVE FROM IGNORED_FILES WHERE";
if(keys.size() > 0)
{
- for (int i=0; i < keys.size(); i++)
+ for (int i=0; i < (int)keys.size(); i++)
{
query += " ADD_KEY = " + keys[i];
query += " AND";
//#include <creaImageIOImageWriter.h>
// Signal/slot mechanism for progress events
-#include <boost/signal.hpp>
+#include <boost/signals2/signal.hpp>
#include <boost/bind.hpp>
#if defined(USE_GDCM2)
#include "creaImageIODicomScanner.h"
//=============================================
//=============================================
- typedef boost::signal<void (Progress&)> ProgressSignalType;
+ typedef boost::signals2::signal<void (Progress&)> ProgressSignalType;
typedef ProgressSignalType::slot_function_type ProgressCallbackType;
//=============================================
#ifdef USE_WXWIDGETS
// Signal/slot mechanism for progress events
-#include <boost/signal.hpp>
+#include <boost/signals2/signal.hpp>
#include <boost/bind.hpp>
#include <creaImageIOWxGimmickView.h>
~WxGimmickPanel();
//=============================================
- typedef boost::signal<void (bool)> SendImageSignalType;
+ typedef boost::signals2::signal<void (bool)> SendImageSignalType;
typedef SendImageSignalType::slot_function_type SendImageCallbackType;
//=============================================