EgtGeomKernel 1.5d5 :
- aggiunta scrittura binaria - tolte GetKey, Load e Save da interfaccia IGeoObj.
This commit is contained in:
+14
-6
@@ -15,6 +15,7 @@
|
||||
#include "stdafx.h"
|
||||
#include "GeoFrame3d.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_FRAME3D, "G_FRM", GeoFrame3d) ;
|
||||
GEOOBJ_REGISTER( GEO_FRAME3D, NGE_G_FRM, GeoFrame3d) ;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
GeoFrame3d::GeoFrame3d( void)
|
||||
@@ -92,6 +93,13 @@ GeoFrame3d::Copy( const GeoFrame3d& gfSrc)
|
||||
return Set( gfSrc.m_frF) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
GeoObjType
|
||||
GeoFrame3d::GetType( void) const
|
||||
{
|
||||
return static_cast<GeoObjType>( GEOOBJ_GETTYPE( GeoFrame3d)) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
const string&
|
||||
GeoFrame3d::GetTitle( void) const
|
||||
@@ -114,17 +122,17 @@ GeoFrame3d::Dump( string& sOut, const char* szNewLine) const
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
const string&
|
||||
GeoFrame3d::GetKey( void) const
|
||||
int
|
||||
GeoFrame3d::GetNgeId( void) const
|
||||
{
|
||||
return GEOOBJ_GETKEY( GeoFrame3d) ;
|
||||
return GEOOBJ_GETNGEID( GeoFrame3d) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeoFrame3d::Save( ostream& osOut) const
|
||||
GeoFrame3d::Save( NgeWriter& ngeOut) const
|
||||
{
|
||||
osOut << ToString( m_frF) << ";" << endl ;
|
||||
ngeOut.WriteFrame( m_frF, ";", true) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user