]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBullEyeSector.cpp
Clean code
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualViewBullEyeSector.cpp
index 1702eead866f7f4ab43cc0fe23f4722dbd503329..cbb4ec16d785796bc8624a03145e84c25360ec0f 100644 (file)
@@ -36,23 +36,20 @@ manualViewBullEyeSector::manualViewBullEyeSector()
 void manualViewBullEyeSector::RefreshContour()
 {
 //EED004
-       int i,nps;
-       double x,y,z;
-       double xx,yy,zz;
+       int     i,nps;
+       double  x,y,z;
+       double  xx,yy,zz;
 //----------------------------------
-
        //EED 27 Juin 2012
     //Boundaring box   
-       _minX=99999;
-       _minY=99999;
-       _minZ=99999;
-       _maxX=-99999;
-       _maxY=-99999;
-       _maxZ=-99999;
-       
+       _minX = 99999;
+       _minY = 99999;
+       _minZ = 99999;
+       _maxX = -99999;
+       _maxY = -99999;
+       _maxZ = -99999;
        _manContModel->UpdateSpline();
     nps = _manContModel->GetNumberOfPointsSpline();
-
        if ( _pts!=NULL )
        {
                for( i = 0; i < nps; i++ )
@@ -62,7 +59,6 @@ void manualViewBullEyeSector::RefreshContour()
                        yy = y*_spc[1];
                        zz = z*_spc[2];
                        _pts->SetPoint(i , xx , yy , zz );
-                       
                        //EED 27 Juin 2012
                        //Boundaring box
                        if (xx < _minX) { _minX = xx; }
@@ -71,10 +67,8 @@ void manualViewBullEyeSector::RefreshContour()
                        if (xx > _maxX) { _maxX = xx; }
                        if (yy > _maxY) { _maxY = yy; }         
                        if (zz > _maxZ) { _maxY = zz; }         
-                       
-                       
                }// for
-               
+               //EED 2017-03-02
+               _pts->Modified();
        } // if _pts
-
 }