]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Parameters.hxx
Machete filter visualization finished.
[cpPlugins.git] / lib / cpPlugins / Interface / Parameters.hxx
index 0bb20c7e46ff65bbb9ff472f931822ebc364bc3c..b633f879f5e33b70b0a3064e259ca0c754849b4d 100644 (file)
@@ -94,7 +94,8 @@ GetPoint( const TString& name, const TUint& dim ) const
       unsigned int d = 0;
       while( std::getline( str, token, ';' ) && d < dim )
       {
-        v[ d ] = std::atof( token.c_str( ) );
+        std::istringstream tok_str( token );
+        tok_str >> v[ d ];
         d++;
 
       } // elihw
@@ -126,7 +127,8 @@ GetVector( const TString& name, const TUint& dim ) const
       unsigned int d = 0;
       while( std::getline( str, token, ';' ) && d < dim )
       {
-        v[ d ] = std::atof( token.c_str( ) );
+        std::istringstream tok_str( token );
+        tok_str >> v[ d ];
         d++;
 
       } // elihw
@@ -203,7 +205,8 @@ GetPointList(
     P v;
     while( std::getline( str2, token2, ';' ) && d < dim )
     {
-      v[ d ] = std::atof( token.c_str( ) );
+      std::istringstream tok_str( token );
+      tok_str >> v[ d ];
       d++;
 
     } // elihw
@@ -238,7 +241,8 @@ GetVectorList(
     V v;
     while( std::getline( str2, token2, ';' ) && d < dim )
     {
-      v[ d ] = std::atof( token.c_str( ) );
+      std::istringstream tok_str( token );
+      tok_str >> v[ d ];
       d++;
 
     } // elihw