EgtGeomKernel 1.5d5 :
- aggiunta scrittura binaria - tolte GetKey, Load e Save da interfaccia IGeoObj.
This commit is contained in:
+14
-6
@@ -15,13 +15,14 @@
|
||||
#include "stdafx.h"
|
||||
#include "GeoPoint3d.h"
|
||||
#include "GeoObjFactory.h"
|
||||
#include "NgeWriter.h"
|
||||
#include "\EgtDev\Include\EGkStringUtils3d.h"
|
||||
#include <new>
|
||||
|
||||
using namespace std ;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
GEOOBJ_REGISTER( GEO_PNT3D, "G_PNT", GeoPoint3d) ;
|
||||
GEOOBJ_REGISTER( GEO_PNT3D, NGE_G_PNT, GeoPoint3d) ;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
GeoPoint3d::GeoPoint3d( void)
|
||||
@@ -82,6 +83,13 @@ GeoPoint3d::Copy( const GeoPoint3d& clSrc)
|
||||
return Set( clSrc.m_ptP) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
GeoObjType
|
||||
GeoPoint3d::GetType( void) const
|
||||
{
|
||||
return static_cast<GeoObjType>( GEOOBJ_GETTYPE( GeoPoint3d)) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
const string&
|
||||
GeoPoint3d::GetTitle( void) const
|
||||
@@ -101,18 +109,18 @@ GeoPoint3d::Dump( string& sOut, const char* szNewLine) const
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
const string&
|
||||
GeoPoint3d::GetKey( void) const
|
||||
int
|
||||
GeoPoint3d::GetNgeId( void) const
|
||||
{
|
||||
return GEOOBJ_GETKEY( GeoPoint3d) ;
|
||||
return GEOOBJ_GETNGEID( GeoPoint3d) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeoPoint3d::Save( ostream& osOut) const
|
||||
GeoPoint3d::Save( NgeWriter& ngeOut) const
|
||||
{
|
||||
// parametri : punto
|
||||
osOut << ToString( m_ptP) << ";" << endl ;
|
||||
ngeOut.WritePoint( m_ptP, ";", true) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user