]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/Contour/ExtractControlPoints2D.cxx
ViewerNV 2D with color Transfer Function
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / Contour / ExtractControlPoints2D.cxx
index 89566462820dd116a60f230c58123e3d9c1279f7..6fb096d22f153a23ba75009da8e39985771ceb82 100644 (file)
@@ -49,7 +49,7 @@ void ExtractControlPoints2D::GetInitialControlPoints(std::vector<double>*pOutX,
 
        if(_InX.size() != 0)
        {
-               autoc->SetNumSplineInterpolation(_numinterspline);
+               autoc->SetNumSplineInterpolation((int)_numinterspline);
                autoc->CalculeInitialControlPoints(&_InX,&_InY,&_InZ);
                autoc->GetInitialControlPoints(pOutX,pOutY,pOutZ);
        }
@@ -66,7 +66,7 @@ void ExtractControlPoints2D::GetControlPoints(std::vector<double>*pOutX, std::ve
 
        if(_InX.size() != 0)
        {
-               autoc->SetNumSplineInterpolation(_numinterspline);
+               autoc->SetNumSplineInterpolation((int)_numinterspline);
                autoc->CalculeControlPoints(&_InX,&_InY,&_InZ);
                autoc->GetControlPoints(pOutX,pOutY,pOutZ);
        }
@@ -91,9 +91,9 @@ void ExtractControlPoints2D::GetSamplingControlPoints(std::vector<double>*pOutX,
        if(_InX.size() != 0)
        {
                int h = 1;
-               //int j=0;
+               //int j=0;  // JPRx
                int points = (int)(_InX.size()/_numsampling);
-               for (int i=0; i<_InX.size(); i++, h++)
+               for (int i=0; i<(int)(_InX.size()); i++, h++)
                {
                        if( h == points )
                        {