InfoWindowGroupLayout->setMargin(11);
QLabel* TransparencyLabel = new QLabel( tr( "TRANSPARENCY" ), InfoWindowGroup );
- myTransparencySpinBox = new QtxDblSpinBox( 0.0, 1.0, 0.1, InfoWindowGroup );
+ myTransparencySpinBox = new QtxIntSpinBox( 0, 100, 10, InfoWindowGroup );
myTransparencySpinBox->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
InfoWindowGroupLayout->addWidget( TransparencyLabel, 0, 0 );
void VVTK_PickingDlg::Update()
{
float aPyramidHeight = 10.0;
- float anInfoWindowTransparency = 0.5;
+ int anInfoWindowTransparency = 50;
int anInfoWindowPosition = VISU_PickingSettings::BelowPoint;
float aZoomFactor = 1.5;
int aStepNumber = 10;
if( !myPickingSettings->GetInitial() )
{
myPyramidHeightSpinBox->setValue( myPickingSettings->GetPyramidHeight() );
- myTransparencySpinBox->setValue( myPickingSettings->GetInfoWindowTransparency() );
+ myTransparencySpinBox->setValue( myPickingSettings->GetInfoWindowTransparency() * 100.0 );
myPositionComboBox->setCurrentItem( myPickingSettings->GetInfoWindowPosition() );
myZoomFactorSpinBox->setValue( myPickingSettings->GetZoomFactor() );
myStepNumberSpinBox->setValue( myPickingSettings->GetStepNumber() );
aPyramidHeight = aResourceMgr->doubleValue( "VISU", "picking_pyramid_height", aPyramidHeight );
myPyramidHeightSpinBox->setValue( aPyramidHeight );
- anInfoWindowTransparency = aResourceMgr->doubleValue( "VISU", "picking_transparency", anInfoWindowTransparency );
+ anInfoWindowTransparency = aResourceMgr->integerValue( "VISU", "picking_transparency", anInfoWindowTransparency );
myTransparencySpinBox->setValue( anInfoWindowTransparency );
anInfoWindowPosition = aResourceMgr->integerValue( "VISU", "picking_position", anInfoWindowPosition );
myPickingSettings->SetInitial( false );
myPickingSettings->SetPyramidHeight( myPyramidHeightSpinBox->value() );
- myPickingSettings->SetInfoWindowTransparency( myTransparencySpinBox->value() );
+ myPickingSettings->SetInfoWindowTransparency( myTransparencySpinBox->value() / 100.0 );
myPickingSettings->SetInfoWindowPosition( myPositionComboBox->currentItem() );
myPickingSettings->SetZoomFactor( myZoomFactorSpinBox->value() );
myPickingSettings->SetStepNumber( myStepNumberSpinBox->value() );