msgid "VisuGUI_Module::MEN_GAUSS_NEW_VIEWER"
msgstr "Points view"
+msgid "VisuGUI_Module::MEN_GAUSS_CREATE_PRS"
+msgstr "Gauss Points"
msgid "VisuGUI_Module::VISU_GAUSS_PREF_TAB_TTL"
msgstr "Gauss Points"
msgstr "Alpha Channel Threshold"
msgid "VisuGUI_Module::VISU_GAUSS_PREF_RESOLUTION"
-msgstr "Resolution"
+msgstr "Geometrical sphere resolution"
msgid "VisuGUI_Module::VISU_GAUSS_PREF_FACE_LIMIT"
msgstr "Notify when number of faces exceeds"
msgid "VisuGUI_Module::VISU_GAUSS_PREF_SCALE_FACTOR"
msgstr "Scale factor"
+msgid "VisuGUI_Module::VISU_GAUSS_PREF_RESOLUTION"
+msgstr "Geometrical sphere resolution"
+
+msgid "VisuGUI_Module::GAUSS_PREF_FACE_LIMIT"
+msgstr "Notify when number of faces exceeds"
+
msgid "VisuGUI_Module::VISU_GAUSS_SCALAR_BAR_PREF_TAB_TTL"
msgstr "Gauss Points Scalar Bar"
msgid "VisuGUI_Module::VISU_GAUSS_PREF_SPACING"
msgstr "Spacing"
+msgid "VisuGUI_Module::VISU_GAUSS_INSIDE_CURSOR_PREF_TAB_TTL"
+msgstr "Inside Cursor"
+
+msgid "VisuGUI_Module::VISU_GAUSS_PREF_MAGNIFICATION_GROUP_TTL"
+msgstr "Magnification (Inside and Outside)"
+
msgid "VisuGUI_Module::VISU_GAUSS_OUTSIDE_CURSOR_PREF_TAB_TTL"
-msgstr "Outside Cursor Gauss Points"
+msgstr "Outside Cursor"
msgid "VisuGUI_Module::VISU_GAUSS_PREF_UNIFORM_COLOR"
msgstr "Uniform Color"
-msgid "VisuGUI_Module::VISU_GAUSS_INSIDE_CURSOR_PREF_TAB_TTL"
-msgstr "Inside Cursor Gauss Points"
-
-msgid "VisuGUI_Module::VISU_GAUSS_PREF_MAGNIFICATION_GROUP_TTL"
-msgstr "Magnification (Inside & Outside)"
-
msgid "VisuGUI_Module::VISU_GAUSS_PREF_COLOR_GROUP_TTL"
msgstr "Color"
msgid "VisuGUI_Module::VISU_CAMERA_MOVE_PREF"
msgstr "Number of steps between two positions"
-msgid "VisuGUI_Module::MEN_GAUSS_CREATE_PRS"
-msgstr "Gauss Points"
+msgid "VisuGUI_Module::VISU_RECORDER_PREF_TAB_TTL"
+msgstr "Recorder"
+
+msgid "VisuGUI_Module::VISU_RECORDER_PREF_GROUP_TTL"
+msgstr "Settings"
+
+msgid "VisuGUI_Module::VISU_RECORDER_PREF_RECORDING_MODE"
+msgstr "Mode"
+
+msgid "VisuGUI_Module::VISU_RECORDER_PREF_SKIPPED_FRAMES"
+msgstr "Recording at a given FPS"
+
+msgid "VisuGUI_Module::VISU_RECORDER_PREF_ALL_DISLPAYED_FRAMES"
+msgstr "Recording all displayed frames"
+
+msgid "VisuGUI_Module::VISU_RECORDER_PREF_FPS"
+msgstr "FPS"
+
+msgid "VisuGUI_Module::VISU_RECORDER_PREF_QUALITY"
+msgstr "Quality"
+
+msgid "VisuGUI_Module::VISU_RECORDER_PREF_PROGRESSIVE"
+msgstr "Progressive"
msgid "VisuGUI_GaussPointsDlg::DLG_PREF_TITLE"
msgstr "Gauss Points Preferences"
{
int sbarTab = addPreference( tr( "VISU_SCALAR_BAR" ) );
+ int rangeGr = addPreference( tr( "VISU_SCALAR_RANGE" ), sbarTab );
+ setPreferenceProperty( rangeGr, "columns", 1 );
+
+ int mode = addPreference( tr( "VISU_SCALAR_MODE" ), rangeGr, LightApp_Preferences::Selector, "VISU", "scalar_bar_mode" );
+ QStringList modes;
+ modes.append( tr( "VISU_MODULUS" ) );
+ modes.append( tr( "VISU_COMPONENT" ) + tr("1") );
+ modes.append( tr( "VISU_COMPONENT" ) + tr("2") );
+ modes.append( tr( "VISU_COMPONENT" ) + tr("3") );
+ QValueList<QVariant> indices;
+ indices.append( 0 );
+ indices.append( 1 );
+ indices.append( 2 );
+ indices.append( 3 );
+ setPreferenceProperty( mode, "strings", modes );
+ setPreferenceProperty( mode, "indexes", indices );
+
+ addPreference( tr( "VISU_LOGARITHMIC_SCALING" ), rangeGr, LightApp_Preferences::Bool, "VISU", "scalar_bar_logarithmic" );
+
+ int rangetype = addPreference( tr( "VISU_RANGE_TO_USE" ), rangeGr, LightApp_Preferences::Selector, "VISU", "scalar_range_type" );
+ QStringList types;
+ types.append( tr( "VISU_FIELD_RANGE" ) );
+ types.append( tr( "VISU_IMPOSED_RANGE" ) );
+ indices.clear();
+ indices.append( 0 );
+ indices.append( 1 );
+ setPreferenceProperty( rangetype, "strings", types );
+ setPreferenceProperty( rangetype, "indexes", indices );
+
+ int imposedGr = addPreference( tr( "VISU_MINMAX_IMPOSED_RANGE" ), sbarTab );
+
+ int min = addPreference( tr( "VISU_MIN" ), imposedGr, LightApp_Preferences::DblSpin, "VISU", "scalar_range_min" );
+ int max = addPreference( tr( "VISU_MAX" ), imposedGr, LightApp_Preferences::DblSpin, "VISU", "scalar_range_max" );
+ setPreferenceProperty( min, "step", 0.1 );
+ setPreferenceProperty( max, "step", 0.1 );
+
int fontGr = addPreference( tr( "VISU_FONT" ), sbarTab );
int tfont = addPreference( tr( "VISU_TITLE" ), fontGr, LightApp_Preferences::Font, "VISU", "scalar_bar_title_font" );
addPreference( tr( "VISU_TITLE" ), fontGr, LightApp_Preferences::Color, "VISU", "scalar_bar_title_color" );
QStringList orients;
orients.append( tr( "VISU_VERTICAL" ) );
orients.append( tr( "VISU_HORIZONTAL" ) );
- QValueList<QVariant> indices;
+ indices.clear();
indices.append( 0 );
indices.append( 1 );
setPreferenceProperty( orient, "strings", orients );
setPreferenceProperty( wh, "max", 1.0 );
setPreferenceProperty( hh, "max", 1.0 );
- int srangeTab = addPreference( tr( "Scalar range, Sweep, MED import" ) );
-
- int rangeGr = addPreference( tr( "VISU_SCALAR_RANGE" ), srangeTab );
- setPreferenceProperty( rangeGr, "columns", 1 );
-
- int mode = addPreference( tr( "VISU_SCALAR_MODE" ), rangeGr, LightApp_Preferences::Selector, "VISU", "scalar_bar_mode" );
- QStringList modes;
- modes.append( tr( "VISU_MODULUS" ) );
- modes.append( tr( "VISU_COMPONENT" ) + tr("1") );
- modes.append( tr( "VISU_COMPONENT" ) + tr("2") );
- modes.append( tr( "VISU_COMPONENT" ) + tr("3") );
- indices.clear();
- indices.append( 0 );
- indices.append( 1 );
- indices.append( 2 );
- indices.append( 3 );
- setPreferenceProperty( mode, "strings", modes );
- setPreferenceProperty( mode, "indexes", indices );
-
- addPreference( tr( "VISU_LOGARITHMIC_SCALING" ), rangeGr, LightApp_Preferences::Bool, "VISU", "scalar_bar_logarithmic" );
-
- int rangetype = addPreference( tr( "VISU_RANGE_TO_USE" ), rangeGr, LightApp_Preferences::Selector, "VISU", "scalar_range_type" );
- QStringList types;
- types.append( tr( "VISU_FIELD_RANGE" ) );
- types.append( tr( "VISU_IMPOSED_RANGE" ) );
- indices.clear();
- indices.append( 0 );
- indices.append( 1 );
- setPreferenceProperty( rangetype, "strings", types );
- setPreferenceProperty( rangetype, "indexes", indices );
-
- int imposedGr = addPreference( tr( "VISU_MINMAX_IMPOSED_RANGE" ), srangeTab );
-
- int min = addPreference( tr( "VISU_MIN" ), imposedGr, LightApp_Preferences::DblSpin, "VISU", "scalar_range_min" );
- int max = addPreference( tr( "VISU_MAX" ), imposedGr, LightApp_Preferences::DblSpin, "VISU", "scalar_range_max" );
- setPreferenceProperty( min, "step", 0.1 );
- setPreferenceProperty( max, "step", 0.1 );
+ int srangeTab = addPreference( tr( "Sweep, MED import" ) );
int sweepGr = addPreference( tr( "VISU_SWEEPING_PREF" ), srangeTab );
setPreferenceProperty( sweepGr, "columns", 1 );
setPreferenceProperty( nbsteps, "max", 200 );
int importGr = addPreference( tr( "MED files import" ), srangeTab );
+ setPreferenceProperty( importGr, "columns", 1 );
addPreference( tr( "Full MED loading" ), importGr, LightApp_Preferences::Bool, "VISU", "full_med_loading" );
+ addPreference( tr( "Build at once" ), importGr, LightApp_Preferences::Bool, "VISU", "build_at_once" );
+ addPreference( tr( "Build fields" ), importGr, LightApp_Preferences::Bool, "VISU", "build_fields" );
+ addPreference( tr( "Build min/max" ), importGr, LightApp_Preferences::Bool, "VISU", "build_min_max" );
+ addPreference( tr( "Build groups" ), importGr, LightApp_Preferences::Bool, "VISU", "build_groups" );
+ addPreference( tr( "Close dialog at finish" ), importGr, LightApp_Preferences::Bool, "VISU", "close_at_finish" );
}
void VisuGUI::preferencesChanged( const QString&, const QString& )
connect( myBuildEntitiesCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) );
myBuildFieldsCheckBox = new QCheckBox( tr( "BUILD_FIELDS" ), myProgressBox );
- myBuildFieldsCheckBox->setChecked( true );
+ myBuildFieldsCheckBox->setChecked( aResourceMgr->booleanValue( "VISU", "build_fields", true ) );
myBuildFieldsButton = new QPushButton( myProgressBox );
myBuildFieldsButton->setEnabled( false );
myBuildFieldsButton->setFixedSize( 30, 30 );
connect( myBuildFieldsCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) );
myBuildMinMaxCheckBox = new QCheckBox( tr( "BUILD_MINMAX" ), myProgressBox );
- myBuildMinMaxCheckBox->setChecked( true );
+ myBuildMinMaxCheckBox->setChecked( aResourceMgr->booleanValue( "VISU", "build_min_max", true ) );
myBuildMinMaxButton = new QPushButton( myProgressBox );
myBuildMinMaxButton->setEnabled( false );
myBuildMinMaxButton->setFixedSize( 30, 30 );
connect( myBuildMinMaxCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) );
myBuildGroupsCheckBox = new QCheckBox( tr( "BUILD_GROUPS" ), myProgressBox );
- myBuildGroupsCheckBox->setChecked( true );
+ myBuildGroupsCheckBox->setChecked( aResourceMgr->booleanValue( "VISU", "build_groups", true ) );
myBuildGroupsButton = new QPushButton( myProgressBox );
myBuildGroupsButton->setEnabled( false );
myBuildGroupsButton->setFixedSize( 30, 30 );
myRBGlobal->setChecked( !activeLocal );
myRBGlobal->setEnabled( thePrs->IsGlobalRangeDefined() );
+ if( !thePrs->IsGlobalRangeDefined() )
+ myRBLocal->setChecked( true );
myCBDisplayed->setEnabled( activeLocal );
myCBDisplayed->setChecked( thePrs->GetIsDispGlobalScalarBar() );
VisuGUI::createPreferences();
createGaussPointsPreferences();
- createScalarBarPreferences();
createInsideCursorPreferences();
createOutsideCursorPreferences();
createPickingPreferences();
createSpaceMousePreferences();
+ createRecorderPreferences();
}
int primitiveGr = addPreference( tr( "VISU_GAUSS_PREF_PRIMITIVE_GROUP_TTL" ), gaussTab );
setPreferenceProperty( primitiveGr, "columns", 1 );
+ int primitiveTypePref = addPreference( tr( "VISU_GAUSS_PREF_PRIMITIVE_TYPE" ), primitiveGr,
+ LightApp_Preferences::Selector, "VISU", "point_sprite_primitive_type" );
+
+ QStringList values;
+ values.append( tr( "VISU_GAUSS_PREF_POINTSPRITE" ) );
+ values.append( tr( "VISU_GAUSS_PREF_OPENGLPOINT" ) );
+ values.append( tr( "VISU_GAUSS_PREF_GEOMSPHERE" ) );
+ QValueList<QVariant> indices;
+ indices.append( 0 );
+ indices.append( 1 );
+ indices.append( 2 );
+ setPreferenceProperty( primitiveTypePref, "strings", values );
+ setPreferenceProperty( primitiveTypePref, "indexes", indices );
+
int clampPref = addPreference( tr( "VISU_GAUSS_PREF_CLAMP" ), primitiveGr,
LightApp_Preferences::IntSpin, "VISU", "point_sprite_clamp" );
setPreferenceProperty( clampPref, "min", 1 );
setPreferenceProperty( alphaThresholdPref, "max", 1.0 );
setPreferenceProperty( alphaThresholdPref, "step", 0.1 );
+ int resolutionPref = addPreference( tr( "VISU_GAUSS_PREF_RESOLUTION" ), primitiveGr,
+ LightApp_Preferences::IntSpin, "VISU", "geom_sphere_resolution" );
+ setPreferenceProperty( resolutionPref, "min", 3 );
+ setPreferenceProperty( resolutionPref, "max", 100 );
+
+ int faceLimitPref = addPreference( tr( "VISU_GAUSS_PREF_FACE_LIMIT" ), primitiveGr,
+ LightApp_Preferences::IntSpin, "VISU", "geom_sphere_face_limit" );
+ setPreferenceProperty( faceLimitPref, "min", 10 );
+ setPreferenceProperty( faceLimitPref, "max", 1000000 );
+
int sizeGr = addPreference( tr( "VISU_GAUSS_PREF_SIZE_GROUP_TTL" ), gaussTab );
setPreferenceProperty( sizeGr, "columns", 2 );
addPreference( tr( "VISU_GAUSS_PREF_COLOR" ), geomGr,
LightApp_Preferences::Color, "VISU", "point_sprite_color" );
-}
-
-//---------------------------------------------------------------
-void
-VisuGUI_Module
-::createScalarBarPreferences()
-{
- int scalarBarTab = addPreference( tr( "VISU_GAUSS_SCALAR_BAR_PREF_TAB_TTL" ) );
- int scalarBarGr = addPreference( tr( "VISU_GAUSS_SCALAR_BAR_PREF_GROUP_TTL" ), scalarBarTab );
+ // ScalarBar Preferences
+ int scalarBarGr = addPreference( tr( "VISU_GAUSS_SCALAR_BAR_PREF_GROUP_TTL" ), gaussTab );
setPreferenceProperty( scalarBarGr, "columns", 1 );
int activeBarPref = addPreference( tr( "VISU_GAUSS_PREF_ACTIVE_BAR" ), scalarBarGr,
LightApp_Preferences::Selector, "VISU", "scalar_bar_active_local" );
- QStringList values;
+ values.clear();
values.append( tr( "VISU_GAUSS_PREF_LOCAL" ) );
values.append( tr( "VISU_GAUSS_PREF_GLOBAL" ) );
- QValueList<QVariant> indices;
+ indices.clear();
indices.append( 0 );
indices.append( 1 );
setPreferenceProperty( activeBarPref, "strings", values );
setPreferenceProperty( spacingPref, "min", 0.01 );
setPreferenceProperty( spacingPref, "max", 1.0 );
setPreferenceProperty( spacingPref, "step", 0.01 );
-
}
setPreferenceProperty( alphaThresholdPref, "max", 1.0 );
setPreferenceProperty( alphaThresholdPref, "step", 0.1 );
+ int resolutionPref = addPreference( tr( "VISU_GAUSS_PREF_RESOLUTION" ), primitiveGr,
+ LightApp_Preferences::IntSpin, "VISU", "inside_geom_sphere_resolution" );
+ setPreferenceProperty( resolutionPref, "min", 3 );
+ setPreferenceProperty( resolutionPref, "max", 100 );
+
+ int faceLimitPref = addPreference( tr( "VISU_GAUSS_PREF_FACE_LIMIT" ), primitiveGr,
+ LightApp_Preferences::IntSpin, "VISU", "inside_geom_sphere_face_limit" );
+ setPreferenceProperty( faceLimitPref, "min", 10 );
+ setPreferenceProperty( faceLimitPref, "max", 1000000 );
+
int sizeGr = addPreference( tr( "VISU_GAUSS_PREF_SIZE_GROUP_TTL" ), insideCursorTab );
setPreferenceProperty( sizeGr, "columns", 2 );
setPreferenceProperty( alphaThresholdPref, "max", 1.0 );
setPreferenceProperty( alphaThresholdPref, "step", 0.1 );
+ int resolutionPref = addPreference( tr( "VISU_GAUSS_PREF_RESOLUTION" ), primitiveGr,
+ LightApp_Preferences::IntSpin, "VISU", "outside_geom_sphere_resolution" );
+ setPreferenceProperty( resolutionPref, "min", 3 );
+ setPreferenceProperty( resolutionPref, "max", 100 );
+
+ int faceLimitPref = addPreference( tr( "VISU_GAUSS_PREF_FACE_LIMIT" ), primitiveGr,
+ LightApp_Preferences::IntSpin, "VISU", "outside_geom_sphere_face_limit" );
+ setPreferenceProperty( faceLimitPref, "min", 10 );
+ setPreferenceProperty( faceLimitPref, "max", 1000000 );
+
int sizeGr = addPreference( tr( "VISU_GAUSS_PREF_SIZE_GROUP_TTL" ), outsideCursorTab );
int sizePref = addPreference( tr( "VISU_GAUSS_PREF_SIZE" ), sizeGr,
setPreferenceProperty( transparencyPref, "step", 10 );
int positionPref = addPreference( tr( "VISU_PICKING_PREF_POSITION" ), infoWindowGr,
- LightApp_Preferences::Selector, "VISU", "picking_position" );
+ LightApp_Preferences::Selector, "VISU", "picking_position" );
QStringList values;
values.append( tr( "VISU_PICKING_PREF_BELOW_POINT" ) );
values.append( tr( "VISU_PICKING_PREF_TOP_LEFT_CORNER" ) );
}
+//---------------------------------------------------------------
+void
+VisuGUI_Module
+::createRecorderPreferences()
+{
+ int recorderTab = addPreference( tr( "VISU_RECORDER_PREF_TAB_TTL" ) );
+
+ int recorderGr = addPreference( tr( "VISU_RECORDER_PREF_GROUP_TTL" ), recorderTab );
+ setPreferenceProperty( recorderGr, "columns", 1 );
+
+ int modePref = addPreference( tr( "VISU_RECORDER_PREF_RECORDING_MODE" ), recorderGr,
+ LightApp_Preferences::Selector, "VISU", "recorder_mode" );
+ QStringList values;
+ values.append( tr( "VISU_RECORDER_PREF_SKIPPED_FRAMES" ) );
+ values.append( tr( "VISU_RECORDER_PREF_ALL_DISLPAYED_FRAMES" ) );
+ QValueList<QVariant> indices;
+ indices.append( 0 );
+ indices.append( 1 );
+ setPreferenceProperty( modePref, "strings", values );
+ setPreferenceProperty( modePref, "indexes", indices );
+
+ int fpsPref = addPreference( tr( "VISU_RECORDER_PREF_FPS" ), recorderGr,
+ LightApp_Preferences::DblSpin, "VISU", "recorder_fps" );
+ setPreferenceProperty( fpsPref, "min", 0.1 );
+ setPreferenceProperty( fpsPref, "max", 100 );
+
+ int qualityPref = addPreference( tr( "VISU_RECORDER_PREF_QUALITY" ), recorderGr,
+ LightApp_Preferences::IntSpin, "VISU", "recorder_quality" );
+ setPreferenceProperty( qualityPref, "min", 1 );
+ setPreferenceProperty( qualityPref, "max", 100 );
+
+ addPreference( tr( "VISU_RECORDER_PREF_PROGRESSIVE" ), recorderGr,
+ LightApp_Preferences::Bool, "VISU", "recorder_progressive" );
+}
+
+
//---------------------------------------------------------------
void
VisuGUI_Module
void
createGaussPointsPreferences();
- //! Create preferences for Gauss Points Scalar Bars.
- virtual
- void
- createScalarBarPreferences();
-
//! Create preferences for Outside Cursor Gauss Points presentations.
virtual
void
void
createSpaceMousePreferences();
+ //! Create preferences for Recorder.
+ virtual
+ void
+ createRecorderPreferences();
+
protected slots:
SUIT_ViewManager*
onCreateViewManager();