EgtGeomKernel 1.4a2 : Aggiunti gruppi per avere struttura DB ad albero.
This commit is contained in:
+6
-12
@@ -69,7 +69,7 @@ bool
|
||||
GeoVector3d::Save( ostream& osOut) const
|
||||
{
|
||||
// parametri : punto
|
||||
osOut << ToString( m_vtV) << endl ;
|
||||
osOut << ToString( m_vtV) << ";" << endl ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
@@ -78,22 +78,16 @@ GeoVector3d::Save( ostream& osOut) const
|
||||
bool
|
||||
GeoVector3d::Load( CScan& TheScanner)
|
||||
{
|
||||
string sLine ;
|
||||
STRVECTOR vsParams ;
|
||||
string sLine ;
|
||||
|
||||
|
||||
// leggo la prossima linea
|
||||
if ( ! TheScanner.GetLine( sLine))
|
||||
return false ;
|
||||
// la divido in parametri
|
||||
Tokenize( sLine, ",", vsParams) ;
|
||||
// 3 parametri : le coordinate
|
||||
if ( vsParams.size() != 3)
|
||||
return false ;
|
||||
// recupero le tre coordinate
|
||||
if ( ! FromString( vsParams[0], m_vtV.x) ||
|
||||
! FromString( vsParams[1], m_vtV.y) ||
|
||||
! FromString( vsParams[2], m_vtV.z))
|
||||
// 1 solo parametro : il vettore
|
||||
TrimRight( sLine, ";") ;
|
||||
// recupero il vettore
|
||||
if ( ! FromString( sLine, m_vtV))
|
||||
return false ;
|
||||
|
||||
return true ;
|
||||
|
||||
Reference in New Issue
Block a user