EgtGeomKernel 1.6g6 :

- gestione dei Dump con unità di misura (mm o inch) per interfaccia.
This commit is contained in:
Dario Sassi
2015-07-22 20:36:06 +00:00
parent 3226e030c8
commit d0d5146f99
29 changed files with 77 additions and 64 deletions
+9 -4
View File
@@ -17,8 +17,9 @@
#include "GeoObjFactory.h"
#include "NgeWriter.h"
#include "NgeReader.h"
#include "/EgtDev/Include/EGkStringUtils3d.h"
#include "/EgtDev/Include/EGkPolyLine.h"
#include "/EgtDev/Include/EGkStringUtils3d.h"
#include "/EgtDev/Include/EGkUiUnits.h"
#include <new>
using namespace std ;
@@ -118,11 +119,15 @@ GeoVector3d::GetTitle( void) const
//----------------------------------------------------------------------------
bool
GeoVector3d::Dump( string& sOut, const char* szNewLine) const
GeoVector3d::Dump( string& sOut, bool bMM, const char* szNewLine) const
{
// parametri : vettore
sOut += "V(" + ToString( m_vtV) + ")" + szNewLine ;
sOut += "base(" + ToString( m_ptBase) + ")" + szNewLine ;
// se versore non lo converto (non è detto sia sempre corretto)
if ( m_vtV.IsNormalized())
sOut += "V(" + ToString( m_vtV) + ")" + szNewLine ;
else
sOut += "V(" + ToString( GetInUiUnits( m_vtV, bMM)) + ")" + szNewLine ;
sOut += "base(" + ToString( GetInUiUnits( m_ptBase, bMM), 3) + ")" + szNewLine ;
return true ;
}