EgtGeomKernel :
- cambiato Load, con uso di NgeReader.
This commit is contained in:
+4
-14
@@ -16,6 +16,7 @@
|
||||
#include "CurveLine.h"
|
||||
#include "GeoObjFactory.h"
|
||||
#include "NgeWriter.h"
|
||||
#include "NgeReader.h"
|
||||
#include "/EgtDev/Include/EGkStringUtils3d.h"
|
||||
#include <new>
|
||||
|
||||
@@ -131,25 +132,14 @@ CurveLine::Save( NgeWriter& ngeOut) const
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
CurveLine::Load( Scanner& TheScanner)
|
||||
CurveLine::Load( NgeReader& ngeIn)
|
||||
{
|
||||
// imposto ricalcolo della grafica
|
||||
m_OGrMgr.Reset() ;
|
||||
// leggo la prossima linea
|
||||
string sLine ;
|
||||
if ( ! TheScanner.GetLine( sLine))
|
||||
if ( ! ngeIn.ReadPoint( m_PtStart, ";"))
|
||||
return false ;
|
||||
// la divido in parametri
|
||||
STRVECTOR vsParams ;
|
||||
Tokenize( sLine, ";", vsParams) ;
|
||||
// 2 parametri : punto iniziale e punto finale
|
||||
if ( vsParams.size() != 2)
|
||||
return false ;
|
||||
// recupero il punto iniziale
|
||||
if ( ! FromString( vsParams[0], m_PtStart))
|
||||
return false ;
|
||||
// recupero il punto finale
|
||||
if ( ! FromString( vsParams[1], m_PtEnd))
|
||||
if ( ! ngeIn.ReadPoint( m_PtEnd, ";", true))
|
||||
return false ;
|
||||
// eseguo validazione
|
||||
return Validate() ;
|
||||
|
||||
Reference in New Issue
Block a user