EgtGeomKernel 1.5d5 :

- aggiunta scrittura binaria
- tolte GetKey, Load e Save da interfaccia IGeoObj.
This commit is contained in:
Dario Sassi
2014-04-14 15:57:58 +00:00
parent 39db15e41e
commit f956fd20cc
37 changed files with 829 additions and 198 deletions
+14 -6
View File
@@ -15,6 +15,7 @@
#include "stdafx.h"
#include "GeoVector3d.h"
#include "GeoObjFactory.h"
#include "NgeWriter.h"
#include "/EgtDev/Include/EGkStringUtils3d.h"
#include "/EgtDev/Include/EGkPolyLine.h"
#include <new>
@@ -22,7 +23,7 @@
using namespace std ;
//----------------------------------------------------------------------------
GEOOBJ_REGISTER( GEO_VECT3D, "G_VEC", GeoVector3d) ;
GEOOBJ_REGISTER( GEO_VECT3D, NGE_G_VEC, GeoVector3d) ;
//----------------------------------------------------------------------------
GeoVector3d::GeoVector3d( void)
@@ -83,6 +84,13 @@ GeoVector3d::Copy( const GeoVector3d& clSrc)
return Set( clSrc.m_vtV) ;
}
//----------------------------------------------------------------------------
GeoObjType
GeoVector3d::GetType( void) const
{
return static_cast<GeoObjType>( GEOOBJ_GETTYPE( GeoVector3d)) ;
}
//----------------------------------------------------------------------------
const string&
GeoVector3d::GetTitle( void) const
@@ -102,18 +110,18 @@ GeoVector3d::Dump( string& sOut, const char* szNewLine) const
}
//----------------------------------------------------------------------------
const string&
GeoVector3d::GetKey( void) const
int
GeoVector3d::GetNgeId( void) const
{
return GEOOBJ_GETKEY( GeoVector3d) ;
return GEOOBJ_GETNGEID( GeoVector3d) ;
}
//----------------------------------------------------------------------------
bool
GeoVector3d::Save( ostream& osOut) const
GeoVector3d::Save( NgeWriter& ngeOut) const
{
// parametri : vettore
osOut << ToString( m_vtV) << ";" << endl ;
ngeOut.WriteVector( m_vtV, ";", true) ;
return true ;
}