1 # -*- coding: utf-8 -*-
4 HYDRO_SAMPLES = os.path.join( os.environ["HYDRO_ROOT_DIR"], "bin/salome/test/HYDRO")
12 from PyQt5.QtCore import *
13 from PyQt5.QtGui import *
15 hydro_doc = HYDROData_Document.Document()
17 hydro_doc.SetLocalCS( 430000, 6.35e+06 )
19 Cloud_02 = hydro_doc.CreateObject( KIND_BATHYMETRY )
20 Cloud_02.SetName( "Cloud_02" )
22 Cloud_02.SetAltitudesInverted( 0 );
23 if not(Cloud_02.ImportFromFile( os.path.join(HYDRO_SAMPLES, "Cloud_02.xyz" ))):
24 raise ValueError('problem while loading bathymetry')
28 if salome.sg.hasDesktop():
29 salome.sg.updateObjBrowser()