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:
+42
-9
@@ -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) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user