mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 11:00:32 +05:00
untabify
This commit is contained in:
parent
adec87681f
commit
407cadd372
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user