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; double value = 0.0;
if ( type >= 0 && type < 4 ) if ( type >= 0 && type < 4 )
{
if ( theIsFront ) if ( theIsFront )
value = myReflection[ type ].front_coef; value = myReflection[ type ].front_coef;
else else
value = myReflection[ type ].back_coef; value = myReflection[ type ].back_coef;
}
return value; return value;
} }
@ -442,10 +444,12 @@ double Material_Model::reflection( ReflectionType type, bool theIsFront ) const
void Material_Model::setReflection( ReflectionType type, double value, bool theIsFront ) void Material_Model::setReflection( ReflectionType type, double value, bool theIsFront )
{ {
if ( type >= 0 && type < 4 ) if ( type >= 0 && type < 4 )
{
if ( theIsFront ) if ( theIsFront )
myReflection[ type ].front_coef = value; myReflection[ type ].front_coef = value;
else else
myReflection[ type ].back_coef = value; myReflection[ type ].back_coef = value;
}
} }
/*! /*!

View File

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