EgtGeomKernel 1.5c7 :

- migliorata gestione materiale (colore ora caso speciale)
- si invalida rappresentazione grafica alla modifica del materiale
- spostato comando COUNTER di TSC in EgtGeneral.
This commit is contained in:
Dario Sassi
2014-03-18 08:49:25 +00:00
parent e2c8e72e22
commit dedb4f23cf
14 changed files with 252 additions and 87 deletions
+42 -9
View File
@@ -422,35 +422,68 @@ GdbIterator::GetCalcStatus( int& nStat) const
//----------------------------------------------------------------------------
bool
GdbIterator::SetColor( Color cCol)
GdbIterator::SetMaterial( int nMat)
{
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
return false ;
// assegno il colore
return m_pCurrObj->SetColor( cCol) ;
// assegno il materiale tramite indice
return m_pCurrObj->SetMaterial( nMat) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::GetColor( Color& cCol) const
GdbIterator::SetMaterial( Color cCol)
{
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
return false ;
// recupero il colore
return m_pCurrObj->GetColor( cCol) ;
// assegno il materiale tramite colore
return m_pCurrObj->SetMaterial( cCol) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::GetCalcColor( Color& cCol) const
GdbIterator::GetMaterial( int& nMat) const
{
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
return false ;
// recupero il colore calcolato
return m_pCurrObj->GetCalcColor( cCol) ;
// recupero l'indice del materiale
return m_pCurrObj->GetMaterial( nMat) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::GetMaterial( Color& cCol) const
{
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
return false ;
// recupero il colore del materiale
return m_pCurrObj->GetMaterial( cCol) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::GetCalcMaterial( int& nMat) const
{
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
return false ;
// recupero l'indice del materiale calcolato
return m_pCurrObj->GetCalcMaterial( nMat) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::GetCalcMaterial( Color& cCol) const
{
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
return false ;
// recupero il colore del materiale calcolato
return m_pCurrObj->GetCalcMaterial( cCol) ;
}
//----------------------------------------------------------------------------