From: gdd Date: Wed, 23 Feb 2011 19:18:06 +0000 (+0000) Subject: Fix examples of the tui documentation: MED files are in $DATA_DIR/MedFiles and tables... X-Git-Tag: V6_main_20110301~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=22487c19550bcf2b362df31d3855eb10768250e5;p=modules%2Fvisu.git Fix examples of the tui documentation: MED files are in $DATA_DIR/MedFiles and tables in $DATA_DIR/Tables --- diff --git a/doc/salome/gui/VISU/input/tui_animation.doc b/doc/salome/gui/VISU/input/tui_animation.doc index 37588119..eed928c6 100644 --- a/doc/salome/gui/VISU/input/tui_animation.doc +++ b/doc/salome/gui/VISU/input/tui_animation.doc @@ -17,7 +17,7 @@ from visu_gui import * datadir = os.getenv("DATA_DIR") # Import a MED file -medFile = datadir + "/TimeStamps.med" +medFile = os.path.join(datadir,"MedFiles","TimeStamps.med") myResult = myVisu.ImportFile(medFile) # Create a 3D view @@ -98,7 +98,7 @@ from visu_gui import * datadir = os.getenv("DATA_DIR") # Import a MED file -medFile = datadir + "/TimeStamps.med" +medFile = os.path.join(datadir,"MedFiles","TimeStamps.med") myResult = myVisu.ImportFile(medFile) # Create a 3D view diff --git a/doc/salome/gui/VISU/input/tui_cut_lines.doc b/doc/salome/gui/VISU/input/tui_cut_lines.doc index fc57a3a0..a52d48ff 100644 --- a/doc/salome/gui/VISU/input/tui_cut_lines.doc +++ b/doc/salome/gui/VISU/input/tui_cut_lines.doc @@ -19,7 +19,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import a MED file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) # Create cut lines for the first timestamp of 'VITESSE' field diff --git a/doc/salome/gui/VISU/input/tui_cut_planes.doc b/doc/salome/gui/VISU/input/tui_cut_planes.doc index 9fcbff27..22eeebdd 100644 --- a/doc/salome/gui/VISU/input/tui_cut_planes.doc +++ b/doc/salome/gui/VISU/input/tui_cut_planes.doc @@ -19,7 +19,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import a MED file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) # Create cut planes for the first timestamp of 'VITESSE' field diff --git a/doc/salome/gui/VISU/input/tui_cut_segment.doc b/doc/salome/gui/VISU/input/tui_cut_segment.doc index 31d950ae..4eaecfca 100644 --- a/doc/salome/gui/VISU/input/tui_cut_segment.doc +++ b/doc/salome/gui/VISU/input/tui_cut_segment.doc @@ -19,7 +19,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import a MED file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) # Create a cut segment for the first timestamp of 'VITESSE' field diff --git a/doc/salome/gui/VISU/input/tui_def_shape.doc b/doc/salome/gui/VISU/input/tui_def_shape.doc index b2b767f6..d8eb682b 100644 --- a/doc/salome/gui/VISU/input/tui_def_shape.doc +++ b/doc/salome/gui/VISU/input/tui_def_shape.doc @@ -19,7 +19,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import a MED file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) # Create a deformed shape for the first timestamp of 'VITESSE' field diff --git a/doc/salome/gui/VISU/input/tui_def_shape_and_scalar_map.doc b/doc/salome/gui/VISU/input/tui_def_shape_and_scalar_map.doc index 7fc4f283..58562894 100644 --- a/doc/salome/gui/VISU/input/tui_def_shape_and_scalar_map.doc +++ b/doc/salome/gui/VISU/input/tui_def_shape_and_scalar_map.doc @@ -19,7 +19,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import a MED file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) # Create a deformed shape and a scalar map for the first timestamp of 'VITESSE' field diff --git a/doc/salome/gui/VISU/input/tui_evolution.doc b/doc/salome/gui/VISU/input/tui_evolution.doc index a0a60dae..ef617611 100644 --- a/doc/salome/gui/VISU/input/tui_evolution.doc +++ b/doc/salome/gui/VISU/input/tui_evolution.doc @@ -16,7 +16,7 @@ from visu_gui import * datadir = os.getenv("DATA_DIR") # Import a MED file -medFile = datadir + "/TimeStamps.med" +medFile = os.path.join(datadir,"MedFiles","TimeStamps.med") myResult = myVisu.ImportFile(medFile) # Create a 2D viewer for the evolution graph: diff --git a/doc/salome/gui/VISU/input/tui_gauss_points.doc b/doc/salome/gui/VISU/input/tui_gauss_points.doc index a40e29ae..73c9eb6f 100644 --- a/doc/salome/gui/VISU/input/tui_gauss_points.doc +++ b/doc/salome/gui/VISU/input/tui_gauss_points.doc @@ -21,7 +21,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import the file -medFile = datadir + "/pointe.med" +medFile = os.path.join(datadir,"MedFiles","pointe.med") myResult = myVisu.ImportFile(medFile) # Create gauss points for the first timestamp of 'fieldcelldoublevector' field diff --git a/doc/salome/gui/VISU/input/tui_import_export.doc b/doc/salome/gui/VISU/input/tui_import_export.doc index 4c17ad13..6048f927 100644 --- a/doc/salome/gui/VISU/input/tui_import_export.doc +++ b/doc/salome/gui/VISU/input/tui_import_export.doc @@ -18,7 +18,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # The path to the file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") # Import the file myResult = myVisu.ImportFile(medFile) @@ -43,13 +43,13 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # The path to the file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") # Import the file myResult = myVisu.ImportFile(medFile) # Export the file -newFileName = datadir + "/fra_copy.med" +newFileName = os.path.join(datadir,"MedFiles","fra_copy.med") myResult.ExportMED(newFileName) # Update the object browser diff --git a/doc/salome/gui/VISU/input/tui_iso_surf.doc b/doc/salome/gui/VISU/input/tui_iso_surf.doc index 01170c41..320fe87b 100644 --- a/doc/salome/gui/VISU/input/tui_iso_surf.doc +++ b/doc/salome/gui/VISU/input/tui_iso_surf.doc @@ -19,7 +19,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import a MED file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) # Create iso surfaces for the first timestamp of 'VITESSE' field diff --git a/doc/salome/gui/VISU/input/tui_plot_3d.doc b/doc/salome/gui/VISU/input/tui_plot_3d.doc index 6f0556d4..32427443 100644 --- a/doc/salome/gui/VISU/input/tui_plot_3d.doc +++ b/doc/salome/gui/VISU/input/tui_plot_3d.doc @@ -19,7 +19,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import a MED file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) # Create a 3d plot for the first timestamp of 'VITESSE' field diff --git a/doc/salome/gui/VISU/input/tui_point_marker.doc b/doc/salome/gui/VISU/input/tui_point_marker.doc index e2680a0b..a265b386 100644 --- a/doc/salome/gui/VISU/input/tui_point_marker.doc +++ b/doc/salome/gui/VISU/input/tui_point_marker.doc @@ -20,7 +20,7 @@ myView.SetTitle("The viewer for Point Marker Example") print "myViewManager.Create3DView()" medFile = "fra.med" -medFile = data_dir + '/MedFiles/' + medFile +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) aMeshName ="LE VOLUME" diff --git a/doc/salome/gui/VISU/input/tui_scalar_map.doc b/doc/salome/gui/VISU/input/tui_scalar_map.doc index 5158702f..85a5c3e3 100644 --- a/doc/salome/gui/VISU/input/tui_scalar_map.doc +++ b/doc/salome/gui/VISU/input/tui_scalar_map.doc @@ -19,7 +19,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import a MED file -medFile = datadir + "/pointe.med" +medFile = os.path.join(datadir,"MedFiles","pointe.med") myResult = myVisu.ImportFile(medFile) # Create a scalar map for the first timestamp of 'fieldcelldoublevector' field diff --git a/doc/salome/gui/VISU/input/tui_stream_lines.doc b/doc/salome/gui/VISU/input/tui_stream_lines.doc index e223cb41..b7c0acdb 100644 --- a/doc/salome/gui/VISU/input/tui_stream_lines.doc +++ b/doc/salome/gui/VISU/input/tui_stream_lines.doc @@ -19,7 +19,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import a MED file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) # Create stream lines for the first timestamp of 'VITESSE' field diff --git a/doc/salome/gui/VISU/input/tui_submesh.doc b/doc/salome/gui/VISU/input/tui_submesh.doc index 2c599bd7..b5550cd8 100644 --- a/doc/salome/gui/VISU/input/tui_submesh.doc +++ b/doc/salome/gui/VISU/input/tui_submesh.doc @@ -21,7 +21,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import a MED file -medFile = datadir + "/pointe.med" +medFile = os.path.join(datadir,"MedFiles","pointe.med") myResult = myVisu.ImportFile(medFile) # Create submesh presentations diff --git a/doc/salome/gui/VISU/input/tui_table_3d.doc b/doc/salome/gui/VISU/input/tui_table_3d.doc index 29f5f3a0..794fe9a1 100644 --- a/doc/salome/gui/VISU/input/tui_table_3d.doc +++ b/doc/salome/gui/VISU/input/tui_table_3d.doc @@ -18,7 +18,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import tables from file -tableFile = datadir + '/table_test.xls' +tableFile = os.path.join(datadir,"Tables","table_test.xls") myTablesSO = myVisu.ImportTables(tableFile, False) # Create a table presentation diff --git a/doc/salome/gui/VISU/input/tui_table_curves.doc b/doc/salome/gui/VISU/input/tui_table_curves.doc index 072833d0..6141a0b1 100644 --- a/doc/salome/gui/VISU/input/tui_table_curves.doc +++ b/doc/salome/gui/VISU/input/tui_table_curves.doc @@ -20,7 +20,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import tables from file -tableFile = datadir + '/table_test.xls' +tableFile = os.path.join(datadir,"Tables","table_test.xls") myTablesSO = myVisu.ImportTables(tableFile, False) # Get the table diff --git a/doc/salome/gui/VISU/input/tui_table_import.doc b/doc/salome/gui/VISU/input/tui_table_import.doc index 095c4c37..ad9944f8 100644 --- a/doc/salome/gui/VISU/input/tui_table_import.doc +++ b/doc/salome/gui/VISU/input/tui_table_import.doc @@ -18,7 +18,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import tables from file -tableFile = datadir + '/tables_test.xls' +tableFile = os.path.join(datadir,"Tables","tables_test.xls") myTablesSO = myVisu.ImportTables(tableFile, False) # Print table names @@ -51,11 +51,11 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import tables from file -tableFile = datadir + '/tables_test.xls' +tableFile = os.path.join(datadir,"Tables","tables_test.xls") myTablesSO = myVisu.ImportTables(tableFile, False) # Export the first imported table to a new file -expTableFile = datadir + '/sinus_table.txt' +expTableFile = os.path.join(datadir,"Tables","sinus_table.txt") sinusTableSO = salome.myStudy.FindObject("sinus") myVisu.ExportTableToFile(sinusTableSO, expTableFile) diff --git a/doc/salome/gui/VISU/input/tui_vectors.doc b/doc/salome/gui/VISU/input/tui_vectors.doc index 6792e812..7c1b56fc 100644 --- a/doc/salome/gui/VISU/input/tui_vectors.doc +++ b/doc/salome/gui/VISU/input/tui_vectors.doc @@ -19,7 +19,7 @@ datadir = os.getenv("DATA_DIR") myVisu = visu_gui.myVisu # Import MED file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) # Create vectors for the first timestamp of 'VITESSE' field diff --git a/doc/salome/gui/VISU/input/tui_view_3d.doc b/doc/salome/gui/VISU/input/tui_view_3d.doc index 3f1f41c2..09dc130b 100644 --- a/doc/salome/gui/VISU/input/tui_view_3d.doc +++ b/doc/salome/gui/VISU/input/tui_view_3d.doc @@ -32,7 +32,7 @@ myViewManager.Destroy(myTempView) sleep(delay) # Import a MED file -medFile = datadir + "/fra.med" +medFile = os.path.join(datadir,"MedFiles","fra.med") myResult = myVisu.ImportFile(medFile) # Create a scalar map