EgtGeomKernel 1.5j7 :
- aggiunta gestione copia attributi di oggetti.
This commit is contained in:
+16
@@ -1384,6 +1384,22 @@ GeomDB::DumpAttributes( int nId, string& sOut, const char* szNewLine) const
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeomDB::CopyAttributes( int nIdSou, int nIdDest)
|
||||
{
|
||||
// verifico esistenza del sorgente
|
||||
GdbObj* pGdOSou = GetGdbObj( nIdSou) ;
|
||||
if ( pGdOSou == nullptr)
|
||||
return false ;
|
||||
// verifico esistenza della destinazione
|
||||
GdbObj* pGdODest = GetGdbObj( nIdDest) ;
|
||||
if ( pGdODest == nullptr)
|
||||
return false ;
|
||||
// eseguo la copia
|
||||
return pGdODest->CopyAttribsFrom( pGdOSou) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeomDB::SetLevel( int nId, int nLevel)
|
||||
|
||||
Reference in New Issue
Block a user