EgtGeomKernel : anche GeoVector3d usa interfaccia IGeo*;

const al posto di #define.
This commit is contained in:
Dario Sassi
2013-11-22 14:57:00 +00:00
parent f3952524a6
commit 0b4d72acb8
7 changed files with 57 additions and 51 deletions
+22 -22
View File
@@ -100,39 +100,39 @@ Frame3d::Set( const Point3d& ptOrig, Type nType)
switch ( nType) {
case TOP :
m_nType = m_nZType ;
m_vtVersX.Set( 1, 0, 0) ;
m_vtVersY.Set( 0, 1, 0) ;
m_vtVersZ.Set( 0, 0, 1) ;
m_vtVersX = X_AX ;
m_vtVersY = Y_AX ;
m_vtVersZ = Z_AX ;
break ;
case BOTTOM :
m_nType = BOTTOM ;
m_vtVersX.Set( 1, 0, 0) ;
m_vtVersY.Set( 0, -1, 0) ;
m_vtVersZ.Set( 0, 0, -1) ;
m_vtVersX = X_AX ;
m_vtVersY = - Y_AX ;
m_vtVersZ = - Z_AX ;
break ;
case FRONT :
m_nType = FRONT ;
m_vtVersX.Set( 1, 0, 0) ;
m_vtVersY.Set( 0, 0, 1) ;
m_vtVersZ.Set( 0, -1, 0) ;
m_vtVersX = X_AX ;
m_vtVersY = Z_AX ;
m_vtVersZ = - Y_AX ;
break ;
case BACK :
m_nType = BACK ;
m_vtVersX.Set( -1, 0, 0) ;
m_vtVersY.Set( 0, 0, 1) ;
m_vtVersZ.Set( 0, 1, 0) ;
m_vtVersX = - X_AX ;
m_vtVersY = Z_AX ;
m_vtVersZ = Y_AX ;
break ;
case LEFT :
m_nType = LEFT ;
m_vtVersX.Set( 0, -1, 0) ;
m_vtVersY.Set( 0, 0, 1) ;
m_vtVersZ.Set( -1, 0, 0) ;
m_vtVersX = - Y_AX ;
m_vtVersY = Z_AX ;
m_vtVersZ = - X_AX ;
break ;
case RIGHT :
m_nType = RIGHT ;
m_vtVersX.Set( 0, 1, 0) ;
m_vtVersY.Set( 0, 0, 1) ;
m_vtVersZ.Set( 1, 0, 0) ;
m_vtVersX = Y_AX ;
m_vtVersY = Z_AX ;
m_vtVersZ = X_AX ;
break ;
default :
m_nType = ERR ;
@@ -150,10 +150,10 @@ Frame3d::Reset( void)
{
m_nType = TOP ;
m_nZType = TOP ;
m_ptOrig.Set( 0, 0, 0) ;
m_vtVersX.Set( 1, 0, 0) ;
m_vtVersY.Set( 0, 1, 0) ;
m_vtVersZ.Set( 0, 0, 1) ;
m_ptOrig = ORIG ;
m_vtVersX = X_AX ;
m_vtVersY = Y_AX ;
m_vtVersZ = Z_AX ;
return true ;
}