]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Picking preferences
authorouv <ouv@opencascade.com>
Tue, 4 Oct 2005 13:49:14 +0000 (13:49 +0000)
committerouv <ouv@opencascade.com>
Tue, 4 Oct 2005 13:49:14 +0000 (13:49 +0000)
src/VISUGUI/VISUM_msg_en.po
src/VISUGUI/VisuGUI_Module.cxx
src/VISUGUI/VisuGUI_Module.h

index a21956dc34b527cb64c8b6f7839ce5414ca2b25e..89cca1ce5957c6bd6c4e4cbaa5aee3ac65ab7a60 100644 (file)
@@ -91,6 +91,39 @@ msgstr "Outside Cursor Gauss Points"
 msgid "VisuGUI_Module::VISU_GAUSS_PREF_COLOR_GROUP_TTL"
 msgstr "Color"
 
+msgid "VisuGUI_Module::VISU_PICKING_PREF_TAB_TTL"
+msgstr "Picking"
+
+msgid "VisuGUI_Module::VISU_PICKING_PREF_CURSOR_GROUP_TTL"
+msgstr "Cursor"
+
+msgid "VisuGUI_Module::VISU_PICKING_PREF_PYRAMID_HEIGHT"
+msgstr "Height of the pyramids"
+
+msgid "VisuGUI_Module::VISU_PICKING_PREF_INFO_WINDOW_GROUP_TTL"
+msgstr "Information window"
+
+msgid "VisuGUI_Module::VISU_PICKING_PREF_TRANSPARENCY"
+msgstr "Transparency"
+
+msgid "VisuGUI_Module::VISU_GAUSS_PREF_POSITION"
+msgstr "Position"
+
+msgid "VisuGUI_Module::VISU_GAUSS_PREF_BELOW_POINT"
+msgstr "Centered below the point"
+
+msgid "VisuGUI_Module::VISU_GAUSS_PREF_TOP_LEFT_CORNER"
+msgstr "Top-left corner of the 3D view"
+
+msgid "VisuGUI_Module::VISU_PICKING_PREF_CAMERA_GROUP_TTL"
+msgstr "Movement of the camera"
+
+msgid "VisuGUI_Module::VISU_PICKING_PREF_ZOOM_FACTOR"
+msgstr "Zoom at first selected point (ratio)"
+
+msgid "VisuGUI_Module::VISU_PICKING_PREF_STEP_NUMBER"
+msgstr "Number of steps between two positions"
+
 msgid "VisuGUI_Module::VISU_MOUSE_PREF_TAB_TLT"
 msgstr "Spacemouse"
 
@@ -426,3 +459,37 @@ msgstr "Color : "
 
 msgid "VVTK_SegmentationCursorDlg::OUTSIDE_CURSOR_TAB"
 msgstr "Outside Cursor Gauss Points"
+
+msgid "VVTK_PickingDlg::PICKING_DLG_TITLE"
+msgstr "Picking"
+
+msgid "VVTK_PickingDlg::CURSOR_TITLE"
+msgstr "Cursor"
+
+msgid "VVTK_PickingDlg::PYRAMID_HEIGHT"
+msgstr "Height of the pyramids :"
+
+msgid "VVTK_PickingDlg::INFO_WINDOW_TITLE"
+msgstr "Information window"
+
+msgid "VVTK_PickingDlg::TRANSPARENCY"
+msgstr "Transparency :"
+
+msgid "VVTK_PickingDlg::POSITION"
+msgstr "Position :"
+
+msgid "VVTK_PickingDlg::BELOW_POINT"
+msgstr "Centered below the point"
+
+msgid "VVTK_PickingDlg::TOP_LEFT_CORNER"
+msgstr "Top-left corner of the 3D view"
+
+msgid "VVTK_PickingDlg::CAMERA_TITLE"
+msgstr "Movement of the camera"
+
+msgid "VVTK_PickingDlg::ZOOM_FACTOR"
+msgstr "Zoom at first selected point (ratio) :"
+
+msgid "VVTK_PickingDlg::STEP_NUMBER"
+msgstr "Number of steps between two positions :"
+
index f61e25ab71203bb222997e1f3827fbb9429b5452..96b52791105bd7597ee22f602bda8b2cfa73ca8c 100644 (file)
@@ -325,6 +325,7 @@ VisuGUI_Module
   createGaussPointsPreferences();
   createScalarBarPreferences();
   createOutsideCursorPreferences();
