EgtGeomKernel 1.5d7 :
- aggiunti materiali e loro gestione - aggiunta gestione libreria materiali.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user