EgtGeomKernel 1.4a3 : Migliorata gestione gruppi, aggiunti GdbIterator, GeoFrame3d e IdManager.

This commit is contained in:
Dario Sassi
2013-12-05 07:33:42 +00:00
parent 19e382b435
commit 8e9bc9169c
25 changed files with 1095 additions and 144 deletions
+31 -1
View File
@@ -36,7 +36,7 @@ GdbObj::~GdbObj( void)
//----------------------------------------------------------------------------
GdbObj*
GdbObj::Clone( int nId) const
GdbObj::Clone( int nId, IdManager& IdMgr) const
{
GdbObj* pGdbObj ;
@@ -118,3 +118,33 @@ GdbObj::Load( const std::string& sType, CScan& TheScanner, int& nParentId)
// parametri geometrici
return m_pGeoObj->Load( TheScanner) ;
}
//----------------------------------------------------------------------------
bool
GdbObj::Translate( const Vector3d& vtMove)
{
if ( m_pGeoObj != nullptr)
return m_pGeoObj->Translate( vtMove) ;
else
return false ;
}
//----------------------------------------------------------------------------
bool
GdbObj::Rotate( const Point3d& ptAx, const Vector3d& vtAx, double dCosAng, double dSinAng)
{
if ( m_pGeoObj != nullptr)
return m_pGeoObj->Rotate( ptAx, vtAx, dCosAng, dSinAng) ;
else
return false ;
}
//----------------------------------------------------------------------------
bool
GdbObj::Scale( const Point3d& ptCen, double dCoeffX, double dCoeffY, double dCoeffZ)
{
if ( m_pGeoObj != nullptr)
return m_pGeoObj->Scale( ptCen, dCoeffX, dCoeffY, dCoeffZ) ;
else
return false ;
}