void VisuGUI_SizeBox::setOutsideSize( float theOutsideSize )
{
- theOutsideSize*=100.;
- myOutsideSizeSpinBox->setValue( ( int ) theOutsideSize );
+ myOutsideSizeSpinBox->setValue( ( int ) ( theOutsideSize * 100. + 0.5 ) );
}
float VisuGUI_SizeBox::getGeomSize() const
void VisuGUI_SizeBox::setGeomSize( float theGeomSize )
{
- theGeomSize*=100.;
- myGeomSizeSpinBox->setValue( ( int ) theGeomSize );
+ myGeomSizeSpinBox->setValue( ( int ) ( theGeomSize * 100. + 0.5 ) );
}
float VisuGUI_SizeBox::getMinSize() const
void VisuGUI_SizeBox::setMinSize( float theMinSize )
{
- theMinSize*=100.;
- myMinSizeSpinBox->setValue( ( int ) theMinSize );
+ myMinSizeSpinBox->setValue( ( int ) ( theMinSize * 100. + 0.5 ) );
}
float VisuGUI_SizeBox::getMaxSize() const
void VisuGUI_SizeBox::setMaxSize( float theMaxSize )
{
- theMaxSize*=100.;
- myMaxSizeSpinBox->setValue( (int) theMaxSize );
+ myMaxSizeSpinBox->setValue( (int) ( theMaxSize * 100. + 0.5 ) );
}
float VisuGUI_SizeBox::getMagnification() const
void VisuGUI_SizeBox::setMagnification( float theMagnification )
{
- theMagnification*=100.;
- myMagnificationSpinBox->setValue( (int) theMagnification );
+ myMagnificationSpinBox->setValue( (int) ( theMagnification * 100. + 0.5 ) );
}
float VisuGUI_SizeBox::getIncrement() const