myMinSize(3),
myMaxSize(33),
myMagnification(100),
- myMagnificationIncrement(10),
+ myMagnificationIncrement(2),
myAlphaThreshold(0.1)
{
myPSMapper = VISU_OpenGLPointSpriteMapper::New();
VISU_GaussPointsPL
::ChangeMagnification( bool up )
{
- float anIncrement = up ? myMagnificationIncrement : -myMagnificationIncrement;
- SetMagnification( GetMagnification() + anIncrement );
+ float anIncrement = up ? myMagnificationIncrement : 1.0 / myMagnificationIncrement;
+ SetMagnification( GetMagnification() * anIncrement );
}
//----------------------------------------------------------------------------
msgstr "Magnification (%)"
msgid "VisuGUI_Module::VISU_GAUSS_PREF_INCREMENT"
-msgstr "Increment"
+msgstr "+/- Ratio"
msgid "VisuGUI_Module::VISU_GAUSS_PREF_GEOM_GROUP_TTL"
msgstr "Geometry"
msgstr "Magnification (%) : "
msgid "VisuGUI_GaussPointsDlg::INCREMENT"
-msgstr "Increment : "
+msgstr "+/- Ratio : "
msgid "VisuGUI_GaussPointsDlg::COLOR_TITLE"
msgstr "Color"
// Increment
QLabel* aIncrementLabel = new QLabel( tr( "INCREMENT" ), SizeGroup );
- myIncrementSpinBox = new QtxDblSpinBox( 5, 50, 5, SizeGroup );
+ myIncrementSpinBox = new QtxDblSpinBox( 0.01, 10, 0.1, SizeGroup );
myIncrementSpinBox->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
SizeGroupLayout->addWidget( aIncrementLabel, 2, 2 );
setPreferenceProperty( magnificationPref, "max", 1000 );
int incrementPref = addPreference( tr( "VISU_GAUSS_PREF_INCREMENT" ), sizeGr,
- SalomeApp_Preferences::IntSpin, "VISU", "point_sprite_increment" );
- setPreferenceProperty( incrementPref, "min", 1 );
- setPreferenceProperty( incrementPref, "max", 100 );
+ SalomeApp_Preferences::DblSpin, "VISU", "point_sprite_increment" );
+ setPreferenceProperty( incrementPref, "min", 0.01 );
+ setPreferenceProperty( incrementPref, "max", 10 );
+ setPreferenceProperty( incrementPref, "step", 0.1 );
int geomGr = addPreference( tr( "VISU_GAUSS_PREF_GEOM_GROUP_TTL" ), gaussTab );
setPreferenceProperty( geomGr, "columns", 1 );