From: Renaud Barate Date: Thu, 26 Nov 2009 16:52:23 +0000 (+0000) Subject: Changed structural elements visualization. X-Git-Tag: V5_1_3_beta1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1ab69430e1bca2f3c8046b11ab2c35dc2b9459e5;p=modules%2Feficas.git Changed structural elements visualization. --- diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index bd6df7e6..0c28ea99 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -22,13 +22,13 @@ import Editeur from InterfaceQT4 import qtEficas import salome -import visuDriver +#import visuDriver import SalomePyQt -from pal.studyedit import StudyEditor -monEditor=StudyEditor() - +from pal.studyedit import getStudyEditor +monEditor = getStudyEditor() +from pal.structelem import StructuralElementManager # couleur pour visualisation des geometries @@ -433,12 +433,16 @@ class MyEficas( qtEficas.Appli ): if not atLeastOneStudy: return logger.debug(10*'#'+":envoievisu: creating a visuDriver instance") - monDriver=visuDriver.visuDriver(studyManager.palStudy,liste_commandes) - - logger.debug(10*'#'+":envoievisu: analyse visu commandes using the visuDriver "+str(monDriver)) - monId = monDriver.analyse() - logger.debug(10*'#'+":envoievisu: display the structural elements using PALGUI") - PALGUI_API.displaySE(monId) + structElemManager = StructuralElementManager() + elem = structElemManager.createElement(liste_commandes) + elem.display() + salome.sg.updateObjBrowser(True) + #monDriver=visuDriver.visuDriver(studyManager.palStudy,liste_commandes) + + #logger.debug(10*'#'+":envoievisu: analyse visu commandes using the visuDriver "+str(monDriver)) + #monId = monDriver.analyse() + #logger.debug(10*'#'+":envoievisu: display the structural elements using PALGUI") + #PALGUI_API.displaySE(monId) except: traceback.print_exc() logger.debug(10*'#'+":pb dans envoievisu")