Lines Matching refs:fValue
169 double fValue; in InitFields() local
271 bSuccess = mrSane.GetOptionValue( nOption, fValue, 0 ); in InitFields()
277 pField->SetValue( (int)fValue, FUNIT_MM ); in InitFields()
281 pField->SetValue( (int)fValue, FUNIT_CUSTOM ); in InitFields()
285 case 0: maTopLeft.X() = (int)fValue;break; in InitFields()
286 case 1: maTopLeft.Y() = (int)fValue;break; in InitFields()
287 case 2: maBottomRight.X() = (int)fValue;break; in InitFields()
288 case 3: maBottomRight.Y() = (int)fValue;break; in InitFields()
314 case 0: maMinTopLeft.X() = (int)fValue;break; in InitFields()
315 case 1: maMinTopLeft.Y() = (int)fValue;break; in InitFields()
316 case 2: maMaxBottomRight.X() = (int)fValue;break; in InitFields()
317 case 3: maMaxBottomRight.Y() = (int)fValue;break; in InitFields()
507 double fValue = atof( aValue.GetBuffer() ); in IMPL_LINK() local
508 mrSane.SetOptionValue( mnCurrentOption, fValue, mnCurrentElement ); in IMPL_LINK()
625 double fValue; in IMPL_LINK() local
628 fValue = atof( aContents.GetBuffer() ); in IMPL_LINK()
629 if( mfMin != mfMax && ( fValue < mfMin || fValue > mfMax ) ) in IMPL_LINK()
631 if( fValue < mfMin ) in IMPL_LINK()
632 fValue = mfMin; in IMPL_LINK()
633 else if( fValue > mfMax ) in IMPL_LINK()
634 fValue = mfMax; in IMPL_LINK()
635 sprintf( pBuf, "%g", fValue ); in IMPL_LINK()
638 mrSane.SetOptionValue( mnCurrentOption, fValue, mnCurrentElement ); in IMPL_LINK()
644 double fValue; in IMPL_LINK() local
645 mrSane.GetOptionValue( mnCurrentOption, fValue, mnCurrentElement ); in IMPL_LINK()
646 sprintf( pBuf, "%g", fValue ); in IMPL_LINK()
867 double fValue; in EstablishQuantumRange() local
868 if( mrSane.GetOptionValue( mnCurrentOption, fValue, mnCurrentElement ) ) in EstablishQuantumRange()
870 sprintf( pBuf, "%g", fValue ); in EstablishQuantumRange()
885 double fValue; in EstablishNumericOption() local
887 bSuccess = mrSane.GetOptionValue( mnCurrentOption, fValue ); in EstablishNumericOption()
902 sprintf( pBuf, "%g", fValue ); in EstablishNumericOption()
1215 double fValue=0.0; in LoadState() local
1219 sscanf( aSub.GetBuffer(), "%lg", &fValue ); in LoadState()
1220 SetAdjustedNumericalValue( aString.GetBuffer(), fValue, n ); in LoadState()
1284 double fValue; in SaveState() local
1288 if( ! mrSane.GetOptionValue( i, fValue, n ) ) in SaveState()
1292 sprintf( buf, "%lg", fValue ); in SaveState()
1348 double fValue; in SaveState() local
1354 if( ! mrSane.GetOptionValue( nOption, fValue, n ) ) in SaveState()
1358 sprintf( buf, "%lg", fValue ); in SaveState()
1376 double fValue, in SetAdjustedNumericalValue() argument
1393 pOption, fValue ); in SetAdjustedNumericalValue()
1402 if( fabs( fValue - pValues[ i ] ) < fNearest ) in SetAdjustedNumericalValue()
1404 fNearest = fabs( fValue - pValues[ i ] ); in SetAdjustedNumericalValue()
1408 fValue = pValues[ nNearest ]; in SetAdjustedNumericalValue()
1412 if( fValue < pValues[0] ) in SetAdjustedNumericalValue()
1413 fValue = pValues[0]; in SetAdjustedNumericalValue()
1414 if( fValue > pValues[1] ) in SetAdjustedNumericalValue()
1415 fValue = pValues[1]; in SetAdjustedNumericalValue()
1418 mrSane.SetOptionValue( nOption, fValue, nElement ); in SetAdjustedNumericalValue()
1420 fprintf( stderr, "yields %lg\n", fValue ); in SetAdjustedNumericalValue()