]> Creatis software - creaMaracasVisu.git/commitdiff
#3380 creaMaracasVisu Bug New Normal - Clean Code: file output in home dir
authorEduardo DAVILA <davila@localhost.localdomain>
Tue, 31 Mar 2020 07:20:35 +0000 (09:20 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Tue, 31 Mar 2020 07:20:35 +0000 (09:20 +0200)
lib/maracasVisuLib/src/interface/wxWindows/Contour/AutoControlPoints.cxx

index ac61fede6ba73b4459d796a2f58e8985f5a1ca66..88a8a7a1fde85658b6692c414cf5e4f7b73ed8da 100644 (file)
@@ -268,17 +268,17 @@ void AutoControlPoints::CirclePoints(double cx, double cy, double r, double grad
                spc[2]=1;
                _pathsize = _mContourModel->GetPathSize( spc );
 
-
 //printf("\nPATH SIZE = %f",_pathsize);
-
-                std::ofstream file1;
-               file1.open( "4_SplinePoints.txt" );
-
-               for(int i = 0; i < numspline; i++){
-                       file1<<"X= "<<_chargecontrolpointsX[i] << "\tY= "<<_chargecontrolpointsY[i] << "\tZ= "<<_chargecontrolpointsZ[i]<<std::endl;
-               }
-               file1.close();
-        }
+//EED 2020-03-31
+//             std::ofstream file1;
+//             file1.open( "4_SplinePoints.txt" );
+//             for(int i = 0; i < numspline; i++)
+//             {
+//                     file1<<"X= "<<_chargecontrolpointsX[i] << "\tY= "<<_chargecontrolpointsY[i] << "\tZ= "<<_chargecontrolpointsZ[i]<<std::endl;
+//             } // for i
+//             file1.close();
+
+        } // if size
        
  }
  //Given the coordinates of two points, it calculates the slope
@@ -486,15 +486,15 @@ JCP 26-09-2008*/
 
        //DELETE!!
 
-       std::ofstream file1;
-    file1.open( "1_Intersection.txt" );
-
-       for(int i = 0; i < (int)(_intercircleX.size()); i++){
-               file1<<"X= "<<_intercircleX[i] << "\tY= "<<_intercircleY[i] << "\tDist= "<<_intercircleDist[i]<<std::endl;
-       }
-       file1.close();
+//EED 2020-03-31
+//     std::ofstream file1;
+//    file1.open( "1_Intersection.txt" );
+//     for(int i = 0; i < (int)(_intercircleX.size()); i++)
+//  {
+//             file1<<"X= "<<_intercircleX[i] << "\tY= "<<_intercircleY[i] << "\tDist= "<<_intercircleDist[i]<<std::endl;
+//     } // for i
+//     file1.close();
                
-
        delete vecf;
 }
 //-----------------------------------------------------------------------------------------------------------------------------------------
@@ -569,15 +569,17 @@ void AutoControlPoints::maxminLocal()
        }
        vecf->copyVector(&tempZ,&_controlpointsZ);
 
-//JCP 26-09-08 
-       std::ofstream file1;
-    file1.open( "2_MaxMin.txt" );
+//EED 2020-03-31
+////JCP 26-09-08       
+//     std::ofstream file1;
+//    file1.open( "2_MaxMin.txt" );
+//     for(int i = 0; i < (int)(_controlpointsX.size()); i++)
+//  {
+//             file1<<"X= "<<_controlpointsX[i] << "\tY= "<<_controlpointsY[i] << "\tZ= "<<_controlpointsZ[i]<<std::endl;
+//     } // for i
+//     file1.close();
+////JCP 26-09-08
 
-       for(int i = 0; i < (int)(_controlpointsX.size()); i++){
-               file1<<"X= "<<_controlpointsX[i] << "\tY= "<<_controlpointsY[i] << "\tZ= "<<_controlpointsZ[i]<<std::endl;
-       }
-       file1.close();
-//JCP 26-09-08
        delete vecf;
 }
 //-----------------------------------------------------------------------------------------------------------------------------------------
@@ -616,13 +618,14 @@ void AutoControlPoints::fixBetweenPoints(double val)
                vecf->copyVector(&tempY,&_controlpointsY);
                vecf->copyVector(&tempZ,&_controlpointsZ);
 
-               std::ofstream file1;
-               file1.open( "3_PointsFixed.txt" );
-
-               for(int i = 0; i < (int)(_controlpointsX.size()); i++){
-                       file1<<"X= "<<_controlpointsX[i] << "\tY= "<<_controlpointsY[i] << "\tZ= "<<_controlpointsZ[i]<<std::endl;
-               }
-               file1.close();
+//EED 2020-03-31
+//             std::ofstream file1;
+//             file1.open( "3_PointsFixed.txt" );
+//             for(int i = 0; i < (int)(_controlpointsX.size()); i++)
+//             {
+//                     file1<<"X= "<<_controlpointsX[i] << "\tY= "<<_controlpointsY[i] << "\tZ= "<<_controlpointsZ[i]<<std::endl;
+//             } // for  i
+//             file1.close();
 
                delete vecf;
        }