20 mAttributeId = attributeId;
21 mDefaultValue = defaultValue;
22 mToMetricFactor = toMetricFactor;
29 if ( mAttributeId < 0 || mAttributeId >= attrs.count() )
30 return QVariant( distance / ( mDefaultValue * mToMetricFactor ) );
32 double val = distance / ( attrs.at( mAttributeId ).toDouble() * mToMetricFactor );
34 return QVariant( distance / ( mDefaultValue / mToMetricFactor ) );
36 return QVariant( val );
42 l.insert( mAttributeId );