mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-28 07:20:33 +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;
|
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,11 +444,13 @@ 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;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Get shininess value
|
\brief Get shininess value
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user