Salome HOME
Fix examples of the tui documentation: MED files are in $DATA_DIR/MedFiles and tables...
authorgdd <gdd>
Wed, 23 Feb 2011 19:18:06 +0000 (19:18 +0000)
committergdd <gdd>
Wed, 23 Feb 2011 19:18:06 +0000 (19:18 +0000)
20 files changed:
doc/salome/gui/VISU/input/tui_animation.doc
doc/salome/gui/VISU/input/tui_cut_lines.doc
doc/salome/gui/VISU/input/tui_cut_planes.doc
doc/salome/gui/VISU/input/tui_cut_segment.doc
doc/salome/gui/VISU/input/tui_def_shape.doc
doc/salome/gui/VISU/input/tui_def_shape_and_scalar_map.doc
doc/salome/gui/VISU/input/tui_evolution.doc
doc/salome/gui/VISU/input/tui_gauss_points.doc
doc/salome/gui/VISU/input/tui_import_export.doc
doc/salome/gui/VISU/input/tui_iso_surf.doc
doc/salome/gui/VISU/input/tui_plot_3d.doc
doc/salome/gui/VISU/input/tui_point_marker.doc
doc/salome/gui/VISU/input/tui_scalar_map.doc
doc/salome/gui/VISU/input/tui_stream_lines.doc
doc/salome/gui/VISU/input/tui_submesh.doc
doc/salome/gui/VISU/input/tui_table_3d.doc
doc/salome/gui/VISU/input/tui_table_curves.doc
doc/salome/gui/VISU/input/tui_table_import.doc
doc/salome/gui/VISU/input/tui_vectors.doc
doc/salome/gui/VISU/input/tui_view_3d.doc

index 375881198a717cecb116eaa980829f57ee7ccca7..eed928c6eebd305743d35f801325bfec893e0ca7 100644 (file)
@@ -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
index fc57a3a09cf0993b60e5ba2a429708c674764d52..a52d48ff78947de0ec2dab6712f6c34d91de0dbd 100644 (file)
@@ -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
index 9fcbff27e70e639e0eab39d60b4d872eb60cd811..22eeebdd909ccf6f397e6789034aba9f26647f69 100644 (file)
@@ -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
index 31d950ae846546c167830a390e606e16880d1c0a..4eaecfca1fc0ef8d96cff1fb385c731ae6bc667b 100644 (file)
@@ -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
index b2b767f68bde2d91533d170240e4c2e6958ca52b..d8eb682bc74a7eaa24660a76a754cd46a4f96ac9 100644 (file)
@@ -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
index 7fc4f2836db2e8fd5bf6b26f908823abca8388ae..585628947f5442b9a8ca5175d1094055d5a48f95 100644 (file)
@@ -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
index a0a60dae5b20c05f02a00cb0a87b2d26fcd946e6..ef6176112cb885a653d0cf6a9b0c4a7ae67ff050 100644 (file)
@@ -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:
index a40e29aedc35fbd252aa4899344453425d330322..73c9eb6f7224c4096f323acb2dc2354704f4f2de 100644 (file)
@@ -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
index 4c17ad13559cfa9b20fc751f59d800d38bc27e95..6048f9275e543d49dda198398a55d13a4867f1f4 100644 (file)
@@ -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
index 01170c4150e4be2fe8da4e9ae6cb7909efce2044..320fe87b1cfdb9ce441bd64900d75f13c8e5ba42 100644 (file)
@@ -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
index 6f0556d4dc236ea83e2e4cb02078ef76ce5dad0a..324274439abd41536d1c485c9cad6cb21c30fcb3 100644 (file)
@@ -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
index e2680a0b4bd67bd3e52ac7c4beba7d098d19f271..a265b3867681f830634f133f308b404fde1b4fb1 100644 (file)
@@ -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"
index 5158702fe101140cf0c378563b74804628c7d0c2..85a5c3e3d7b7a31d6ced335e82e828af892d0ffd 100644 (file)
@@ -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
index e223cb417abb04afcaa9853aac065703dccf85e6..b7c0acdbac43ad603fed74bd73207d38b88ed3a2 100644 (file)
@@ -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
index 2c599bd709c519aa6610717825500955d14a5884..b5550cd8d6d6c93db2e5ba7b9beab25cf7193711 100644 (file)
@@ -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
index 29f5f3a0eb6d91f55f6fa8a7efcc993f5f96dac4..794fe9a181802c3da1bc201309c7d5f428592a7f 100644 (file)
@@ -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
index 072833d0956cad663537df7322eba0945906050c..6141a0b16a2240367111593b5df82dc370067821 100644 (file)
@@ -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
index 095c4c37be465615fbc161c8e198bd675e264a47..ad9944f81f99fa7508a217700ee9158d5de69642 100644 (file)
@@ -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)
index 6792e8121fc866253d58ff4b8bfea26011185ce5..7c1b56fcef3a780b2301f97b8c1ea33dac8687a3 100644 (file)
@@ -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
index 3f1f41c2ae1395a17c6dc1afe5a3262fc24cdc12..09dc130b78807bbf045fa66da59745dd07abf82c 100644 (file)
@@ -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