]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/Contour/Propagation.cxx
Avoid warnings
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / Contour / Propagation.cxx
index ca908201308a7c290429f93e2c9284a6598a0d80..2ccb89be9cf32d151edda2b76c3acc5d5e8f7522 100644 (file)
@@ -726,7 +726,8 @@ void PropContour::ReadKeyContour(FILE* fd)
        tempZ.clear();
        while(!feof(fd))
        {
-               fscanf(fd," %s %d",&firstline,&size);
+               //fscanf(fd," %s %d",&firstline,&size); // JPRx
+               fscanf(fd," %s %d",firstline,&size);
                for(int i=0; i<size; i++)
                {
                        fscanf(fd,"%lf %lf %d",&x,&y,&z);
@@ -838,7 +839,7 @@ void PropContour::PreparePointsForSpline(std::vector<double>*InX, std::vector<do
                                                                                 std::vector<int>*Sizes)
 {
        int sizeS = Sizes->size();
-       int sizeV = InX->size();
+       //int sizeV = InX->size(); // JPRx
        int i,j,mem,posinic,dir,cont;
        double leX;
 
@@ -904,7 +905,7 @@ void PropContour::PreparePointsForSpline(std::vector<double>*InX, std::vector<do
 //----------------------------------------------------------------------------------------------------
 vtkImageData* PropContour::method_Spline(std::vector<double>*InX, std::vector<double>*InY, std::vector<double>*InZ, std::vector<int>*Sizes)
 {
-       long interval = wxGetElapsedTime(TRUE);
+       //long interval = wxGetElapsedTime(TRUE); // JPRx
 
        int i,j,k,sizeX,sizeS,sizeInS;
        int numspline;
@@ -998,7 +999,7 @@ vtkImageData* PropContour::method_Spline(std::vector<double>*InX, std::vector<do
                cont = 0;
                for(i=0; i<sizeS; i++)
                {
-                       double hh=tempZ[cont+j];
+                       //double hh=tempZ[cont+j]; // JPRx
                        _mContourModel->AddPoint(tempX[cont+j],tempY[cont+j],tempZ[cont+j]);
                        cont = cont + tam;
                } // for i
@@ -1082,7 +1083,7 @@ void PropContour::SetKeyContours(std::vector<double>*InX, std::vector<double>*In
        int tmpIdKeyContSizes   = 0;
        bool okFind                             = false;
        int i;
-       int sizeKeyContour,Z=(*InZ)[0];
+       int sizeKeyContour,Z=(int)(*InZ)[0];
        sizeKeyContour = _KeyContourZ.size();
        for (i=0; i<sizeKeyContour; i++)
        { 
@@ -1222,7 +1223,7 @@ void PropContour::GetIdContour(int id, std::vector<double>*vecX, std::vector<dou
        vecX->clear();
        vecY->clear();
        vecZ->clear();
-       int sizeplane = _planevector[id].getsize_x();
+       //int sizeplane = _planevector[id].getsize_x();
        double tempx;
        for(i=0; i<_planevector[id].getsize_x(); i++)
        {