+  createPickingPreferences();
   createSpaceMousePreferences();
 }
 
@@ -476,6 +477,55 @@ VisuGUI_Module
 }
 
 
+//---------------------------------------------------------------
+void 
+VisuGUI_Module
+::createPickingPreferences()
+{
+  int pickingTab = addPreference( tr( "VISU_PICKING_PREF_TAB_TTL" ) );
+
+  int cursorGr = addPreference( tr( "VISU_PICKING_PREF_CURSOR_GROUP_TTL" ), pickingTab );
+  int pyramidHeightPref = addPreference( tr( "VISU_PICKING_PREF_PYRAMID_HEIGHT" ), cursorGr,
+                                        SalomeApp_Preferences::DblSpin, "VISU", "picking_pyramid_height" );
+  setPreferenceProperty( pyramidHeightPref, "min", 1 );
+  setPreferenceProperty( pyramidHeightPref, "max", 100 );
+
+  int infoWindowGr = addPreference( tr( "VISU_PICKING_PREF_INFO_WINDOW_GROUP_TTL" ), pickingTab );
+  setPreferenceProperty( infoWindowGr, "columns", 1 );
+
+  int transparencyPref = addPreference( tr( "VISU_PICKING_PREF_TRANSPARENCY" ), infoWindowGr,
+                                       SalomeApp_Preferences::DblSpin, "VISU", "picking_transparency" );
+  setPreferenceProperty( transparencyPref, "min", 0.0 );
+  setPreferenceProperty( transparencyPref, "max", 1.0 );
+  setPreferenceProperty( transparencyPref, "step", 0.1 );
+
+  int positionPref = addPreference( tr( "VISU_GAUSS_PREF_POSITION" ), infoWindowGr,
+                                    SalomeApp_Preferences::Selector, "VISU", "picking_position" );
+  QStringList values;
+  values.append( tr( "VISU_GAUSS_PREF_BELOW_POINT" ) );
+  values.append( tr( "VISU_GAUSS_PREF_TOP_LEFT_CORNER" ) );
+  QValueList<QVariant> indices;
+  indices.append( 0 );
+  indices.append( 1 );
+  setPreferenceProperty( positionPref, "strings", values );
+  setPreferenceProperty( positionPref, "indexes", indices );
+
+  int cameraGr = addPreference( tr( "VISU_PICKING_PREF_CAMERA_GROUP_TTL" ), pickingTab );
+  setPreferenceProperty( cameraGr, "columns", 1 );
+
+  int zoomFactorPref = addPreference( tr( "VISU_PICKING_PREF_ZOOM_FACTOR" ), cameraGr,
+                                     SalomeApp_Preferences::DblSpin, "VISU", "picking_zoom_factor" );
+  setPreferenceProperty( zoomFactorPref, "min", 0.1 );
+  setPreferenceProperty( zoomFactorPref, "max", 10.0 );
+  setPreferenceProperty( zoomFactorPref, "step", 0.1 );
+
+  int stepNumberPref = addPreference( tr( "VISU_PICKING_PREF_STEP_NUMBER" ), cameraGr,
+                                     SalomeApp_Preferences::IntSpin, "VISU", "picking_step_number" );
+  setPreferenceProperty( stepNumberPref, "min", 1 );
+  setPreferenceProperty( stepNumberPref, "max", 100 );
+}
+
+
 //---------------------------------------------------------------
 void 
 VisuGUI_Module
index 3ef649ff58962bd4471f9181e896c97f471687c4..e361045033eaef6556df10b04b0a21ee9c0adfbc 100644 (file)
@@ -98,6 +98,10 @@ protected:
   void 
   createOutsideCursorPreferences();
 
+  virtual 
+  void 
+  createPickingPreferences();
+
   virtual 
   void 
   createSpaceMousePreferences();