From: ouv Date: Fri, 7 Oct 2005 13:02:11 +0000 (+0000) Subject: Value of point sprite const size changed X-Git-Tag: BR-D5-38-2003_D2005-12-10~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f6971e616da492b328cfe09e58692c829cbc1f4;p=modules%2Fvisu.git Value of point sprite const size changed --- diff --git a/src/VVTK/VVTK_SegmentationCursorDlg.cxx b/src/VVTK/VVTK_SegmentationCursorDlg.cxx index a683d937..39e7869e 100644 --- a/src/VVTK/VVTK_SegmentationCursorDlg.cxx +++ b/src/VVTK/VVTK_SegmentationCursorDlg.cxx @@ -404,7 +404,7 @@ void VVTK_SegmentationCursorDlg::UpdateOutsideCursor() QString aMainTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/sprite_texture.bmp"; QString anAlphaTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/sprite_alpha.bmp"; float anAlphaThreshold = 0.1; - float aSize = 0.25; + int aSize = 25; QColor aColor = Qt::blue; if( !myOutsideCursorSettings->GetInitial() ) @@ -413,7 +413,7 @@ void VVTK_SegmentationCursorDlg::UpdateOutsideCursor() myMainTextureLineEdit->setText( myMainTexture.section( '/', -1 ) ); myAlphaTextureLineEdit->setText( myAlphaTexture.section( '/', -1 ) ); myAlphaThresholdSpinBox->setValue( myOutsideCursorSettings->GetAlphaThreshold() ); - mySizeSpinBox->setValue( myOutsideCursorSettings->GetSize() * 100.0 ); + mySizeSpinBox->setValue( myOutsideCursorSettings->GetSize() ); float* aColor = myOutsideCursorSettings->GetColor(); myColorButton->setPaletteBackgroundColor( QColor( ( int )( aColor[0] * 255.0 ), @@ -437,7 +437,7 @@ void VVTK_SegmentationCursorDlg::UpdateOutsideCursor() anAlphaThreshold = aResourceMgr->doubleValue( "VISU", "outside_point_sprite_alpha_threshold", anAlphaThreshold ); myAlphaThresholdSpinBox->setValue( anAlphaThreshold ); - aSize = aResourceMgr->doubleValue( "VISU", "outside_point_sprite_size", aSize ); + aSize = aResourceMgr->integerValue( "VISU", "outside_point_sprite_size", aSize ); mySizeSpinBox->setValue( aSize ); aColor = aResourceMgr->colorValue( "VISU", "outside_point_sprite_color", aColor );