EgtGeomKernel 1.5e8 :
- aggiunta iterazione anche con Id - correzione a creazione arco per normalizzazione N - agg. funzioni per sapere se esiste un INFO - possibilità di fare inserimenti nel DBG prima/dopo un oggetto indicato.
This commit is contained in:
@@ -303,6 +303,21 @@ GdbIterator::GetGroupGlobFrame( Frame3d& frGlob) const
|
||||
return pGdbGroup->GetGlobFrame( frGlob) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
int
|
||||
GdbIterator::GetGroupObjs( void) const
|
||||
{
|
||||
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
|
||||
return 0 ;
|
||||
|
||||
GdbGroup* pGdbGroup ;
|
||||
if ( ( pGdbGroup = GetGdbGroup( m_pCurrObj)) == nullptr)
|
||||
return 0 ;
|
||||
|
||||
// restituisco il numero di nodi (figli)
|
||||
return pGdbGroup->GetObjCount() ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
int
|
||||
GdbIterator::GetId( void) const
|
||||
@@ -683,6 +698,17 @@ GdbIterator::GetName( string& sName) const
|
||||
return m_pCurrObj->GetName( sName) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GdbIterator::ExistsName( void) const
|
||||
{
|
||||
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
|
||||
return false ;
|
||||
|
||||
// verifico esistenza del nome
|
||||
return m_pCurrObj->ExistsName() ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GdbIterator::RemoveName( void)
|
||||
@@ -716,6 +742,17 @@ GdbIterator::GetInfo( const string& sKey, string& sInfo) const
|
||||
return m_pCurrObj->GetInfo( sKey, sInfo) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GdbIterator::ExistsInfo( const string& sKey) const
|
||||
{
|
||||
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
|
||||
return false ;
|
||||
|
||||
// verifico l'esistenza dell'Info
|
||||
return m_pCurrObj->ExistsInfo( sKey) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GdbIterator::RemoveInfo( const string& sKey)
|
||||
|
||||
Reference in New Issue
Block a user