This commit is contained in:
eap 2013-06-17 12:15:50 +00:00
parent adec87681f
commit 407cadd372
176 changed files with 1941 additions and 1936 deletions

View File

@ -425,10 +425,12 @@ double Material_Model::reflection( ReflectionType type, bool theIsFront ) const
{
double value = 0.0;
if ( type >= 0 && type < 4 )
{
if ( theIsFront )
value = myReflection[ type ].front_coef;
else
value = myReflection[ type ].back_coef;
}
return value;
}
@ -442,11 +444,13 @@ double Material_Model::reflection( ReflectionType type, bool theIsFront ) const
void Material_Model::setReflection( ReflectionType type, double value, bool theIsFront )
{
if ( type >= 0 && type < 4 )
{
if ( theIsFront )
myReflection[ type ].front_coef = value;
else
myReflection[ type ].back_coef = value;
}
}
/*!
\brief Get shininess value

View File

@ -491,9 +491,10 @@ void RepairGUI_ShapeProcessDlg::loadDefaults()
}
// Retrieve default parameters for ALL operators
for ( int i = 0; i < myOpList->count(); i++ ) {
CORBA::String_var anOperator = CORBA::string_dup( myOpList->item( i )->text().toLatin1().constData() );
anOp->GetOperatorParameters( anOperator.in(), aParams, aValues );
for ( int i = 0; i < myOpList->count(); i++ )
{
QString anOperator = myOpList->item( i )->text();
anOp->GetOperatorParameters( anOperator.toLatin1().constData(), aParams, aValues );
// set default values of parameters
if ( aParams->length() != aValues->length() )
@ -680,7 +681,7 @@ GEOM::string_array* RepairGUI_ShapeProcessDlg::getActiveOperators()
anOperators->length( aCheckedList.count() );
for ( int i = 0; i < aCheckedList.count(); i++ )
anOperators[i] = CORBA::string_dup( aCheckedList[i].toLatin1().constData() );
anOperators[i] = aCheckedList[i].toLatin1().constData();
return anOperators._retn();
}