X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARDGUI%2FMonCreateZone.cxx;h=a20024c3c150a68c9a6c27f2c3282e7fde0132b6;hb=refs%2Ftags%2FV9_13_0b1;hp=9eaa02e8588f7972955610c80b8f32416c8b6acb;hpb=c47edcf3cf781f831fc5e35cb1fcd80ca5d3da11;p=modules%2Fhomard.git diff --git a/src/HOMARDGUI/MonCreateZone.cxx b/src/HOMARDGUI/MonCreateZone.cxx index 9eaa02e8..a20024c3 100644 --- a/src/HOMARDGUI/MonCreateZone.cxx +++ b/src/HOMARDGUI/MonCreateZone.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2011-2016 CEA/DEN, EDF R&D +// Copyright (C) 2011-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -469,6 +469,9 @@ bool MonCreateZone::PushOnApply() return false; } } +// +// Création ou mise à jour de la zone +// bool bOK = CreateOrUpdateZone() ; if ( bOK ) { HOMARD_UTILS::updateObjBrowser() ; } @@ -477,11 +480,12 @@ bool MonCreateZone::PushOnApply() } // --------------------------------------------------- -bool MonCreateZone:: CreateOrUpdateZone() +bool MonCreateZone::CreateOrUpdateZone() //---------------------------------------------------- // Creation de la zone { MESSAGE("Debut de CreateOrUpdateZone avec _Type ="<<_Type<<", _Name ="<<_Name.toStdString().c_str()<<" et LEName ="<text().trimmed().toStdString().c_str()); +// if (_Name != LEName->text().trimmed()) { _Name = LEName->text().trimmed() ; @@ -538,22 +542,22 @@ bool MonCreateZone:: CreateOrUpdateZone() { aZone = myHomardGen->CreateZoneDiskWithHole(CORBA::string_dup(_Name.toStdString().c_str()), \ _ZoneXcentre, _ZoneYcentre, _ZoneRayon, _ZoneRayonInt, _Orient ); break; - } + } case 62 : // il s agit d un disque avec trou, dans le plan (Y,Z) { aZone = myHomardGen->CreateZoneDiskWithHole(CORBA::string_dup(_Name.toStdString().c_str()), \ _ZoneYcentre, _ZoneZcentre, _ZoneRayon, _ZoneRayonInt, _Orient ); break; - } + } case 63 : // il s agit d un disque avec trou, dans le plan (Z,X) { aZone = myHomardGen->CreateZoneDiskWithHole(CORBA::string_dup(_Name.toStdString().c_str()), \ _ZoneZcentre, _ZoneXcentre, _ZoneRayon, _ZoneRayonInt, _Orient ); break; - } + } case 7 : // il s agit d un tuyau { aZone = myHomardGen->CreateZonePipe(CORBA::string_dup(_Name.toStdString().c_str()), \ _ZoneXcentre, _ZoneYcentre, _ZoneZcentre, _ZoneXaxis, _ZoneYaxis, _ZoneZaxis, _ZoneRayon, _ZoneHaut, _ZoneRayonInt ); break; - } + } } } catch( SALOME::SALOME_Exception& S_ex ) @@ -619,7 +623,7 @@ void MonCreateZone::SetNewName() void MonCreateZone::SetBox() // ------------------------------------------------------------------------ { - MESSAGE("Debut de SetBox") + MESSAGE("Debut de SetBox"); gBBox->setVisible(1) ; gBSphere->setVisible(0) ; gBCylindre->setVisible(0) ; @@ -637,13 +641,13 @@ void MonCreateZone::SetBox() if ( _Zincr > 0 ) { SpinBox_Zmini->setValue(_Zcentre-10*_Zincr) ; SpinBox_Zmaxi->setValue(_Zcentre+10*_Zincr) ; } else { _Type=11 ; } - MESSAGE("Fin de SetBox") + MESSAGE("Fin de SetBox"); } // ------------------------------------------------------------------------ void MonCreateZone::SetSphere() // ------------------------------------------------------------------------ { - MESSAGE("Debut de SetSphere") + MESSAGE("Debut de SetSphere"); gBBox->setVisible(0) ; gBSphere->setVisible(1) ; gBCylindre->setVisible(0) ; @@ -654,13 +658,13 @@ void MonCreateZone::SetSphere() SpinBox_Ycentre->setValue(_Ycentre) ; SpinBox_Zcentre->setValue(_Zcentre) ; SpinBox_Rayon->setValue(_Rayon) ; - MESSAGE("Fin de SetSphere") + MESSAGE("Fin de SetSphere"); } // ------------------------------------------------------------------------ void MonCreateZone::SetCylinder() // ------------------------------------------------------------------------ { - MESSAGE("Debut de SetCylinder") + MESSAGE("Debut de SetCylinder"); gBBox->setVisible(0) ; gBSphere->setVisible(0) ; gBCylindre->setVisible(1) ; @@ -678,13 +682,13 @@ void MonCreateZone::SetCylinder() else { _Type=31 ; } SpinBox_Radius->setValue(_Rayon) ; SpinBox_Haut->setValue(_Haut) ; - MESSAGE("Fin de SetCylinder") + MESSAGE("Fin de SetCylinder"); } // ------------------------------------------------------------------------ void MonCreateZone::SetPipe() // ------------------------------------------------------------------------ { - MESSAGE("Debut de SetPipe") + MESSAGE("Debut de SetPipe"); gBBox->setVisible(0) ; gBSphere->setVisible(0) ; gBCylindre->setVisible(0) ; @@ -703,7 +707,7 @@ void MonCreateZone::SetPipe() SpinBox_Radius_int->setValue(_RayonInt) ; SpinBox_Radius_ext->setValue(_Rayon) ; SpinBox_Haut_p->setValue(_Haut) ; - MESSAGE("Fin de SetPipe") + MESSAGE("Fin de SetPipe"); }