From 5f6971e616da492b328cfe09e58692c829cbc1f4 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 7 Oct 2005 13:02:11 +0000 Subject: [PATCH] Value of point sprite const size changed --- src/VVTK/VVTK_SegmentationCursorDlg.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); -- 2.39.2