EgtGeomKernel 1.5d7 :

- aggiunti materiali e loro gestione
- aggiunta gestione libreria materiali.
This commit is contained in:
Dario Sassi
2014-04-27 20:09:56 +00:00
parent 7e680c311f
commit 5fe590f627
21 changed files with 1020 additions and 181 deletions
+33
View File
@@ -573,6 +573,17 @@ GdbIterator::SetMaterial( int nMat)
return m_pCurrObj->SetMaterial( nMat) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::SetMaterial( int nMat, const string& sMatName)
{
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
return false ;
// assegno il materiale
return m_pGDB->SetMaterial( m_pCurrObj, sMatName) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::SetMaterial( Color cCol)
@@ -595,6 +606,17 @@ GdbIterator::GetMaterial( int& nMat) const
return m_pCurrObj->GetMaterial( nMat) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::GetMaterial( Material& mMat) const
{
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
return false ;
// recupero il materiale
return m_pGDB->GetMaterial( m_pCurrObj, mMat) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::GetMaterial( Color& cCol) const
@@ -617,6 +639,17 @@ GdbIterator::GetCalcMaterial( int& nMat) const
return m_pCurrObj->GetCalcMaterial( nMat) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::GetCalcMaterial( Material& mMat) const
{
if ( m_pGDB == nullptr || m_pCurrObj == nullptr)
return false ;
// recupero il materiale
return m_pGDB->GetCalcMaterial( m_pCurrObj, mMat) ;
}
//----------------------------------------------------------------------------
bool
GdbIterator::GetCalcMaterial( Color& cCol) const