Salome HOME
Copyright update 2020
[plugins/ghs3dprlplugin.git] / src / GHS3DPRLPlugin / GHS3DPRLPlugin_Hypothesis_i.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 06ed854..8a3debd
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 //=============================================================================
 GHS3DPRLPlugin_Hypothesis_i::
 GHS3DPRLPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
-                             int                     theStudyId,
                              ::SMESH_Gen*            theGenImpl)
   : SALOME::GenericObj_i( thePOA ),
     SMESH_Hypothesis_i( thePOA )
 {
   MESSAGE( "GHS3DPRLPlugin_Hypothesis_i::GHS3DPRLPlugin_Hypothesis_i" );
   myBaseImpl = new ::GHS3DPRLPlugin_Hypothesis (theGenImpl->GetANewId(),
-                                                theStudyId,
                                                 theGenImpl);
 }
 
@@ -67,7 +65,10 @@ GHS3DPRLPlugin_Hypothesis_i::~GHS3DPRLPlugin_Hypothesis_i()
  *  GHS3DPRLPlugin_Hypothesis_i::SetNbPart
  *  GHS3DPRLPlugin_Hypothesis_i::SetKeepFiles
  *  GHS3DPRLPlugin_Hypothesis_i::SetBackground
- *  GHS3DPRLPlugin_Hypothesis_i::SetToMeshHoles
+ *  GHS3DPRLPlugin_Hypothesis_i::SetMultithread
+ *  GHS3DPRLPlugin_Hypothesis_i::SetGradation
+ *  GHS3DPRLPlugin_Hypothesis_i::SetMinSize
+ *  GHS3DPRLPlugin_Hypothesis_i::SetMaxSize
  */
 //=============================================================================
 
@@ -103,21 +104,60 @@ void GHS3DPRLPlugin_Hypothesis_i::SetBackground (CORBA::Boolean theValue)
   SMESH::TPythonDump() << _this() << ".SetBackground( " << theValue << " )";
 }
 
-void GHS3DPRLPlugin_Hypothesis_i::SetToMeshHoles (CORBA::Boolean theValue)
+void GHS3DPRLPlugin_Hypothesis_i::SetMultithread (CORBA::Boolean theValue)
 {
-  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetToMeshHoles");
+  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetMultithread");
   ASSERT(myBaseImpl);
-  this->GetImpl()->SetToMeshHoles(theValue);
-  SMESH::TPythonDump() << _this() << ".SetToMeshHoles( " << theValue << " )";
+  this->GetImpl()->SetMultithread(theValue);
+  SMESH::TPythonDump() << _this() << ".SetMultithread( " << theValue << " )";
 }
 
+//void GHS3DPRLPlugin_Hypothesis_i::SetToMergeSubdomains (CORBA::Boolean theValue)
+//{
+//  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetToMergeSubdomains");
+//  ASSERT(myBaseImpl);
+//  this->GetImpl()->SetToMergeSubdomains(theValue);
+//  SMESH::TPythonDump() << _this() << ".SetToMergeSubdomains( " << theValue << " )";
+//}
+
+void GHS3DPRLPlugin_Hypothesis_i::SetGradation (CORBA::Float theValue)
+{
+  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetGradation");
+  ASSERT(myBaseImpl);
+  this->GetImpl()->SetGradation(theValue);
+  SMESH::TPythonDump() << _this() << ".SetGradation( " << theValue << " )";
+}
+
+void GHS3DPRLPlugin_Hypothesis_i::SetMinSize (CORBA::Float theValue)
+{
+  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetMinSize");
+  ASSERT(myBaseImpl);
+  this->GetImpl()->SetMinSize(theValue);
+  SMESH::TPythonDump() << _this() << ".SetMinSize( " << theValue << " )";
+}
+
+void GHS3DPRLPlugin_Hypothesis_i::SetMaxSize (CORBA::Float theValue)
+{
+  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::SetMaxSize");
+  ASSERT(myBaseImpl);
+  this->GetImpl()->SetMaxSize(theValue);
+  SMESH::TPythonDump() << _this() << ".SetMaxSize( " << theValue << " )";
+}
+
+
+
+
+
 //=============================================================================
 /*!
  *  GHS3DPRLPlugin_Hypothesis_i::GetMEDName
  *  GHS3DPRLPlugin_Hypothesis_i::GetNbPart
  *  GHS3DPRLPlugin_Hypothesis_i::GetKeepFiles
  *  GHS3DPRLPlugin_Hypothesis_i::GetBackground
- *  GHS3DPRLPlugin_Hypothesis_i::GetToMeshHoles
+ *  GHS3DPRLPlugin_Hypothesis_i::GetMultithread
+ *  GHS3DPRLPlugin_Hypothesis_i::GetGradation
+ *  GHS3DPRLPlugin_Hypothesis_i::GetMinSize
+ *  GHS3DPRLPlugin_Hypothesis_i::GetMaxSize
  */
 //=============================================================================
 
@@ -126,7 +166,7 @@ char * GHS3DPRLPlugin_Hypothesis_i::GetMEDName()
   MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMEDName");
   ASSERT(myBaseImpl);
   CORBA::String_var c_s =
-    CORBA::string_dup(this->GetImpl()->GetMEDName().c_str());
+  CORBA::string_dup(this->GetImpl()->GetMEDName().c_str());
   return c_s._retn();
 }
 
@@ -151,11 +191,53 @@ CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetBackground()
   return this->GetImpl()->GetBackground();
 }
 
-CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetToMeshHoles()
+CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetMultithread()
+{
+  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMultithread");
+  ASSERT(myBaseImpl);
+  return this->GetImpl()->GetMultithread();
+}
+
+//CORBA::Boolean GHS3DPRLPlugin_Hypothesis_i::GetToMergeSubdomains()
+//{
+//  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetToMergeSubdomains");
+//  ASSERT(myBaseImpl);
+//  return this->GetImpl()->GetToMergeSubdomains();
+//}
+
+CORBA::Float GHS3DPRLPlugin_Hypothesis_i::GetGradation()
+{
+  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetGradation");
+  ASSERT(myBaseImpl);
+  return this->GetImpl()->GetGradation();
+}
+
+CORBA::Float GHS3DPRLPlugin_Hypothesis_i::GetMinSize()
+{
+  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMinSize");
+  ASSERT(myBaseImpl);
+  return this->GetImpl()->GetMinSize();
+}
+
+CORBA::Float GHS3DPRLPlugin_Hypothesis_i::GetMaxSize()
 {
-  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetToMeshHoles");
+  MESSAGE("GHS3DPRLPlugin_Hypothesis_i::GetMaxSize");
   ASSERT(myBaseImpl);
-  return this->GetImpl()->GetToMeshHoles();
+  return this->GetImpl()->GetMaxSize();
+}
+
+void GHS3DPRLPlugin_Hypothesis_i::SetAdvancedOption(const char* theOptAndVals )
+{
+  if ( theOptAndVals && GetImpl()->GetAdvancedOption() != theOptAndVals )
+  {
+    GetImpl()->SetAdvancedOption( theOptAndVals );
+    SMESH::TPythonDump() << _this() << ".SetAdvancedOption( '" << theOptAndVals << "' )";
+  }
+}
+
+char* GHS3DPRLPlugin_Hypothesis_i::GetAdvancedOption()
+{
+  return CORBA::string_dup( GetImpl()->GetAdvancedOption().c_str() );
 }
 
 //=============================================================================