// ------------------------------------------------------------------------------------------------------------------------
MonCreateBoundaryAn::MonCreateBoundaryAn(MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen0,
+ ADAPT::ADAPT_Gen_var myAdaptGen0,
QString caseName) :
// ------------------------------------------------------------------------------------------------------------------------------
/* Constructs a MonCreateBoundaryAn
Chgt (false)
{
MESSAGE("Constructeur") ;
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0);
setupUi(this);
setModal(modal);
}
// --------------------------------------------------------------------------------------------------------------
MonCreateBoundaryAn::MonCreateBoundaryAn(MonCreateCase* parent,
- ADAPT::ADAPT_Gen_var myHomardGen0,
+ ADAPT::ADAPT_Gen_var myAdaptGen0,
QString caseName):
// --------------------------------------------------------------------------------------------------------------
//
QDialog(0), Ui_CreateBoundaryAn(),
- myHomardGen(myHomardGen0),
+ myAdaptGen(myAdaptGen0),
_parent(parent),
_Name (""),
_aCaseName(caseName),
//
if (_aCaseName == QString("")) { return; }
- ADAPT::HOMARD_Cas_var aCas = myHomardGen->GetCase(_aCaseName.toStdString().c_str());
+ ADAPT::HOMARD_Cas_var aCas = myAdaptGen->GetCase(_aCaseName.toStdString().c_str());
ADAPT::extrema_var MesExtremes = aCas->GetBoundingBox();
int num = MesExtremes->length() ;
ASSERT(num == 10);
switch (_Type)
{
case 1 : // il s agit d un cylindre
- { aBoundaryAn = myHomardGen->CreateBoundaryCylinder(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aBoundaryAn = myAdaptGen->CreateBoundaryCylinder(CORBA::string_dup(_Name.toStdString().c_str()), \
_BoundaryAnXcentre, _BoundaryAnYcentre, _BoundaryAnZcentre, _BoundaryAnXaxis, _BoundaryAnYaxis, _BoundaryAnZaxis, _BoundaryAnRayon );
break;
}
case 2 : // il s agit d une sphere
- { aBoundaryAn = myHomardGen->CreateBoundarySphere(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aBoundaryAn = myAdaptGen->CreateBoundarySphere(CORBA::string_dup(_Name.toStdString().c_str()), \
_BoundaryAnXcentre, _BoundaryAnYcentre, _BoundaryAnZcentre, _BoundaryAnRayon);
break;
}
case 3 : // il s agit d un cone defini par un axe et un angle
- { aBoundaryAn = myHomardGen->CreateBoundaryConeA(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aBoundaryAn = myAdaptGen->CreateBoundaryConeA(CORBA::string_dup(_Name.toStdString().c_str()), \
_BoundaryAnXaxisCone, _BoundaryAnYaxisCone, _BoundaryAnZaxisCone, _BoundaryAngle, \
_BoundaryAnXorigCone, _BoundaryAnYorigCone, _BoundaryAnYorigCone);
break;
}
case 4 : // il s agit d un cone defini par les 2 rayons
- { aBoundaryAn = myHomardGen->CreateBoundaryConeR(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aBoundaryAn = myAdaptGen->CreateBoundaryConeR(CORBA::string_dup(_Name.toStdString().c_str()), \
_BoundaryAnXcone1, _BoundaryAnYcone1, _BoundaryAnZcone1, _BoundaryAnRayon1, \
_BoundaryAnXcone2, _BoundaryAnYcone2, _BoundaryAnZcone2, _BoundaryAnRayon2);
break;
}
case 5 : // il s agit d un tore
- { aBoundaryAn = myHomardGen->CreateBoundaryTorus(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aBoundaryAn = myAdaptGen->CreateBoundaryTorus(CORBA::string_dup(_Name.toStdString().c_str()), \
_BoundaryAnToreXcentre, _BoundaryAnToreYcentre, _BoundaryAnToreZcentre, _BoundaryAnToreXaxe, _BoundaryAnToreYaxe, _BoundaryAnToreZaxe, _BoundaryAnToreRRev, _BoundaryAnToreRPri );
break;
}
void MonCreateBoundaryAn::PushOnHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_boundary.html"), QString("un-cylindre"), QString(LanguageShort.c_str()));
}
{
// Recherche d'un nom par defaut qui n'existe pas encore
- ADAPT::listeBoundarys_var MyObjects = myHomardGen->GetAllBoundarysName();
+ ADAPT::listeBoundarys_var MyObjects = myAdaptGen->GetAllBoundarysName();
int num = 0; QString aName="";
while (aName=="" )
{
public:
MonCreateBoundaryAn( MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName);
virtual ~MonCreateBoundaryAn();
protected :
MonCreateBoundaryAn( MonCreateCase* parent,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName);
MonCreateCase * _parent;
bool Chgt;
ADAPT::HOMARD_Boundary_var aBoundaryAn ;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
virtual void InitConnect();
virtual void InitValBoundaryAn();
// -------------------------------------------------------------------------------
MonCreateBoundaryCAO::MonCreateBoundaryCAO(MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen0,
+ ADAPT::ADAPT_Gen_var myAdaptGen0,
QString caseName, QString aName)
// ---------------------------------------------------------------------------------
/* Constructs a MonCreateBoundaryCAO */
:
QDialog(0), Ui_CreateBoundaryCAO(),
_parent(parent), _aName(aName),
- myHomardGen(ADAPT::ADAPT_Gen::_duplicate(myHomardGen0)),
+ myAdaptGen(ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0)),
_aCaseName(caseName)
{
MESSAGE("Constructeur") ;
try
{
_aName=aName;
- aBoundary=myHomardGen->CreateBoundaryCAO(CORBA::string_dup(_aName.toStdString().c_str()), aCAOFile.toStdString().c_str());
+ aBoundary=myAdaptGen->CreateBoundaryCAO(CORBA::string_dup(_aName.toStdString().c_str()), aCAOFile.toStdString().c_str());
_parent->AddBoundaryCAO(_aName);
aBoundary->SetCaseCreation(_aCaseName.toStdString().c_str());
}
void MonCreateBoundaryCAO::PushOnHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_boundary.html"), QString("CAO"), QString(LanguageShort.c_str()));
}
// ------------------------------------------------------------------------
// --------------------------------------------------
{
- ADAPT::listeBoundarys_var MyObjects = myHomardGen->GetAllBoundarysName();
+ ADAPT::listeBoundarys_var MyObjects = myAdaptGen->GetAllBoundarysName();
int num = 0; QString aName="";
while (aName == QString("") )
{
return;
}
- MonCreateListGroupCAO *aDlg = new MonCreateListGroupCAO(NULL, this, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen),
+ MonCreateListGroupCAO *aDlg = new MonCreateListGroupCAO(NULL, this, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen),
_aCaseName, _listeGroupesBoundary) ;
aDlg->show();
}
public:
MonCreateBoundaryCAO( MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString BoundaryName );
~MonCreateBoundaryCAO();
virtual void setGroups (QStringList listGroup);
ADAPT::HOMARD_Boundary_var aBoundary;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
QStringList _listeGroupesBoundary;
// -------------------------------------------------------------------------------
MonCreateBoundaryDi::MonCreateBoundaryDi(MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen0,
+ ADAPT::ADAPT_Gen_var myAdaptGen0,
QString caseName, QString aName)
// ---------------------------------------------------------------------------------
/* Constructs a MonCreateBoundaryDi */
:
QDialog(0), Ui_CreateBoundaryDi(),
_parent(parent), _aName(aName),
- myHomardGen(ADAPT::ADAPT_Gen::_duplicate(myHomardGen0)),
+ myAdaptGen(ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0)),
_aCaseName(caseName)
{
MESSAGE("Constructeur") ;
try
{
_aName=aName;
- aBoundary=myHomardGen->CreateBoundaryDi(CORBA::string_dup(_aName.toStdString().c_str()), aMeshName.toStdString().c_str(), aMeshFile.toStdString().c_str());
+ aBoundary=myAdaptGen->CreateBoundaryDi(CORBA::string_dup(_aName.toStdString().c_str()), aMeshName.toStdString().c_str(), aMeshFile.toStdString().c_str());
_parent->AddBoundaryDi(_aName);
aBoundary->SetCaseCreation(_aCaseName.toStdString().c_str());
}
void MonCreateBoundaryDi::PushOnHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_boundary.html"), QString("frontiere-discrete"), QString(LanguageShort.c_str()));
}
// ------------------------------------------------------------------------
// --------------------------------------------------
{
- ADAPT::listeBoundarys_var MyObjects = myHomardGen->GetAllBoundarysName();
+ ADAPT::listeBoundarys_var MyObjects = myAdaptGen->GetAllBoundarysName();
int num = 0; QString aName="";
while (aName == QString("") )
{
return;
}
- MonCreateListGroup *aDlg = new MonCreateListGroup(NULL, this, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen),
+ MonCreateListGroup *aDlg = new MonCreateListGroup(NULL, this, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen),
_aCaseName, _listeGroupesBoundary) ;
aDlg->show();
}
public:
MonCreateBoundaryDi( MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString BoundaryName );
~MonCreateBoundaryDi();
virtual void setGroups (QStringList listGroup);
ADAPT::HOMARD_Boundary_var aBoundary;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
QStringList _listeGroupesBoundary;
* Sets attributes to default values
*/
// -----------------------------------------------------------------------------------------
-MonCreateCase::MonCreateCase( bool modal, ADAPT::ADAPT_Gen_var myHomardGen0 )
+MonCreateCase::MonCreateCase( bool modal, ADAPT::ADAPT_Gen_var myAdaptGen0 )
:
Ui_CreateCase(),
_aCaseName(""),_aDirName(""),
_ExtType(0),
_Pyram(0)
{
- MESSAGE("Debut du constructeur de MonCreateCase");
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0);
+ INFOS("Debut du constructeur de MonCreateCase");
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0);
setupUi(this);
setModal(modal);
InitConnect();
//
adjustSize();
-// MESSAGE("Fin du constructeur de MonCreateCase");
+ INFOS("Fin du constructeur de MonCreateCase");
}
// ------------------------------------------------------------------------
MonCreateCase::~MonCreateCase()
void MonCreateCase::InitConnect()
// ------------------------------------------------------------------------
{
+ INFOS("Debut de InitConnect");
connect( LEName, SIGNAL(textChanged(QString)), this, SLOT(CaseNameChanged()));
connect( PushDir, SIGNAL(pressed()), this, SLOT(SetDirName()));
connect( PushFichier, SIGNAL(pressed()), this, SLOT(SetFileName()));
connect( buttonApply, SIGNAL(pressed()), this, SLOT(PushOnApply(0)));
connect( buttonCancel, SIGNAL(pressed()), this, SLOT(close()));
connect( buttonHelp, SIGNAL(pressed()), this, SLOT(PushOnHelp()));
+ INFOS("Fin de InitConnect");
}
// ------------------------------------------------------------------------
void MonCreateCase::InitBoundarys()
// ------------------------------------------------------------------------
// Initialisation des menus avec les frontieres deja enregistrees
{
- MESSAGE("InitBoundarys");
+ INFOS("InitBoundarys");
// Pour les frontieres analytiques : la colonne des groupes
ADAPT::ListGroupType_var _listeGroupesCas = aCase->GetGroups();
QTableWidgetItem *__colItem = new QTableWidgetItem();
// Pour les frontieres discretes : la liste a saisir
// Pour les frontieres analytiques : les colonnes de chaque frontiere
ADAPT::HOMARD_Boundary_var myBoundary ;
- ADAPT::listeBoundarys_var mesBoundarys = myHomardGen->GetAllBoundarysName();
-// MESSAGE("Nombre de frontieres enregistrees : "<<mesBoundarys->length());
+ ADAPT::listeBoundarys_var mesBoundarys = myAdaptGen->GetAllBoundarysName();
+// INFOS("Nombre de frontieres enregistrees : "<<mesBoundarys->length());
for (int i=0; i<mesBoundarys->length(); i++)
{
- myBoundary = myHomardGen->GetBoundary(mesBoundarys[i]);
+ myBoundary = myAdaptGen->GetBoundary(mesBoundarys[i]);
int type_obj = myBoundary->GetType() ;
if ( type_obj==-1 ) { CBBoundaryCAO->addItem(QString(mesBoundarys[i])); }
else if ( type_obj==0 ) { CBBoundaryDi->addItem(QString(mesBoundarys[i])); }
bool MonCreateCase::PushOnApply(int option)
// --------------------------------
{
- MESSAGE("PushOnApply");
+ INFOS("PushOnApply");
QString aCaseName=LEName->text().trimmed();
if ( aCaseName == "" )
{
}
if ( aDirName != _aDirName)
- { QString CaseNameDir = myHomardGen->VerifieDir( aDirName.toStdString().c_str()) ;
+ { QString CaseNameDir = myAdaptGen->VerifieDir( aDirName.toStdString().c_str()) ;
if ( ( CaseNameDir != "" ) & ( CaseNameDir != aCaseName ) )
{
QString texte ;
{
// Nom du groupe
NomGroup = QString(TWBoundary->item(row, 0)->text()) ;
-// MESSAGE("NomGroup "<<NomGroup.toStdString().c_str());
+// INFOS("NomGroup "<<NomGroup.toStdString().c_str());
for ( int nugr = 0 ; nugr<ListeGroup.size(); nugr++)
{
-// MESSAGE("....... "<<ListeGroup[nugr].toStdString().c_str());
+// INFOS("....... "<<ListeGroup[nugr].toStdString().c_str());
if ( NomGroup == ListeGroup[nugr] )
{
QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
_aCaseName = aCaseName;
try
{
- aCase = myHomardGen->CreateCase( \
+ aCase = myAdaptGen->CreateCase( \
CORBA::string_dup(_aCaseName.toStdString().c_str()), \
CORBA::string_dup(aMeshName.toStdString().c_str()), \
CORBA::string_dup(aFileName.toStdString().c_str()) );
void MonCreateCase::PushOnHelp()
//-------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_case.html"), QString(""), QString(LanguageShort.c_str()));
}
// ---------------------------------
void MonCreateCase::SetNewName()
// ------------------------------
{
- ADAPT::listeCases_var MyCases = myHomardGen->GetAllCasesName();
+ INFOS("Debut de SetNewName");
+ ADAPT::listeCases_var MyCases = myAdaptGen->GetAllCasesName();
+ INFOS("MyCases construit");
int num = 0; QString aCaseName="";
while (aCaseName=="" )
{
aCaseName.setNum(num+1) ;
aCaseName.insert(0, QString("Case_")) ;
+ std::cout << "aCaseName : --" << aCaseName.toStdString().c_str() << "--" << std::endl;
for ( int i=0; i<MyCases->length(); i++)
{
if ( aCaseName == QString((MyCases)[i]))
}
}
}
+ INFOS("aCaseName construit");
LEName->clear() ;
LEName->insert(aCaseName);
+ INFOS("Fin de SetNewName");
}
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
{
MonCreateBoundaryCAO *BoundaryDlg = new MonCreateBoundaryCAO(this, true,
- ADAPT::ADAPT_Gen::_duplicate(myHomardGen), _aCaseName, "") ;
+ ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), _aCaseName, "") ;
BoundaryDlg->show();
}
// ------------------------------------------------------------------------
{
if (CBBoundaryCAO->currentText() == QString("")) return;
MonEditBoundaryCAO *BoundaryDlg = new MonEditBoundaryCAO(this, true,
- ADAPT::ADAPT_Gen::_duplicate(myHomardGen), _aCaseName, CBBoundaryCAO->currentText() ) ;
+ ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), _aCaseName, CBBoundaryCAO->currentText() ) ;
BoundaryDlg->show();
}
// ------------------------------------------------------------------------
void MonCreateCase::PushBoundaryCAOHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_boundary.html"), QString("CAO"), QString(LanguageShort.c_str()));
}
// ------------------------------------------------------------------------
void MonCreateCase::SetBoundaryD()
// ------------------------------------------------------------------------
{
- MESSAGE("Debut de SetBoundaryD ");
+ INFOS("Debut de SetBoundaryD ");
if (CBBoundaryD->isChecked())
{
bool bOK = PushOnApply(0);
// ------------------------------------------------------------------------
{
MonCreateBoundaryDi *BoundaryDlg = new MonCreateBoundaryDi(this, true,
- ADAPT::ADAPT_Gen::_duplicate(myHomardGen), _aCaseName, "") ;
+ ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), _aCaseName, "") ;
BoundaryDlg->show();
}
// ------------------------------------------------------------------------
{
if (CBBoundaryDi->currentText() == QString("")) return;
MonEditBoundaryDi *BoundaryDlg = new MonEditBoundaryDi(this, true,
- ADAPT::ADAPT_Gen::_duplicate(myHomardGen), _aCaseName, CBBoundaryDi->currentText() ) ;
+ ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), _aCaseName, CBBoundaryDi->currentText() ) ;
BoundaryDlg->show();
}
// ------------------------------------------------------------------------
void MonCreateCase::PushBoundaryDiHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_boundary.html"), QString("frontiere-discrete"), QString(LanguageShort.c_str()));
}
// ------------------------------------------------------------------------
void MonCreateCase::SetBoundaryA()
// ------------------------------------------------------------------------
{
- MESSAGE("Debut de SetBoundaryA ");
+ INFOS("Debut de SetBoundaryA ");
if (CBBoundaryA->isChecked())
{
bool bOK = PushOnApply(0);
void MonCreateCase::AddBoundaryAn(QString newBoundary)
// ------------------------------------------------------------------------
{
- MESSAGE("Debut de AddBoundaryAn ");
+ INFOS("Debut de AddBoundaryAn ");
// Ajout d'une nouvelle colonne
int nbcol = TWBoundary->columnCount();
-// MESSAGE("nbcol " << nbcol);
+// INFOS("nbcol " << nbcol);
nbcol += 1 ;
TWBoundary->setColumnCount ( nbcol ) ;
QTableWidgetItem *__colItem = new QTableWidgetItem();
/* TWBoundary->horizontalHeaderItem(nbcol-1)->setFlags( Qt::ItemIsSelectable|Qt::ItemIsEnabled );*/
// Chaque case est a cocher
int nbrow = TWBoundary->rowCount();
-// MESSAGE("nbrow " << nbrow);
+// INFOS("nbrow " << nbrow);
for ( int i = 0; i < nbrow; i++ )
{
TWBoundary->setItem( i, nbcol-1, new QTableWidgetItem( QString ("") ) );
}
TWBoundary->resizeColumnToContents(nbcol-1);
// TWBoundary->resizeRowsToContents();
-// MESSAGE("Fin de AddBoundaryAn ");
+// INFOS("Fin de AddBoundaryAn ");
}
// ------------------------------------------------------------------------
void MonCreateCase::PushBoundaryAnNew()
// ------------------------------------------------------------------------
{
MonCreateBoundaryAn *BoundaryDlg = new MonCreateBoundaryAn(this, true,
- ADAPT::ADAPT_Gen::_duplicate(myHomardGen), _aCaseName) ;
+ ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), _aCaseName) ;
BoundaryDlg->show();
}
// ------------------------------------------------------------------------
QTableWidgetItem *__colItem = new QTableWidgetItem();
__colItem = TWBoundary->horizontalHeaderItem(i);
nom = QString(__colItem->text()) ;
- MESSAGE("nom "<<nom.toStdString().c_str());
+ INFOS("nom "<<nom.toStdString().c_str());
if (nom != QString(""))
{ MonEditBoundaryAn *BoundaryDlg = new MonEditBoundaryAn(this, true,
- ADAPT::ADAPT_Gen::_duplicate(myHomardGen), _aCaseName, nom ) ;
+ ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), _aCaseName, nom ) ;
BoundaryDlg->show(); }
}
}
void MonCreateCase::PushBoundaryAnHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_boundary.html"), QString("frontiere-analytique"), QString(LanguageShort.c_str()));
}
// ------------------------------------------------------------------------
void MonCreateCase::SetAdvanced()
// ------------------------------------------------------------------------
{
- MESSAGE("Debut de SetAdvanced ");
+ INFOS("Debut de SetAdvanced ");
if (CBAdvanced->isChecked())
{ GBAdvancedOptions->setVisible(1);
GBConforme->setVisible(1);
_Pyram = 0 ;
SetStandard() ;
SetMED() ;
+ INFOS("Fin de SetAdvanced ");
}
//
adjustSize();
Q_OBJECT
public:
- MonCreateCase( bool modal, ADAPT::ADAPT_Gen_var myHomardGen );
+ MonCreateCase( bool modal, ADAPT::ADAPT_Gen_var myAdaptGen );
~MonCreateCase();
void AddBoundaryCAO(QString newBoundary);
int _Pyram;
ADAPT::HOMARD_Cas_var aCase ;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
virtual void InitConnect();
virtual void InitBoundarys();
// -------------------------------------------------------------------------------
MonCreateHypothesis::MonCreateHypothesis(MonCreateIteration* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen0,
+ ADAPT::ADAPT_Gen_var myAdaptGen0,
QString Name,
QString caseName, QString aFieldFile)
// ---------------------------------------------------------------------------------
{
MESSAGE("Constructeur") ;
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0);
setupUi(this);
if ( modal ) { setWindowModality(Qt::WindowModal); }
else { setWindowModality(Qt::NonModal); }
_Name=LEName->text().trimmed();
try
{
- aHypothesis=myHomardGen->CreateHypothesis(CORBA::string_dup(_Name.toStdString().c_str()) );
+ aHypothesis=myAdaptGen->CreateHypothesis(CORBA::string_dup(_Name.toStdString().c_str()) );
_parent->addHypothese(_Name);
}
catch( SALOME::SALOME_Exception& S_ex )
void MonCreateHypothesis::PushOnHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_hypothese.html"), QString(""), QString(LanguageShort.c_str()));
}
// -------------------------------------------------
// --------------------------------------------------
{
- ADAPT::listeHypotheses_var MyObjects = myHomardGen->GetAllHypothesesName();
+ ADAPT::listeHypotheses_var MyObjects = myAdaptGen->GetAllHypothesesName();
int num = 0;//
QString aName="";
while (aName=="" )
// ------------------------------------------------------------------------
{
MESSAGE("Debut de MonCreateHypothesis::PushZoneNew")
- MonCreateZone *aDlg = new MonCreateZone(this, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen), _aCaseName) ;
+ MonCreateZone *aDlg = new MonCreateZone(this, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), _aCaseName) ;
aDlg->show();
}
return;
}
QString zoneName = monItem->text().trimmed();
- MonEditZone *aDlg = new MonEditZone(this, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen), _aCaseName, zoneName) ;
+ MonEditZone *aDlg = new MonEditZone(this, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), _aCaseName, zoneName) ;
aDlg->show();
}
// ------------------------------------------------------------------------
// Par defaut, aucune n'est selectionnee
{
MESSAGE("Debut de GetAllZones") ;
- ADAPT::listeZones_var mesZones = myHomardGen->GetAllZonesName();
+ ADAPT::listeZones_var mesZones = myAdaptGen->GetAllZonesName();
int nbrow=TWZone->rowCount();
for ( int row=0; row< nbrow; row++)
{
// ------------------------------------------------------------------------
{
if (!CBGroupe->isChecked()) return;
- MonCreateListGroup *aDlg = new MonCreateListGroup(this, NULL, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen),_aCaseName, _aListeGroupes) ;
+ MonCreateListGroup *aDlg = new MonCreateListGroup(this, NULL, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen),_aCaseName, _aListeGroupes) ;
aDlg->show();
}
Q_OBJECT
public:
- MonCreateHypothesis( MonCreateIteration* parent, bool modal, ADAPT::ADAPT_Gen_var myHomardGen,
+ MonCreateHypothesis( MonCreateIteration* parent, bool modal, ADAPT::ADAPT_Gen_var myAdaptGen,
QString aHypotheseName, QString caseName, QString aFieldFile);
~MonCreateHypothesis();
virtual void setGroups(QStringList listGroup);
protected :
- // MonCreateHypothesis( MonCreateIteration* parent, ADAPT::ADAPT_Gen_var myHomardGen,
+ // MonCreateHypothesis( MonCreateIteration* parent, ADAPT::ADAPT_Gen_var myAdaptGen,
// QString caseName, QString aFieldFile);
MonCreateIteration *_parent;
int _ExtraOutput;
ADAPT::HOMARD_Hypothesis_var aHypothesis;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
QStringList _aListeZone;
QStringList _aListeComposant;
// -----------------------------------------------------------------------------------------------------
MonCreateIteration::MonCreateIteration(QWidget* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen0, QString IterParentName ):
+ ADAPT::ADAPT_Gen_var myAdaptGen0, QString IterParentName ):
// -----------------------------------------------------------------------------------------------------
/* Constructs a MonCreateIteration
* Inherits from CasHomard
_CaseName("")
{
MESSAGE("Constructeur");
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0);
setupUi(this);
if ( modal ) { setWindowModality(Qt::WindowModal); }
else { setWindowModality(Qt::NonModal); }
void MonCreateIteration::GetHypotheses()
// ------------------------------------------------------------------------
{
- ADAPT::listeHypotheses_var mesHypotheses = myHomardGen->GetAllHypothesesName();
+ ADAPT::listeHypotheses_var mesHypotheses = myAdaptGen->GetAllHypothesesName();
for (int i=0; i<mesHypotheses->length(); i++)
{
CBHypothese->addItem(QString(mesHypotheses[i]));
QObject::tr("HOM_ITER_HYPO") );
return false;
}
- ADAPT::HOMARD_Hypothesis_var _myHypothesis = myHomardGen->GetHypothesis(monHypoName.toStdString().c_str());
+ ADAPT::HOMARD_Hypothesis_var _myHypothesis = myAdaptGen->GetHypothesis(monHypoName.toStdString().c_str());
ADAPT::listeTypes_var ListTypes (_myHypothesis->GetAdapRefinUnRef());
int TypeAdap = ListTypes[0];
if ( TypeAdap == 1 && LEFieldFile->text().trimmed() == QString("") )
{
_Name = aName;
std::cerr << _Name.toStdString() << std::endl;
- aIter = myHomardGen->CreateIteration( \
+ aIter = myAdaptGen->CreateIteration( \
CORBA::string_dup(_Name.toStdString().c_str()),
CORBA::string_dup(_IterParentName.toStdString().c_str()));
}
if ( step == -2 ) { aIter->SetTimeStepRankLast(); }
else { aIter->SetTimeStepRank(step,rank); }
}
- myHomardGen->AssociateIterHypo (IterName.c_str(), monHypoName.toStdString().c_str());
+ myAdaptGen->AssociateIterHypo (IterName.c_str(), monHypoName.toStdString().c_str());
aIter->SetMeshName(CORBA::string_dup(aMeshName_np1.toStdString().c_str()));
HOMARD_UTILS::updateObjBrowser() ;
void MonCreateIteration::PushOnHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_iteration.html"), QString(""), QString(LanguageShort.c_str()));
}
// ------------------------------------------------------------------------
if (_IterParentName == QString("")) { raise();return;};
}
_CaseName=HOMARD_QT_COMMUN::SelectionCasEtude();
- ADAPT::HOMARD_Iteration_var aIterParent = myHomardGen->GetIteration(_IterParentName.toStdString().c_str()) ;
+ ADAPT::HOMARD_Iteration_var aIterParent = myAdaptGen->GetIteration(_IterParentName.toStdString().c_str()) ;
QString MeshName = aIterParent->GetMeshName();
LEMeshName_n->setText(MeshName);
{
// Recherche d'un nom par defaut qui n'existe pas encore
- ADAPT::listeIterations_var MyObjects=myHomardGen->GetAllIterationsName();
+ ADAPT::listeIterations_var MyObjects=myAdaptGen->GetAllIterationsName();
int num = 0;//
QString aName="";
while (aName=="" )
return;
}
QString aFieldFile=LEFieldFile->text().trimmed();
- MonEditHypothesis *HypoDlg = new MonEditHypothesis(this, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen),CBHypothese->currentText(), _CaseName, aFieldFile) ;
+ MonEditHypothesis *HypoDlg = new MonEditHypothesis(this, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen),CBHypothese->currentText(), _CaseName, aFieldFile) ;
HypoDlg->show();
}
}
if ( _CaseName == QString(""))
{
- ADAPT::HOMARD_Iteration_var aIterParent = myHomardGen->GetIteration(_IterParentName.toStdString().c_str()) ;
+ ADAPT::HOMARD_Iteration_var aIterParent = myAdaptGen->GetIteration(_IterParentName.toStdString().c_str()) ;
_CaseName = aIterParent->GetCaseName();
}
QString aFieldFile=LEFieldFile->text().trimmed();
- MonCreateHypothesis *HypoDlg = new MonCreateHypothesis(this, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen), QString(""), _CaseName, aFieldFile) ;
+ MonCreateHypothesis *HypoDlg = new MonCreateHypothesis(this, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), QString(""), _CaseName, aFieldFile) ;
HypoDlg->show();
}
// ------------------------------------------------------------------------
Q_OBJECT
public:
- MonCreateIteration( QWidget* parent, bool modal, ADAPT::ADAPT_Gen_var myHomardGen, QString IterParentName );
+ MonCreateIteration( QWidget* parent, bool modal, ADAPT::ADAPT_Gen_var myAdaptGen, QString IterParentName );
~MonCreateIteration();
void addHypothese(QString newHypothese);
protected :
- MonCreateIteration( QWidget* parent, ADAPT::ADAPT_Gen_var myHomardGen, QString IterParentName );
+ MonCreateIteration( QWidget* parent, ADAPT::ADAPT_Gen_var myAdaptGen, QString IterParentName );
QString _Name;
QString _IterParentName;
ADAPT::HOMARD_Iteration_var aIter ;
ADAPT::HOMARD_Iteration_var aIterParent ;
ADAPT::HOMARD_Cas_var aCas ;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
virtual void InitConnect();
// --------------------------------------------------------------------------------------------------------------
MonCreateListGroup::MonCreateListGroup(MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen0, QString aCaseName, QStringList listeGroupesHypo) :
+ ADAPT::ADAPT_Gen_var myAdaptGen0, QString aCaseName, QStringList listeGroupesHypo) :
// --------------------------------------------------------------------------------------------------------------
//
QDialog(0), Ui_CreateListGroup(),
_parentBound(parentBound)
{
MESSAGE("Debut de MonCreateListGroup")
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0);
setupUi(this);
setModal(modal);
InitConnect();
}
// --------------------------------------------------------------------------------------------------------------
MonCreateListGroup::MonCreateListGroup(MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound,
- ADAPT::ADAPT_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo) :
+ ADAPT::ADAPT_Gen_var myAdaptGen, QString aCaseName, QStringList listeGroupesHypo) :
// --------------------------------------------------------------------------------------------------------------
//
QDialog(0), Ui_CreateListGroup(),
_parentHyp(parentHyp),
_parentBound(parentBound)
{
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen);
setupUi(this);
InitConnect();
}
void MonCreateListGroup::PushOnHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_hypothese.html"), QString(""), QString(LanguageShort.c_str()));
}
// ------------------------------------------------------------------------
TWGroupe->removeRow(row);
TWGroupe->setRowCount(0);
if (_aCaseName == QString("")) { return; };
- ADAPT::HOMARD_Cas_var monCas= myHomardGen->GetCase(_aCaseName.toStdString().c_str());
+ ADAPT::HOMARD_Cas_var monCas= myAdaptGen->GetCase(_aCaseName.toStdString().c_str());
ADAPT::ListGroupType_var _listeGroupesCas = monCas->GetGroups();
for ( int i = 0; i < _listeGroupesCas->length(); i++ )
{
Q_OBJECT
public:
- MonCreateListGroup( MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound, bool modal, ADAPT::ADAPT_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo);
- MonCreateListGroup( MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound, ADAPT::ADAPT_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo);
+ MonCreateListGroup( MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound, bool modal, ADAPT::ADAPT_Gen_var myAdaptGen, QString aCaseName, QStringList listeGroupesHypo);
+ MonCreateListGroup( MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound, ADAPT::ADAPT_Gen_var myAdaptGen, QString aCaseName, QStringList listeGroupesHypo);
virtual ~MonCreateListGroup();
protected :
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
MonCreateHypothesis * _parentHyp;
MonCreateBoundaryDi * _parentBound;
// --------------------------------------------------------------------------------------------------------------
MonCreateListGroupCAO::MonCreateListGroupCAO(MonCreateHypothesis* parentHyp, MonCreateBoundaryCAO* parentBound, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen0, QString aCaseName, QStringList listeGroupesHypo) :
+ ADAPT::ADAPT_Gen_var myAdaptGen0, QString aCaseName, QStringList listeGroupesHypo) :
// --------------------------------------------------------------------------------------------------------------
//
QDialog(0), Ui_CreateListGroup(),
_parentBound(parentBound)
{
MESSAGE("Debut de MonCreateListGroupCAO")
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0);
setupUi(this);
setModal(modal);
InitConnect();
}
// --------------------------------------------------------------------------------------------------------------
MonCreateListGroupCAO::MonCreateListGroupCAO(MonCreateHypothesis* parentHyp, MonCreateBoundaryCAO* parentBound,
- ADAPT::ADAPT_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo) :
+ ADAPT::ADAPT_Gen_var myAdaptGen, QString aCaseName, QStringList listeGroupesHypo) :
// --------------------------------------------------------------------------------------------------------------
//
QDialog(0), Ui_CreateListGroup(),
_parentHyp(parentHyp),
_parentBound(parentBound)
{
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen);
setupUi(this);
InitConnect();
}
void MonCreateListGroupCAO::PushOnHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_hypothese.html"), QString(""), QString(LanguageShort.c_str()));
}
// ------------------------------------------------------------------------
TWGroupe->removeRow(row);
TWGroupe->setRowCount(0);
if (_aCaseName == QString("")) { return; };
- ADAPT::HOMARD_Cas_var monCas= myHomardGen->GetCase(_aCaseName.toStdString().c_str());
+ ADAPT::HOMARD_Cas_var monCas= myAdaptGen->GetCase(_aCaseName.toStdString().c_str());
ADAPT::ListGroupType_var _listeGroupesCas = monCas->GetGroups();
for ( int i = 0; i < _listeGroupesCas->length(); i++ )
{
Q_OBJECT
public:
- MonCreateListGroupCAO( MonCreateHypothesis* parentHyp, MonCreateBoundaryCAO* parentBound, bool modal, ADAPT::ADAPT_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo);
- MonCreateListGroupCAO( MonCreateHypothesis* parentHyp, MonCreateBoundaryCAO* parentBound, ADAPT::ADAPT_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo);
+ MonCreateListGroupCAO( MonCreateHypothesis* parentHyp, MonCreateBoundaryCAO* parentBound, bool modal, ADAPT::ADAPT_Gen_var myAdaptGen, QString aCaseName, QStringList listeGroupesHypo);
+ MonCreateListGroupCAO( MonCreateHypothesis* parentHyp, MonCreateBoundaryCAO* parentBound, ADAPT::ADAPT_Gen_var myAdaptGen, QString aCaseName, QStringList listeGroupesHypo);
virtual ~MonCreateListGroupCAO();
protected :
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
MonCreateHypothesis * _parentHyp;
MonCreateBoundaryCAO * _parentBound;
using namespace std;
// ----------------------------------------------------------------------
-MonCreateYACS::MonCreateYACS (bool modal, ADAPT::ADAPT_Gen_var myHomardGen0, QString CaseName ):
+MonCreateYACS::MonCreateYACS (bool modal, ADAPT::ADAPT_Gen_var myAdaptGen0, QString CaseName ):
// ----------------------------------------------------------------------
/* Constructs a MonCreateYACS
* Sets attributes to default values
// et doivent correspondre aux defauts des boutons
{
// MESSAGE("Debut du constructeur de MonCreateYACS");
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0);
setupUi(this);
if ( modal ) { setWindowModality(Qt::WindowModal); }
else { setWindowModality(Qt::NonModal); }
else { setWindowModality(Qt::NonModal); /* permet selection du cas dans l arbre d etude */}
//
// Les valeurs definies dans les preferences
- _MaxIter = myHomardGen->GetYACSMaxIter();
- _MaxNode = myHomardGen->GetYACSMaxNode();
- _MaxElem = myHomardGen->GetYACSMaxElem();
+ _MaxIter = myAdaptGen->GetYACSMaxIter();
+ _MaxNode = myAdaptGen->GetYACSMaxNode();
+ _MaxElem = myAdaptGen->GetYACSMaxElem();
MESSAGE ("Valeur par defaut de MaxIter = " << _MaxIter<<", MaxNode = "<< _MaxNode<<", MaxElem = "<< _MaxElem);
SpinBoxMaxIter->setValue(_MaxIter) ;
SpinBoxMaxNode->setValue(_MaxNode) ;
}
// ----------------------------------------------------------------------
-MonCreateYACS::MonCreateYACS(ADAPT::ADAPT_Gen_var myHomardGen0,
+MonCreateYACS::MonCreateYACS(ADAPT::ADAPT_Gen_var myAdaptGen0,
QString caseName):
// ----------------------------------------------------------------------
// Constructeur appele par MonEditYACS
//
-myHomardGen(myHomardGen0),
+myAdaptGen(myAdaptGen0),
_Name (""),
Chgt (false)
{
return false;
}
if ( aDirName != _aDirName)
- { QString CaseNameDir = myHomardGen->VerifieDir( aDirName.toStdString().c_str()) ;
+ { QString CaseNameDir = myAdaptGen->VerifieDir( aDirName.toStdString().c_str()) ;
if ( CaseNameDir != "" )
{
QString texte ;
try
{
_Name=LEName->text().trimmed();
- aYACS=myHomardGen->CreateYACSSchema(CORBA::string_dup(_Name.toStdString().c_str()), CORBA::string_dup(_aCaseName.toStdString().c_str()), CORBA::string_dup(_aScriptFile.toStdString().c_str()), CORBA::string_dup(_aDirName.toStdString().c_str()), CORBA::string_dup(_aMeshFile.toStdString().c_str()));
+ aYACS=myAdaptGen->CreateYACSSchema(CORBA::string_dup(_Name.toStdString().c_str()), CORBA::string_dup(_aCaseName.toStdString().c_str()), CORBA::string_dup(_aScriptFile.toStdString().c_str()), CORBA::string_dup(_aDirName.toStdString().c_str()), CORBA::string_dup(_aMeshFile.toStdString().c_str()));
}
catch( SALOME::SALOME_Exception& S_ex )
{
void MonCreateYACS::PushOnHelp()
//-------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("yacs.html"), QString(""), QString(LanguageShort.c_str()));
}
// -------------------------------------------------
// --------------------------------------------------
{
- ADAPT::listeYACSs_var MyObjects = myHomardGen->GetAllYACSsName();
+ ADAPT::listeYACSs_var MyObjects = myAdaptGen->GetAllYACSsName();
int num = 0; QString aName="";
while (aName == QString("") )
{
Q_OBJECT
public:
- MonCreateYACS( bool modal, ADAPT::ADAPT_Gen_var myHomardGen, QString CaseName);
+ MonCreateYACS( bool modal, ADAPT::ADAPT_Gen_var myAdaptGen, QString CaseName);
virtual ~MonCreateYACS();
protected :
- MonCreateYACS( ADAPT::ADAPT_Gen_var myHomardGen, QString CaseName);
+ MonCreateYACS( ADAPT::ADAPT_Gen_var myAdaptGen, QString CaseName);
QString _Name;
QString _aCaseName;
bool Chgt;
ADAPT::HOMARD_YACS_var aYACS;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
virtual void InitConnect();
virtual bool CreateOrUpdate();
// ----------------------------------------------------------------------
MonCreateZone::MonCreateZone(MonCreateHypothesis* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen0,
+ ADAPT::ADAPT_Gen_var myAdaptGen0,
QString caseName) :
// ----------------------------------------------------------------------
/* Constructs a MonCreateZone
Chgt (false)
{
MESSAGE("Constructeur") ;
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0) ;
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0) ;
setupUi(this) ;
setModal(modal) ;
InitConnect( ) ;
}
// ----------------------------------------------------------------------
MonCreateZone::MonCreateZone(MonCreateHypothesis* parent,
- ADAPT::ADAPT_Gen_var myHomardGen0,
+ ADAPT::ADAPT_Gen_var myAdaptGen0,
QString caseName):
// ----------------------------------------------------------------------
// Constructeur appele par MonEditZone
//
QDialog(0), Ui_CreateZone(),
- myHomardGen(myHomardGen0),
+ myAdaptGen(myAdaptGen0),
_parent(parent),
_Name (""),
_aCaseName(caseName),
//
if (_aCaseName == QString("")) { return; }
- ADAPT::HOMARD_Cas_var aCas = myHomardGen->GetCase(_aCaseName.toStdString().c_str()) ;
+ ADAPT::HOMARD_Cas_var aCas = myAdaptGen->GetCase(_aCaseName.toStdString().c_str()) ;
ADAPT::extrema_var MesExtremes = aCas->GetBoundingBox() ;
int num = MesExtremes->length() ;
ASSERT(num == 10) ;
switch (_Type)
{
case 11 : // il s agit d un rectangle, dans le plan (X,Y)
- { aZone = myHomardGen->CreateZoneBox2D(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aZone = myAdaptGen->CreateZoneBox2D(CORBA::string_dup(_Name.toStdString().c_str()), \
_ZoneXmin, _ZoneXmax, _ZoneYmin, _ZoneYmax, _Orient );
break;
}
case 12 : // il s agit d un rectangle, dans le plan (Y,Z)
- { aZone = myHomardGen->CreateZoneBox2D(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aZone = myAdaptGen->CreateZoneBox2D(CORBA::string_dup(_Name.toStdString().c_str()), \
_ZoneYmin, _ZoneYmax, _ZoneZmin, _ZoneZmax, _Orient );
break;
}
case 13 : // il s agit d un rectangle, dans le plan (Z,X)
- { aZone = myHomardGen->CreateZoneBox2D(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aZone = myAdaptGen->CreateZoneBox2D(CORBA::string_dup(_Name.toStdString().c_str()), \
_ZoneZmin, _ZoneZmax, _ZoneXmin, _ZoneXmax, _Orient );
break;
}
case 2 : // il s agit d un parallelepipede
- { aZone = myHomardGen->CreateZoneBox(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aZone = myAdaptGen->CreateZoneBox(CORBA::string_dup(_Name.toStdString().c_str()), \
_ZoneXmin, _ZoneXmax, _ZoneYmin, _ZoneYmax, _ZoneZmin, _ZoneZmax );
break;
}
case 4 : // il s agit d une sphere
- { aZone = myHomardGen->CreateZoneSphere(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aZone = myAdaptGen->CreateZoneSphere(CORBA::string_dup(_Name.toStdString().c_str()), \
_ZoneXcentre, _ZoneYcentre, _ZoneZcentre, _ZoneRayon );
break;
}
case 31 : // il s agit d un disque issu d'un cylindre, dans le plan (X,Y)
- { aZone = myHomardGen->CreateZoneDisk(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aZone = myAdaptGen->CreateZoneDisk(CORBA::string_dup(_Name.toStdString().c_str()), \
_ZoneXcentre, _ZoneYcentre, _ZoneRayon, _Orient );
break;
}
case 32 : // il s agit d un disque issu d'un cylindre, dans le plan (Y,Z)
- { aZone = myHomardGen->CreateZoneDisk(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aZone = myAdaptGen->CreateZoneDisk(CORBA::string_dup(_Name.toStdString().c_str()), \
_ZoneYcentre, _ZoneZcentre, _ZoneRayon, _Orient );
break;
}
case 33 : // il s agit d un disque issu d'un cylindre, dans le plan (Z,X)
- { aZone = myHomardGen->CreateZoneDisk(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aZone = myAdaptGen->CreateZoneDisk(CORBA::string_dup(_Name.toStdString().c_str()), \
_ZoneZcentre, _ZoneXcentre, _ZoneRayon, _Orient );
break;
}
case 5 : // il s agit d un cylindre
- { aZone = myHomardGen->CreateZoneCylinder(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aZone = myAdaptGen->CreateZoneCylinder(CORBA::string_dup(_Name.toStdString().c_str()), \
_ZoneXcentre, _ZoneYcentre, _ZoneZcentre, _ZoneXaxis, _ZoneYaxis, _ZoneZaxis, _ZoneRayon, _ZoneHaut );
break;
}
case 61 : // il s agit d un disque avec trou, dans le plan (X,Y)
- { aZone = myHomardGen->CreateZoneDiskWithHole(CORBA::string_dup(_Name.toStdString().c_str()), \
+ { aZone = myAdaptGen->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()), \
+ { aZone = myAdaptGen->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()), \
+ { aZone = myAdaptGen->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()), \
+ { aZone = myAdaptGen->CreateZonePipe(CORBA::string_dup(_Name.toStdString().c_str()), \
_ZoneXcentre, _ZoneYcentre, _ZoneZcentre, _ZoneXaxis, _ZoneYaxis, _ZoneZaxis, _ZoneRayon, _ZoneHaut, _ZoneRayonInt );
break;
}
void MonCreateZone::PushOnHelp()
// ------------------------------------------------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_zone.html"), QString(""), QString(LanguageShort.c_str()));
}
MESSAGE("SetNewName");
// Recherche d'un nom par defaut qui n'existe pas encore
- ADAPT::listeZones_var MyObjects = myHomardGen->GetAllZonesName() ;
+ ADAPT::listeZones_var MyObjects = myAdaptGen->GetAllZonesName() ;
int num = 0; QString aName="";
while (aName=="" )
{
public:
MonCreateZone( MonCreateHypothesis* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName);
virtual ~MonCreateZone();
protected :
MonCreateZone( MonCreateHypothesis* parent,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName);
MonCreateHypothesis * _parent;
bool Chgt;
ADAPT::HOMARD_Zone_var aZone ;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
virtual void InitConnect();
virtual void InitValZone();
// ------------------------------------------------------------------------
MonEditBoundaryAn::MonEditBoundaryAn( MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString Name ):
// ------------------------------------------------------------------------
/* Constructs a MonEditBoundaryAn
herite de MonCreateBoundaryAn
*/
- MonCreateBoundaryAn(parent, myHomardGen, caseName)
+ MonCreateBoundaryAn(parent, myAdaptGen, caseName)
{
MESSAGE("Debut de MonEditBoundaryAn pour " << Name.toStdString().c_str());
setWindowTitle(QObject::tr("HOM_BOUN_A_EDIT_WINDOW_TITLE"));
_Name=Name;
- aBoundaryAn = myHomardGen->GetBoundary(_Name.toStdString().c_str());
+ aBoundaryAn = myAdaptGen->GetBoundary(_Name.toStdString().c_str());
InitValEdit();
}
// ------------------------------------------------------------------------
}
case 3 : // il s agit d un cone defini par un axe et un angle
{
- aBoundaryAn = myHomardGen->CreateBoundaryConeA(CORBA::string_dup(_Name.toStdString().c_str()), \
+ aBoundaryAn = myAdaptGen->CreateBoundaryConeA(CORBA::string_dup(_Name.toStdString().c_str()), \
_BoundaryAnXaxisCone, _BoundaryAnYaxisCone, _BoundaryAnZaxisCone, _BoundaryAngle, \
_BoundaryAnXorigCone, _BoundaryAnYorigCone, _BoundaryAnYorigCone);
break;
}
case 4 : // il s agit d un cone defini par les 2 rayons
{
- aBoundaryAn = myHomardGen->CreateBoundaryConeR(CORBA::string_dup(_Name.toStdString().c_str()), \
+ aBoundaryAn = myAdaptGen->CreateBoundaryConeR(CORBA::string_dup(_Name.toStdString().c_str()), \
_BoundaryAnXcone1, _BoundaryAnYcone1, _BoundaryAnZcone1, _BoundaryAnRayon1, \
_BoundaryAnXcone2, _BoundaryAnYcone2, _BoundaryAnZcone2, _BoundaryAnRayon2);
break;
break;
}
}
- if (Chgt) myHomardGen->InvalideBoundary(_Name.toStdString().c_str());
+ if (Chgt) myAdaptGen->InvalideBoundary(_Name.toStdString().c_str());
HOMARD_UTILS::updateObjBrowser();
return true;
}
Q_OBJECT
public:
MonEditBoundaryAn( MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString Name);
virtual ~MonEditBoundaryAn();
// -------------------------------------------------------------------------------------------------------------------------------------
MonEditBoundaryCAO::MonEditBoundaryCAO( MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString Name):
// -------------------------------------------------------------------------------------------------------------------------------------
/* Constructs a MonEditBoundaryCAO
herite de MonCreateBoundaryCAO
*/
- MonCreateBoundaryCAO(parent, modal, myHomardGen, caseName, Name)
+ MonCreateBoundaryCAO(parent, modal, myAdaptGen, caseName, Name)
{
MESSAGE("Debut de Boundary pour " << Name.toStdString().c_str());
setWindowTitle(QObject::tr("HOM_BOUN_C_EDIT_WINDOW_TITLE"));
try
{
- aBoundary=myHomardGen->GetBoundary(CORBA::string_dup(_aName.toStdString().c_str()));
+ aBoundary=myAdaptGen->GetBoundary(CORBA::string_dup(_aName.toStdString().c_str()));
if (caseName==QString("")) { _aCaseName=aBoundary->GetCaseCreation();}
InitValEdit();
}
QObject::tr("HOM_BOUN_CASE") );
return;
}
- ADAPT::HOMARD_Cas_var monCas= myHomardGen->GetCase(_aCaseName.toStdString().c_str());
+ ADAPT::HOMARD_Cas_var monCas= myAdaptGen->GetCase(_aCaseName.toStdString().c_str());
ADAPT::ListGroupType_var _listeGroupesCas = monCas->GetGroups();
- MonEditListGroupCAO *aDlg = new MonEditListGroupCAO(NULL, this, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen),
+ MonEditListGroupCAO *aDlg = new MonEditListGroupCAO(NULL, this, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen),
_aCaseName, _listeGroupesBoundary) ;
aDlg->show();
}
Q_OBJECT
public:
MonEditBoundaryCAO( MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString Name );
virtual ~MonEditBoundaryCAO();
// -------------------------------------------------------------------------------------------------------------------------------------
MonEditBoundaryDi::MonEditBoundaryDi( MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString Name):
// -------------------------------------------------------------------------------------------------------------------------------------
/* Constructs a MonEditBoundaryDi
herite de MonCreateBoundaryDi
*/
- MonCreateBoundaryDi(parent, modal, myHomardGen, caseName, Name)
+ MonCreateBoundaryDi(parent, modal, myAdaptGen, caseName, Name)
{
MESSAGE("Debut de Boundary pour " << Name.toStdString().c_str());
setWindowTitle(QObject::tr("HOM_BOUN_D_EDIT_WINDOW_TITLE"));
try
{
- aBoundary=myHomardGen->GetBoundary(CORBA::string_dup(_aName.toStdString().c_str()));
+ aBoundary=myAdaptGen->GetBoundary(CORBA::string_dup(_aName.toStdString().c_str()));
if (caseName==QString("")) { _aCaseName=aBoundary->GetCaseCreation();}
InitValEdit();
}
QObject::tr("HOM_BOUN_CASE") );
return;
}
- ADAPT::HOMARD_Cas_var monCas= myHomardGen->GetCase(_aCaseName.toStdString().c_str());
+ ADAPT::HOMARD_Cas_var monCas= myAdaptGen->GetCase(_aCaseName.toStdString().c_str());
ADAPT::ListGroupType_var _listeGroupesCas = monCas->GetGroups();
- MonEditListGroup *aDlg = new MonEditListGroup(NULL, this, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen),
+ MonEditListGroup *aDlg = new MonEditListGroup(NULL, this, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen),
_aCaseName, _listeGroupesBoundary) ;
aDlg->show();
}
Q_OBJECT
public:
MonEditBoundaryDi( MonCreateCase* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString Name );
virtual ~MonEditBoundaryDi();
*/
// -------------------------------------------------------------
MonEditCase::MonEditCase ( bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString CaseName ):
- MonCreateCase(modal, myHomardGen)
+ MonCreateCase(modal, myAdaptGen)
{
MESSAGE("Debut de MonEditCase" << CaseName.toStdString().c_str());
setWindowTitle(QObject::tr("HOM_CASE_EDIT_WINDOW_TITLE"));
_aCaseName = CaseName;
- aCase = myHomardGen->GetCase(_aCaseName.toStdString().c_str());
+ aCase = myAdaptGen->GetCase(_aCaseName.toStdString().c_str());
InitValEdit();
}
// ------------------------------
PushDir->setVisible(0);
QString _aitername=aCase->GetIter0Name();
- ADAPT::HOMARD_Iteration_var aIter = myHomardGen->GetIteration(_aitername.toStdString().c_str());
+ ADAPT::HOMARD_Iteration_var aIter = myAdaptGen->GetIteration(_aitername.toStdString().c_str());
QString aFileName = aIter->GetMeshFile();
LEFileName->setText(aFileName);
LEFileName->setReadOnly(true);
NomFron = mesBoundarys[i++];
MESSAGE("NomFron "<<NomFron.toStdString().c_str());
// L'objet associe pour en deduire le type
- ADAPT::HOMARD_Boundary_var myBoundary = myHomardGen->GetBoundary(NomFron.toStdString().c_str());
+ ADAPT::HOMARD_Boundary_var myBoundary = myAdaptGen->GetBoundary(NomFron.toStdString().c_str());
int type_obj = myBoundary->GetType() ;
MESSAGE("type_obj "<<type_obj);
// C'est une frontiere CAO
Q_OBJECT
public:
MonEditCase( bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString Name );
virtual ~MonEditCase();
* ---------------------------------------------------------
*/
MonEditFile::MonEditFile( QWidget* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString aFileName, int option):
// QWidget(0),
Ui_EditFile(),
public:
MonEditFile( QWidget* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString FileName, int option );
~MonEditFile();
int _codret ;
protected :
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
QString _aFileName ;
int _option ;
// ----------------------------------------------------------------------------
MonEditHypothesis::MonEditHypothesis( MonCreateIteration* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString Name,
QString caseName, QString aFieldFile ):
// ----------------------------------------------------------------------------
/* Constructs a MonEditHypothesis
herite de MonCreateHypothesis
*/
- MonCreateHypothesis(parent, modal,myHomardGen, Name, caseName, aFieldFile)
+ MonCreateHypothesis(parent, modal,myAdaptGen, Name, caseName, aFieldFile)
{
MESSAGE("Hypothese " << Name.toStdString().c_str());
setWindowTitle(QObject::tr("HOM_HYPO_EDIT_WINDOW_TITLE"));
- aHypothesis = myHomardGen->GetHypothesis(_Name.toStdString().c_str());
+ aHypothesis = myAdaptGen->GetHypothesis(_Name.toStdString().c_str());
if (caseName == QString("") ){ _aCaseName = aHypothesis->GetCaseCreation();}
InitValEdit();
InitGroupes();
aHypothesis->SetUnRefThr(_TypeThC, _ThreshC) ;
}
- myHomardGen->InvalideHypo(_Name.toStdString().c_str());
+ myAdaptGen->InvalideHypo(_Name.toStdString().c_str());
HOMARD_UTILS::updateObjBrowser();
}
return true;
{
if (CBGroupe->isChecked())
{
- MonEditListGroup *aDlg = new MonEditListGroup(this, NULL, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen),_aCaseName, _aListeGroupes) ;
+ MonEditListGroup *aDlg = new MonEditListGroup(this, NULL, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen),_aCaseName, _aListeGroupes) ;
aDlg->show();
}
}
Q_OBJECT
public:
MonEditHypothesis( MonCreateIteration* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString Name, QString aFieldFile );
virtual ~MonEditHypothesis();
// -------------------------------------------------------------------------------------------------------------------------------------
MonEditIteration::MonEditIteration ( QWidget* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString IterParentName, QString IterName ):
// -------------------------------------------------------------------------------------------------------------------------------------
/* Constructs a MonEditIteration
herite de MonCreateIteration
*/
- MonCreateIteration(parent, modal, myHomardGen, IterParentName),
+ MonCreateIteration(parent, modal, myAdaptGen, IterParentName),
_rank(-1), _step(-1), _IterationName(""), _FieldFile(""),_aTypeAdap()
{
MESSAGE("Debut de MonEditIteration" << IterName.toStdString().c_str());
setWindowTitle(QObject::tr("HOM_ITER_EDIT_WINDOW_TITLE"));
_IterationName = IterName;
- aIter = myHomardGen->GetIteration(_IterationName.toStdString().c_str());
+ aIter = myAdaptGen->GetIteration(_IterationName.toStdString().c_str());
// Attention au cas ou c'est une iteration initiale : il faut inhiber l'essentiel
int etat = aIter->GetState() ;
PBIterParent->setVisible(0);
// Affichage bloque du nom du maillage de l'iteration parent
- aIterParent = myHomardGen->GetIteration(_IterParentName.toStdString().c_str());
+ aIterParent = myAdaptGen->GetIteration(_IterParentName.toStdString().c_str());
QString MeshNameParent = aIterParent->GetMeshName();
LEMeshName_n->setText(MeshNameParent);
LEMeshName_n->setReadOnly(1);
PBHypoNew->setVisible(0);
// Pour une adaptation selon un champ
- ADAPT::HOMARD_Hypothesis_var myHypo = myHomardGen->GetHypothesis(HypoName.toStdString().c_str()) ;
+ ADAPT::HOMARD_Hypothesis_var myHypo = myAdaptGen->GetHypothesis(HypoName.toStdString().c_str()) ;
_aTypeAdap = myHypo->GetAdapType() ;
if ( _aTypeAdap == 1 )
{
_step = SpinBox_TimeStep->value();
if ( _step == -2 ) { aIter->SetTimeStepRankLast(); }
else { aIter->SetTimeStepRank(_step, _rank); }
- myHomardGen->InvalideIter(_IterationName.toStdString().c_str());
+ myAdaptGen->InvalideIter(_IterationName.toStdString().c_str());
HOMARD_UTILS::updateObjBrowser();
}
}
Q_OBJECT
public:
MonEditIteration( QWidget* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString IterParentName, QString Name );
virtual ~MonEditIteration();
MonEditListGroup::MonEditListGroup( MonCreateHypothesis* parentHyp,
MonCreateBoundaryDi* parentBound,
bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString aCaseName,
QStringList listeGroupesHypo):
//---------------------------------------------------------------------
-MonCreateListGroup(parentHyp,parentBound,myHomardGen,aCaseName,listeGroupesHypo)
+MonCreateListGroup(parentHyp,parentBound,myAdaptGen,aCaseName,listeGroupesHypo)
{
MESSAGE("Debut de MonEditListGroup");
setWindowTitle(QObject::tr("HOM_GROU_EDIT_WINDOW_TITLE"));
Q_OBJECT
public:
- MonEditListGroup( MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound, bool modal, ADAPT::ADAPT_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo);
+ MonEditListGroup( MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound, bool modal, ADAPT::ADAPT_Gen_var myAdaptGen, QString aCaseName, QStringList listeGroupesHypo);
virtual ~MonEditListGroup();
protected :
MonEditListGroupCAO::MonEditListGroupCAO( MonCreateHypothesis* parentHyp,
MonCreateBoundaryCAO* parentBound,
bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString aCaseName,
QStringList listeGroupesHypo):
//---------------------------------------------------------------------
-MonCreateListGroupCAO(parentHyp,parentBound,myHomardGen,aCaseName,listeGroupesHypo)
+MonCreateListGroupCAO(parentHyp,parentBound,myAdaptGen,aCaseName,listeGroupesHypo)
{
MESSAGE("Debut de MonEditListGroupCAO");
setWindowTitle(QObject::tr("HOM_GROU_EDIT_WINDOW_TITLE"));
Q_OBJECT
public:
- MonEditListGroupCAO( MonCreateHypothesis* parentHyp, MonCreateBoundaryCAO* parentBound, bool modal, ADAPT::ADAPT_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo);
+ MonEditListGroupCAO( MonCreateHypothesis* parentHyp, MonCreateBoundaryCAO* parentBound, bool modal, ADAPT::ADAPT_Gen_var myAdaptGen, QString aCaseName, QStringList listeGroupesHypo);
virtual ~MonEditListGroupCAO();
protected :
*/
// -------------------------------------------------------------
MonEditYACS::MonEditYACS ( bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString Name ):
- MonCreateYACS(myHomardGen, Name)
+ MonCreateYACS(myAdaptGen, Name)
{
MESSAGE("Debut de MonEditYACS" << Name.toStdString().c_str());
setWindowTitle(QObject::tr("HOM_YACS_EDIT_WINDOW_TITLE"));
_Name = Name;
- aYACS = myHomardGen->GetYACS(_Name.toStdString().c_str());
+ aYACS = myAdaptGen->GetYACS(_Name.toStdString().c_str());
InitValEdit();
}
// ------------------------------
// B. Si changement
if ( chgt )
{
- myHomardGen->InvalideYACS(_Name.toStdString().c_str());
+ myAdaptGen->InvalideYACS(_Name.toStdString().c_str());
}
HOMARD_UTILS::updateObjBrowser();
Q_OBJECT
public:
MonEditYACS( bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString Name );
virtual ~MonEditYACS();
// ------------------------------------------------------------------------
MonEditZone::MonEditZone( MonCreateHypothesis* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString Name ):
// ------------------------------------------------------------------------
/* Constructs a MonEditZone
herite de MonCreateZone
*/
- MonCreateZone(parent, myHomardGen, caseName)
+ MonCreateZone(parent, myAdaptGen, caseName)
{
MESSAGE("Debut de MonEditZone pour " << Name.toStdString().c_str());
setWindowTitle(QObject::tr("HOM_ZONE_EDIT_WINDOW_TITLE"));
_Name=Name;
- aZone = myHomardGen->GetZone(_Name.toStdString().c_str());
+ aZone = myAdaptGen->GetZone(_Name.toStdString().c_str());
InitValEdit();
}
// ------------------------------------------------------------------------
break;
}
}
- if (Chgt) myHomardGen->InvalideZone(_Name.toStdString().c_str());
+ if (Chgt) myAdaptGen->InvalideZone(_Name.toStdString().c_str());
HOMARD_UTILS::updateObjBrowser();
}
catch( const SALOME::SALOME_Exception& S_ex ) {
Q_OBJECT
public:
MonEditZone( MonCreateHypothesis* parent, bool modal,
- ADAPT::ADAPT_Gen_var myHomardGen,
+ ADAPT::ADAPT_Gen_var myAdaptGen,
QString caseName, QString Name);
virtual ~MonEditZone();
using namespace std;
// -----------------------------------------------------------------------------------------
-MonIterInfo::MonIterInfo(QWidget* parent, bool modal, ADAPT::ADAPT_Gen_var myHomardGen0, QString IterName)
+MonIterInfo::MonIterInfo(QWidget* parent, bool modal, ADAPT::ADAPT_Gen_var myAdaptGen0, QString IterName)
// -----------------------------------------------------------------------------------------
/* Constructs a MonIterInfo
* Inherits from CasHomard
_Option(-1)
{
MESSAGE("appel de _duplicate");
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0);
setupUi(this);
setModal(modal);
InitConnect();
}
// Recuperation de l'iteration
- aIter = myHomardGen->GetIteration(_IterName.toStdString().c_str()) ;
+ aIter = myAdaptGen->GetIteration(_IterName.toStdString().c_str()) ;
// Lancement de l'analyse
try
// Le bilan de l'analyse a afficher
QString aFileName = aIter->GetFileInfo() ;
- MonEditFile *aDlg = new MonEditFile( 0, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen), aFileName, 0 ) ;
+ MonEditFile *aDlg = new MonEditFile( 0, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), aFileName, 0 ) ;
if ( aDlg->_codret == 0 ) { aDlg->show(); }
void MonIterInfo::PushOnHelp()
//-------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_mesh_info.html"), QString(""), QString(LanguageShort.c_str()));
}
// ------------------------------------------------------------------------
Q_OBJECT
public:
- MonIterInfo( QWidget* parent, bool modal, ADAPT::ADAPT_Gen_var myHomardGen, QString IterName);
+ MonIterInfo( QWidget* parent, bool modal, ADAPT::ADAPT_Gen_var myAdaptGen, QString IterName);
~MonIterInfo();
protected :
- MonIterInfo( QWidget* parent, ADAPT::ADAPT_Gen_var myHomardGen, QString IterName );
+ MonIterInfo( QWidget* parent, ADAPT::ADAPT_Gen_var myAdaptGen, QString IterName );
QString _IterName;
QString _aCaseName;
int _Option;
ADAPT::HOMARD_Iteration_var aIter ;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
virtual void InitConnect();
using namespace std;
// -----------------------------------------------------------------------------------------
-MonMeshInfo::MonMeshInfo(QWidget* parent, bool modal, ADAPT::ADAPT_Gen_var myHomardGen0)
+MonMeshInfo::MonMeshInfo(QWidget* parent, bool modal, ADAPT::ADAPT_Gen_var myAdaptGen0)
// -----------------------------------------------------------------------------------------
/* Constructs a MonMeshInfo
* Inherits from CasHomard
_Entanglement(0),
_Quality(0)
{
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0);
setupUi(this);
setModal(modal);
InitConnect();
return false;
}
if ( aDirName != _aDirName)
- { QString CaseNameDir = myHomardGen->VerifieDir( aDirName.toStdString().c_str()) ;
+ { QString CaseNameDir = myAdaptGen->VerifieDir( aDirName.toStdString().c_str()) ;
if ( CaseNameDir != "" )
{
QString texte ;
_aCaseName = aCaseName;
try
{
- myHomardGen->MeshInfo( \
+ myAdaptGen->MeshInfo( \
CORBA::string_dup(_aCaseName.toStdString().c_str()), \
CORBA::string_dup(aMeshName.toStdString().c_str()), \
CORBA::string_dup(aFileName.toStdString().c_str()), \
}
// Le bilan de l'analyse a afficher
- aCase = myHomardGen->GetCase(_aCaseName.toStdString().c_str());
+ aCase = myAdaptGen->GetCase(_aCaseName.toStdString().c_str());
string iter0 = aCase->GetIter0Name();
- ADAPT::HOMARD_Iteration_var aIter = myHomardGen->GetIteration(iter0.c_str());
+ ADAPT::HOMARD_Iteration_var aIter = myAdaptGen->GetIteration(iter0.c_str());
aFileName = aIter->GetFileInfo() ;
- MonEditFile *aDlg = new MonEditFile( 0, true, ADAPT::ADAPT_Gen::_duplicate(myHomardGen), aFileName, 1 ) ;
+ MonEditFile *aDlg = new MonEditFile( 0, true, ADAPT::ADAPT_Gen::_duplicate(myAdaptGen), aFileName, 1 ) ;
if ( aDlg->_codret == 0 ) { aDlg->show(); }
HOMARD_UTILS::updateObjBrowser();
void MonMeshInfo::PushOnHelp()
//-------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_case.html"), QString(""), QString(LanguageShort.c_str()));
}
// ---------------------------------
void MonMeshInfo::SetNewCaseName()
// ------------------------------
{
- ADAPT::listeCases_var MyCases = myHomardGen->GetAllCasesName();
+ ADAPT::listeCases_var MyCases = myAdaptGen->GetAllCasesName();
int num = 0; QString aCaseName="";
while (aCaseName=="" )
{
Q_OBJECT
public:
- MonMeshInfo( QWidget* parent, bool modal, ADAPT::ADAPT_Gen_var myHomardGen);
+ MonMeshInfo( QWidget* parent, bool modal, ADAPT::ADAPT_Gen_var myAdaptGen);
~MonMeshInfo();
protected :
int _Quality;
ADAPT::HOMARD_Cas_var aCase ;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
virtual void InitConnect();
virtual void SetNewCaseName();
* Sets attributes to default values
*/
// -----------------------------------------------------------------------------------------
-MonPursueIteration::MonPursueIteration ( bool modal, ADAPT::ADAPT_Gen_var myHomardGen0 )
+MonPursueIteration::MonPursueIteration ( bool modal, ADAPT::ADAPT_Gen_var myAdaptGen0 )
:
Ui_PursueIteration(),
_aCaseName(""), _aDirName(""), _aDirNameStart("")
{
MESSAGE("Debut du constructeur de MonPursueIteration");
- myHomardGen=ADAPT::ADAPT_Gen::_duplicate(myHomardGen0);
+ myAdaptGen=ADAPT::ADAPT_Gen::_duplicate(myAdaptGen0);
setupUi(this);
setModal(modal);
return false;
}
if ( aDirName != _aDirName)
- { QString CaseNameDir = myHomardGen->VerifieDir( aDirName.toStdString().c_str()) ;
+ { QString CaseNameDir = myAdaptGen->VerifieDir( aDirName.toStdString().c_str()) ;
if ( CaseNameDir != "" )
{
QString texte ;
try
{
MESSAGE("Poursuite a partir d'une iteration");
- aCase = myHomardGen->CreateCaseFromIteration( \
+ aCase = myAdaptGen->CreateCaseFromIteration( \
CORBA::string_dup(_aCaseName.toStdString().c_str()), \
CORBA::string_dup(_aDirNameStart.toStdString().c_str()) );
}
try
{
MESSAGE("Poursuite a partir de la derniere iteration dans un cas");
- aCase = myHomardGen->CreateCaseFromCaseLastIteration( \
+ aCase = myAdaptGen->CreateCaseFromCaseLastIteration( \
CORBA::string_dup(_aCaseName.toStdString().c_str()), \
CORBA::string_dup(_aDirNameStart.toStdString().c_str()) );
}
try
{
MESSAGE("Poursuite a partir d'une iteration dans un cas");
- aCase = myHomardGen->CreateCaseFromCaseIteration( \
+ aCase = myAdaptGen->CreateCaseFromCaseIteration( \
CORBA::string_dup(_aCaseName.toStdString().c_str()), \
CORBA::string_dup(_aDirNameStart.toStdString().c_str()), \
Number );
void MonPursueIteration::PushOnHelp()
//-------------------------------
{
- std::string LanguageShort = myHomardGen->GetLanguageShort();
+ std::string LanguageShort = myAdaptGen->GetLanguageShort();
HOMARD_UTILS::PushOnHelp(QString("gui_create_case.html"), QString(""), QString(LanguageShort.c_str()));
}
// ---------------------------------
void MonPursueIteration::SetNewCaseName()
// ------------------------------
{
- ADAPT::listeCases_var MyCases = myHomardGen->GetAllCasesName();
+ ADAPT::listeCases_var MyCases = myAdaptGen->GetAllCasesName();
int num = 0; QString aCaseName="";
while (aCaseName=="" )
{
Q_OBJECT
public:
- MonPursueIteration( bool modal, ADAPT::ADAPT_Gen_var myHomardGen );
+ MonPursueIteration( bool modal, ADAPT::ADAPT_Gen_var myAdaptGen );
virtual ~MonPursueIteration();
protected :
int _Type ;
ADAPT::HOMARD_Cas_var aCase ;
- ADAPT::ADAPT_Gen_var myHomardGen;
+ ADAPT::ADAPT_Gen_var myAdaptGen;
virtual void InitConnect();
virtual void SetNewCaseName();
case 8011: // Creation d un Cas
{
INFOS("Creation d'un Cas");
-// MonCreateCase *aDlg = new MonCreateCase( true,
-// ADAPT::ADAPT_Gen::_duplicate(homardGen) ) ;
-// aDlg->show();
+ MonCreateCase *aDlg = new MonCreateCase( true,
+ ADAPT::ADAPT_Gen::_duplicate(homardGen) ) ;
+ aDlg->show();
break;
}