From 1ab69430e1bca2f3c8046b11ab2c35dc2b9459e5 Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Thu, 26 Nov 2009 16:52:23 +0000 Subject: [PATCH] Changed structural elements visualization. --- src/EFICASGUI/eficasSalome.py | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) 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") -- 2.39.2