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