]> Creatis software - creaImageIO.git/commitdiff
Bug #1963
authorfcervenansky <frederic.cervenansky@creatis.insa-lyon.fr>
Wed, 3 Apr 2013 16:05:19 +0000 (18:05 +0200)
committerfcervenansky <frederic.cervenansky@creatis.insa-lyon.fr>
Wed, 3 Apr 2013 16:05:19 +0000 (18:05 +0200)
+ cleanup

28 files changed:
appli/TestWxGimmickReaderDialog/main.cxx
src/creaImageIODicomImageReader2.cpp
src/creaImageIODicomScanner.cpp
src/creaImageIODicomScanner.h
src/creaImageIOGimmick.cpp
src/creaImageIOGimmickView.cpp
src/creaImageIOIndexedHeap.h
src/creaImageIOSQLiteTreeHandler.cpp
src/creaImageIOSimpleView.cpp
src/creaImageIOTree.h
src/creaImageIOTreeAttributeDescriptor.cpp
src/creaImageIOTreeAttributeDescriptor.h
src/creaImageIOTreeDescriptor.h
src/creaImageIOTreeHandlerImageAdder.cpp
src/creaImageIOTreeLevelDescriptor.h
src/creaImageIOTreeNode.cpp
src/creaImageIOTreeNode.h
src/creaImageIOUltrasonixImageReader.cpp
src/creaImageIOVtkImageReader.cpp
src/creaImageIOWxDumpPanel.cpp
src/creaImageIOWxGimmickView.cpp
src/creaImageIOWxOutputDlg.cpp
src/creaImageIOWxSimpleDlg.cpp
src/creaImageIOWxSimpleDlg.h
src/creaImageIOWxTreeView.cpp
src/creaImageIOWxTreeView.h
src/creaImageIOWxViewer.cpp
src/creaImageIOWxViewer.h

index ee0ec18bdba4c73c95fa5b0edc86d7726e8823f6..a8265ec119a03b02d40c1f43987a136965ba6839 100644 (file)
@@ -112,8 +112,8 @@ bool myApp::OnInit( )
        std::cout << "$$$$ "<<std::endl;
 
        //Puts images
-       std::vector<vtkImageData*> images;
-          w.GetSelectedImages(images,3);
+    /*   std::vector<vtkImageData*> images;
+          w.GetSelectedImages(images,3);*/
 
        
        // First Exemple:
@@ -175,9 +175,9 @@ bool myApp::OnInit( )
 
 
 
-          crea::VtkBasicSlicer(out.front().img);
-       images.front()->Delete();
-       w.OnExit();
+          //crea::VtkBasicSlicer(out.front().img);
+    //   images.front()->Delete();
+    //   w.OnExit();
 
      }
    else if (w.GetReturnCode() == wxID_CANCEL)
index aa67c76da8ddf28da92912465e74c3e4ed9eb9cd..5b6861ccf46fc63ce510dfa4f6526c9ba41cbee0 100644 (file)
 */
 
 
-#include <creaImageIODicomImageReader2.h>
+#include "creaImageIODicomImageReader2.h"
+#include <creaImageIOTreeAttributeDescriptor.h>
 #include "gdcmStringFilter.h"
-#include "vtkGDCMImageReader.h"
-
-#include <creaImageIOSystem.h>
+#include "gdcmUIDs.h"
 #include "boost/filesystem/path.hpp"
 
-#include <creaImageIOTreeAttributeDescriptor.h>
+#include "vtkGDCMImageReader.h"
 #include <vtkStringArray.h>
-#include <creaImageIOGimmick.h>
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
 
-#include "gdcmUIDs.h"
 #ifdef _DEBUG
 #define new DEBUG_NEW
 #endif
