EgtGeomKernel :

- correzione a PolyLine (Splice)
- impostazione Reset grafica sulle diverse entità geometriche.
This commit is contained in:
Dario Sassi
2014-02-17 09:39:49 +00:00
parent 997c65781f
commit 8a416970a3
14 changed files with 287 additions and 224 deletions
+15 -8
View File
@@ -39,6 +39,9 @@ bool
GeoFrame3d::Set( const Point3d& ptOrig, const Vector3d& vtDirX,
const Vector3d& vtDirY, const Vector3d& vtDirZ)
{
// imposto ricalcolo della grafica
m_OGrMgr.Reset() ;
// assegno i dati
return m_frF.Set( ptOrig, vtDirX, vtDirY, vtDirZ) ;
}
@@ -46,8 +49,12 @@ GeoFrame3d::Set( const Point3d& ptOrig, const Vector3d& vtDirX,
bool
GeoFrame3d::Set( const Frame3d& frF)
{
// assegno i dati
m_frF = frF ;
// imposto ricalcolo della grafica
m_OGrMgr.Reset() ;
return true ;
}
@@ -93,32 +100,32 @@ GeoFrame3d::Save( ostream& osOut) const
bool
GeoFrame3d::Load( Scanner& TheScanner)
{
Point3d ptOrig ;
Vector3d vtDirX ;
Vector3d vtDirY ;
Vector3d vtDirZ ;
string sLine ;
STRVECTOR vsParams ;
// imposto ricalcolo della grafica
m_OGrMgr.Reset() ;
// leggo la prossima linea
string sLine ;
if ( ! TheScanner.GetLine( sLine))
return false ;
// la divido in parametri
STRVECTOR vsParams ;
Tokenize( sLine, ";", vsParams) ;
// 4 parametri : origine, versore X, versore Y, versore Z
if ( vsParams.size() != 4)
return false ;
// recupero l'origine
Point3d ptOrig ;
if ( ! FromString( vsParams[0], ptOrig))
return false ;
// recupero il versore X
Vector3d vtDirX ;
if ( ! FromString( vsParams[1], vtDirX))
return false ;
// recupero il versore Y
Vector3d vtDirY ;
if ( ! FromString( vsParams[2], vtDirY))
return false ;
// recupero il versore Z
Vector3d vtDirZ ;
if ( ! FromString( vsParams[3], vtDirZ))
return false ;
// imposto il riferimento