@@ -156,8 +156,6 @@ namespace creaImageIO
   void DicomImageReader::ReadAttributes(const std::string& filename, 
                      std::map<std::string,std::string>& attr)
   {
-    GimmickMessage(2,"Reading attributes from DICOM file '"
-                  <<filename<<"'"<<std::endl);
 
    
       gdcm::Reader reader;
index 8e71e83e9bee22de08fc2a5698a80ab41ba9598c..8f7dbc1d86f884867eae8a8ef318aaf8c1da0b2e 100644 (file)
 */
 
 #include <creaImageIODicomScanner.h>
-#include "creaImageIOSystem.h"
+
 #include <boost/filesystem.hpp>
 #include "boost/algorithm/string.hpp"
-
-
-
-#include <creaImageIOSystem.h>
 #include "boost/filesystem/path.hpp"
 
-#include <creaImageIOTreeAttributeDescriptor.h>
-#include <vtkStringArray.h>
-#include <creaImageIOGimmick.h>
-#include <gdcmDirectory.h>
-
 #include <fstream>
-
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
 
 #ifdef _DEBUG
 #define new DEBUG_NEW
index 96067da9d411fc7f84aa827379bbdb45cab4d703..adeea2a999505631c42e000f89cca6b7980fbf23 100644 (file)
@@ -34,6 +34,8 @@
 #include <gdcmReader.h>
 #include <vtkGDCMImageReader.h>
 #include <gdcmScanner.h>
+#include <vtkStringArray.h>
+#include <gdcmDirectory.h>
 #endif
 
 class vtkGDCMImageReader;
index 353951043c42a7a56026f66be51795ef159cf652..6d296136060ffe020716d6b2c0ffbdd580d041b3 100644 (file)
@@ -26,7 +26,7 @@
 */
 
 #include <creaImageIOGimmick.h>
-#include <creaImageIOSystem.h>
+
 #include <boost/filesystem.hpp>
 #include <boost/algorithm/string.hpp>
 
 #endif
 #include <creaImageIOGimmick.h>
 
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
+
 #ifdef _DEBUG
 #define new DEBUG_NEW
 #endif
index 0af8ded092fb945947d429616830751e53b3b4a5..245b0b563c829ad96d34abb6fd28bfce268a37d6 100644 (file)
@@ -27,7 +27,7 @@
 
 
 #include <creaImageIOGimmickView.h>
-#include <creaImageIOSystem.h>
+
 #include "boost/filesystem.hpp"
 
 #if defined(USE_GDCM)
@@ -46,7 +46,9 @@
 #include "gdcmAnonymizer.h"
 #include "gdcmGlobal.h"
 #endif*/
-
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
 
 namespace fs = boost::filesystem;
 namespace creaImageIO
@@ -382,11 +384,11 @@ void GimmickView::ReadImagesNotThreaded(std::vector<vtkImageData*>& s, std::vect
 
                        if(ext[5] == 0)
                        {
-                               ext[5] = im.size()-1;
+                               ext[5] = (int)im.size()-1;
                        }
                        else
                        {
-                               ext[5] = ext[5] * im.size()-1; // to deal with multiframes - JPR
+                               ext[5] = ext[5] * (int)im.size()-1; // to deal with multiframes - JPR
                        }
                        out->SetExtent(ext);
 
@@ -395,7 +397,7 @@ void GimmickView::ReadImagesNotThreaded(std::vector<vtkImageData*>& s, std::vect
                        int dim[3];
                        first->GetDimensions(dim);
 
-                       out->SetDimensions(dim[0], dim[1], im.size() );
+                       out->SetDimensions(dim[0], dim[1], (int)im.size() );
                        out->AllocateScalars();
                        out->Update();
 
@@ -517,11 +519,11 @@ void GimmickView::ReadImagesNotThreaded(std::vector<vtkImageData*>& s, std::vect
                first->GetWholeExtent(ext);  // send also 0,0 in Z 
                if(ext[5] == 0)
                {
-                       ext[5] = im.size()-1;
+                       ext[5] = (int)im.size()-1;
                }
                else
                {
-                       ext[5] = ext[5] * im.size()-1; // to deal with multiframes 
+                       ext[5] = ext[5] * (int)im.size()-1; // to deal with multiframes 
                }
                out.img->SetExtent(ext);
                int dim[3];
@@ -529,7 +531,7 @@ void GimmickView::ReadImagesNotThreaded(std::vector<vtkImageData*>& s, std::vect
                first->GetDimensions(dim);
                first->GetSpacing(spac);
                out.img->SetSpacing(spac);
-               out.img->SetDimensions(dim[0], dim[1], im.size() );
+               out.img->SetDimensions(dim[0], dim[1], (int)im.size() );
                out.img->AllocateScalars();
                out.img->Update();
                unsigned long imsize = dim[0] * dim[1];
@@ -573,7 +575,7 @@ void GimmickView::ReadImagesNotThreaded(std::vector<vtkImageData*>& s, std::vect
                std::vector<std::string>::iterator it;
                std::vector<OutStrGimmick>::iterator it_out = o_output.begin();
 
-               for (it=im.begin(); it!=im.end(); ++it, it_out += dim[2])
+               for (it=im.begin(); it!=im.end(); ++it)//, it_out ++)
                {
                        vtkImageData* cur = mReader.GetImage( (*it) );
                        for (int slice= 0 ; slice <dim[2]; slice++)
@@ -594,8 +596,8 @@ void GimmickView::ReadImagesNotThreaded(std::vector<vtkImageData*>& s, std::vect
                                memcpy(out.img->GetScalarPointer(0,0,0), cur->GetScalarPointer(0,0,slice), imsize);
                                o_output.push_back(out);
                        }
-                       if(i_attr.mult)
-                               getAttributes((*it),(*it_out).infos,i_attr);
+       //              if(i_attr.mult)
+               //              getAttributes((*it),(*it_out).infos,i_attr);
                }
                if(!i_attr.mult)
                {
@@ -630,7 +632,7 @@ void GimmickView::ReadImagesNotThreaded(std::vector<vtkImageData*>& s, std::vect
                        out.img->SetExtent(ext);
                        first->GetSpacing(spac);
                        out.img->SetSpacing(spac);
-                       out.img->SetDimensions(dim[0], dim[1], im.size() );
+                       out.img->SetDimensions(dim[0], dim[1], (int)im.size() );
                        out.img->AllocateScalars();
                        out.img->Update();
                        unsigned long imsize = dim[0] * dim[1];
@@ -659,7 +661,7 @@ void GimmickView::ReadImagesNotThreaded(std::vector<vtkImageData*>& s, std::vect
        void GimmickView::readImages(std::vector<OutStrGimmick>& o_output, std::vector<std::string> im,
                         OutputAttr i_attr, int i_dim, double i_zspc)
        {
-               int size = im.size();
+               int size = (int)im.size();
                if ( size == 0)
                {
                        return;
index f1177b0dd550c79a2884d1ed5b9ae92c5e5420ca..0ae6a82aac15cfc3c1633dc0383d99441c45551e 100644 (file)
@@ -104,7 +104,7 @@ namespace creaImageIO
     /// removes and returns the nth element 
     T remove(int n);
     /// returns the size of the Heap 
-    inline int size() const {return m_p.size(); }
+    inline int size() const {return (int)m_p.size(); }
     /// empties the Heap 
        void clear();
     //======================================================================
index 562aa6d2a4c3b3ebf048e9cf2651246903bc1b85..4a1e391c47a86c5a2ae6616d71fb14d923a4550e 100644 (file)
@@ -570,7 +570,7 @@ namespace creaImageIO
                // quote must be doubled
                boost::algorithm::replace_all(i_str,"'","''");
                // Found strange strings which contained NULL char INSIDE string 
-               int i,size=i_str.size();
+               int i,size=(int)i_str.size();
                for (i=0;i<size;++i) 
                {
                        if (i_str[i]==0) 
index d44f941c60316be8d9520f0757806f4700329139..63c077ec0edf84ee8a29dac1b8f8fa295442d05c 100644 (file)
@@ -74,7 +74,7 @@ namespace creaImageIO
                                        }
                                }
                                std::sort (names.begin(), names.end()); // make sure names are in lexicographical order
-                               int lgr = names.size();
+                               int lgr = (int)names.size();
                                
                                for(int i=0; i<lgr; i++)
                                {
index 0228247d41002218bcedccf14c78efb681df4e6b..e33a6d8aace0c4bf2650c9d56a1355611dd90085 100644 (file)
@@ -29,6 +29,7 @@
 #define __creaImageIOTree_h_INCLUDED__
 
 #include <creaImageIOTreeNode.h>
+#include <creaImageIOTreeDescriptor.h>
 
 namespace creaImageIO
 {
index e07892702cdf744f732fbe41244664315d79fbe5..402872e0c816b35111fc67edd69182503cd6069c 100644 (file)
 
 
 #include <creaImageIOTreeAttributeDescriptor.h>
-#include <creaImageIOSystem.h>
+
+
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
 
 #if defined(USE_GDCM)
 #include <gdcmGlobal.h>
@@ -55,7 +59,7 @@ namespace creaImageIO
       //    crea::Utils::Replace( str, "'", "''" );
       boost::algorithm::replace_all(str,"'","''");
       // Found strange strings which contained NULL char INSIDE string 
-      int i,size=str.size();
+      int i,size=(int)str.size();
       for (i=0;i<size;++i) 
        {
          if (str[i]==0) 
index b83afd1b2f1fa22dfe323e83f6cf5a1b2f6bbcf3..2d20c74806e5e73059532259765d769448c6941f 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef __creaImageIOTreeAttributeDescriptor_h_INCLUDED__
 #define __creaImageIOTreeAttributeDescriptor_h_INCLUDED__
 
+#include <creaImageIOSystem.h>
 #include <string>
 //#include <iostream>
 
index 58eddfc2f49cf00b64c55389330d63a61f349ca2..ea3c487b5f1ce8241ec481e8c052e639cd786b57 100644 (file)
@@ -61,7 +61,7 @@ namespace creaImageIO
 
       /// Returns the number of levels of the tree
       unsigned int GetNumberOfLevels() 
-      { return mLevelDescriptorList.size(); }
+      { return (int)mLevelDescriptorList.size(); }
 
       /// Returns the LevelDescriptor of a given level (const ref)
       const LevelDescriptor& GetLevelDescriptor(int level) const
index ff4683d13d61c012832e617ae3bcb3135e4948d1..ae72e444a750219bc13bf1f75b4a23ab73dc63af 100644 (file)
@@ -481,7 +481,7 @@ namespace creaImageIO
                                AddFile(*i);
                        }
                        }
-                       nf+=newFiles.size();
+                       nf+=(int)newFiles.size();
                        newFiles.clear();
 
                }
index 552802eb7eafa59270dbf4aca2d5409f362b8481..fa8e48448b679e706e4d83c60b5d9890d34845dc 100644 (file)
@@ -54,7 +54,7 @@ namespace creaImageIO
 
       /// Returns the number of attributes of the level
       unsigned int GetNumberOfAttributes() const
-      { return mAttributeDescriptorList.size(); }
+      { return (int)mAttributeDescriptorList.size(); }
 
       /// Adds the AttributeDescriptor to the list
       void Add(const AttributeDescriptor&);
index af10c23f0522680a5a1257326c9de2e35ce12dfe..2c77532ad3f14b8a1b2ded817b4d366109b328ae 100644 (file)
@@ -164,7 +164,7 @@ namespace creaImageIO
        {
          GetChildrenList().erase(i);
        }
-       return GetChildrenList().size();
+       return (int)GetChildrenList().size();
     }
     //=============================================================
 
index bd5299187d6a22b562ca5e7403edd3e05105ccea..5d218261150782177a51413bbec3b1aa01738c11 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef __creaImageIOTreeNode_h_INCLUDED__
 #define __creaImageIOTreeNode_h_INCLUDED__
 
-#include <creaImageIOTreeDescriptor.h>
+#include <creaImageIOTreeLevelDescriptor.h>
 #include <creaImageIOTreeComparators.h>
 #include<boost/filesystem/operations.hpp>
 #include <vector>
@@ -96,7 +96,7 @@ namespace creaImageIO
       /// Warning : if the children are not loaded then might return 0
       ///           even if the node has children !
       ///           see TreeHandler::GetNumberOfChildren 
-      unsigned int GetNumberOfChildren() const { return mChildren.size(); }
+      unsigned int GetNumberOfChildren() const { return (int)mChildren.size(); }
 
       /// Returns true iff the node's children are loaded
       bool GetChildrenLoaded() const { return mChildrenLoaded; }
index 4116bb7866e141fcaab14c74d7eb8ee1ce9ebade..8c609d356f6cdef917ff833a0a6360a8a0d59ea7 100644 (file)
 #include "creaImageIOUltrasonixImageReader.h"
 #include <creaVtk.h>
 #include <boost/filesystem/path.hpp>
+
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
+
 namespace creaImageIO
 {
 #define HEADER_SIZE    19
index 9cf160b0634f0c6da5475d4c86a100540e3aeadb..d16137be5552ca1dbb1fc02068778dbb47d35b5d 100644 (file)
 
 #include <creaImageIOVtkImageReader.h>
 #include <vtkImageReader2.h>
-#include <creaImageIOSystem.h>
+
 #include "boost/filesystem/path.hpp"
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
 
 namespace creaImageIO{
   //=====================================================================
@@ -57,8 +60,7 @@ namespace creaImageIO{
       {
        SetName ( name );
       }
-    GimmickDebugMessage(5,"Constructing vtkImageReader : "<<GetName()
-                       <<std::endl);
+
       
   }
   //=====================================================================
@@ -150,7 +152,7 @@ namespace creaImageIO{
   void VtkImageReader::ReadAttributes(const std::string& filename, 
                                      std::map<std::string,std::string>& attr)
   {
-    GimmickMessage(2,"Reading attributes from '"<<filename<<std::endl);
+
     // Get image dimensions
     // How to get the image info without loading it in vtk ?
     mReader->SetFileName(filename.c_str());
@@ -197,7 +199,7 @@ namespace creaImageIO{
                 i->second = filename.substr(0, last_pos);
          }
 
-    GimmickMessage(2,"Attributes map:"<<std::endl<<attr<<std::endl);
+
   }
   //=====================================================================
 
index 610456fd90a17e3654e5e08034decd6bfb6e71bb..15e9966bd78c94949993e6feab431a68f3a5c68b 100644 (file)
@@ -27,7 +27,7 @@
 
 
 #include <creaImageIOWxDumpPanel.h>
-#include <creaImageIOSystem.h>
+
 #include <creaImageIOGimmick.h>
 #include <boost/algorithm/string.hpp>
 #if defined(USE_GDCM)
@@ -199,13 +199,13 @@ namespace creaImageIO
                                   std::string resultat;
 
                                   tag = "(" + i_line.substr(0,9) + ")";
-                                  line = i_line.substr(14,i_line.size()-10);
-                                  int pos1 = line.find_first_of("[");
-                                  int pos2 = line.find_first_of("]");
+                                  line =  i_line.substr(14,i_line.size()-10);
+                                  int pos1 = (int)line.find_first_of("[");
+                                  int pos2 = (int)line.find_first_of("]");
                                   signification = line.substr(pos1+1, pos2-pos1-1);
                                   line = line.substr(pos2+1);
-                                   pos1 = line.find_first_of("[");
-                                   pos2 = line.find_first_of("]");
+                                   pos1 = (int)line.find_first_of("[");
+                                   pos2 = (int)line.find_first_of("]");
                                   value = line.substr(pos1+1, pos2-pos1-1);
                                   resultat = tag + " " + signification + ": " +value;
                                  return resultat;
index c1b7acb8fc5e68aab4efdffb84f9e41c6878171c..56a4f55aa1a8aff907fdef8160ff5f84583ccda8 100644 (file)
 */
 
 
-#include <creaImageIOPACSConnection.h>
+
 #include <creaImageIOWxPACSConnectionPanel.h>
-#include <creaImageIOWxGimmickView.h>
 #include <creaImageIOWxTreeView.h>
-#include <creaImageIOSystem.h>
 #include <creaImageIOWxCustomizeConfigPanel.h>
 #include <creaImageIOWxListenerPanel.h>
 #include <creaImageIOWxEditFieldsPanel.h>
 #include <creaImageIOWxOutputDlg.h>
 #include <creaImageIOOutputModel.h>
 
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
+
 using namespace crea;
 // Icons
 #include "icons/accept.xpm"
index db56702ef92ffd4c41e72293b895128a69b5a71f..8ed5f282418a0f2ef5e19d12c0160968866167ab 100644 (file)
@@ -35,7 +35,7 @@ namespace creaImageIO
     : wxDialog(parent, -1,_T("OUTPUT FORMAT"), wxDefaultPosition, wxSize(350,450))
    {
 
-               int size = filenames.size();
+               int size = (int)filenames.size();
                
                int deflt = 1;
 
index f69261f6c0b9c8b0238b9190c047a7f00f5e01ea..db55ad1ca0208959a417f679459d7800ce83cf3f 100644 (file)
@@ -148,7 +148,7 @@ namespace creaImageIO
                                dlg.stopReading();
                                dlg.getSelected(out, attr,true,"");
                        m_results.clear();
-                       int size=out.size();
+                       int size=(int)out.size();
                        int ii;
                        if(!bInfo)
                        {
index 9ef4f5142b8413f28c7a0a3fc0b371bb99aff040..40b552659b97ab2b1d5546c936f32dc86d902738 100644 (file)
@@ -26,7 +26,7 @@
 */
 
 #include "creaImageIOSimpleView.h"
-#include <creaWx.h>
+
 #include "creaImageIOWxGimmickReaderDialog.h"
 namespace creaImageIO
 {
index a7a2c46cc050c8af965ac9e87ba299e35ab90beb..3c1f3081a9fc0c287a6cf284f32c9fb863c423de 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <creaImageIOWxTreeView.h>
 #include <creaImageIOGimmickView.h>
-#include <creaImageIOSystem.h>
+
 #include <wx/splitter.h>
 #include <wx/gdicmn.h>
 #include <boost/date_time/gregorian/gregorian.hpp>
@@ -329,7 +329,7 @@ namespace creaImageIO
                                                                                 wxLIST_STATE_SELECTED);
                        if ( item == -1 )
                                break;
-                       long adr = GetCtrl(l-1)->GetItemData(item);
+                       long adr = (long)GetCtrl(l-1)->GetItemData(item);
                        tree::Node* n = ((ItemData*)adr)->node;
                        /* FCY 18-04-2011: don't understand the real purpose of these lines,
                         if uncomment add last frame in first place 
@@ -789,7 +789,7 @@ namespace creaImageIO
        if ( it == -1 )
          break;
        
-       long adr = GetCtrl(level)->GetItemData(it);
+       long adr = (long)GetCtrl(level)->GetItemData(it);
        tree::Node* nod = ((ItemData*)adr)->node;
        att=(*nod).GetAttribute(mLevelList[level].key[mColumnSelected]);
        
@@ -1100,7 +1100,7 @@ namespace creaImageIO
     GimmickDebugMessage(7,
                        "WxTreeView::ValidateSelectedImages" 
                        <<std::endl);
-    const std::vector<tree::Node*>& sel(GetSelected(mLevelList.size()+1));
+    const std::vector<tree::Node*>& sel(GetSelected((int)mLevelList.size()+1));
     GetGimmickView()->OnSelectionChange(sel,
                                        isSelection,(mLastSelected-1),
                                        !mIgnoreSelectedChanged);
@@ -1113,9 +1113,9 @@ namespace creaImageIO
   void WxTreeView::GetNodes(std::vector<tree::Node*>& nodes, bool direction)
   {
        long item = mLastSelected;
-       int level=mLevelList.size()-1;
+       int level=(int)mLevelList.size()-1;
        //Gets current item data
-       long adr = GetCtrl(level)->GetItemData(item);
+       long adr = (long)GetCtrl(level)->GetItemData(item);
        //Extracts the node
        tree::Node* nod = ((ItemData*)adr)->node;
     for ( ;; )
@@ -1137,7 +1137,7 @@ namespace creaImageIO
                if(GetCtrl(level)->GetItemState(item, wxLIST_STATE_SELECTED)==0 )
                {
 
-                       adr = GetCtrl(level)->GetItemData(item);
+                       adr = (long)GetCtrl(level)->GetItemData(item);
                        nod = ((ItemData*)adr)->node;
                        nodes.push_back(nod);
                }
@@ -1163,7 +1163,7 @@ namespace creaImageIO
   // Should be in another place : not specific !
   void WxTreeView::GetSelectedAsString(std::vector<std::string>&s)
   {
-    int level=mLevelList.size();
+    int level= (int)mLevelList.size();
     const std::vector<tree::Node*>& sel=GetSelected(level+1);
     std::vector<tree::Node*>::const_iterator i;
     
index 3b850d05f3f38efc18476107cab03e1fab2dea1d..fbac52b94bfe08ccc7042b1217eb8e8e50599ff1 100644 (file)
@@ -165,7 +165,7 @@ namespace creaImageIO
       /// return the wxSplitter of one level
       wxSplitterWindow* GetSplitter(int l) { return mLevelList[l].wxSplitter; }
       //Returns the maximum number of levels
-      int GetNumberOfLevels(){ return mLevelList.size(); }
+      int GetNumberOfLevels(){ return (int)mLevelList.size(); }
       /// Gets the user selected data from the level passed as a parameter
       /// Updates the vector if necessary
       const std::vector<tree::Node*>& GetSelected(int level);
index 7942f624855f791a5044f93a4f93adb3d06f406b..7f15e403fd55e8ff1537fa555fc3b8515156924c 100644 (file)
 */
 
 #include <creaImageIOWxViewer.h>
-#include <creaImageIOSystem.h>
+
 #include <fstream>
 #include <vtkCamera.h>
 #include <vtkRenderer.h>
 #include <vtkImageData.h>
-#include <creawxVTKRenderWindowInteractor.h>
 #include <creaMessageManager.h>
 #include <stdio.h>
 #include <time.h>
@@ -145,7 +144,7 @@ namespace creaImageIO
        GimmickDebugMessage(6,"WxViewer::SetImageVector"<<std::endl);
        imagePointers=pointers;
        
-       mslide->SetMax(pointers.size());
+       mslide->SetMax((int)pointers.size());
        mslide->SetMin(1);
        // Refresh don't work, TO MODIFY
        mslide->Refresh();
index 01fb605c72f9b79aed35468063f998874de35907..9647b3b487915c26ea50323373c1680837ec9f27 100644 (file)
@@ -36,7 +36,7 @@
 #include <wx/imaglist.h>
 #include <wx/splitter.h>
 
-#include <creaImageIOSystem.h>
+
 #include <creaImageIOImagePointerHolder.h>
 
 // For image preview