GEOM::GEOM_Object_var HexoticPluginGUI_HypothesisCreator::entryToObject( std::string entry) const
{
SMESH_Gen_i* smeshGen_i = SMESH_Gen_i::GetSMESHGen();
- SALOMEDS::Study_var myStudy = smeshGen_i->GetCurrentStudy();
+ SALOMEDS::Study_var myStudy = smeshGen_i->GetStudy();
GEOM::GEOM_Object_var aGeomObj;
SALOMEDS::SObject_var aSObj = myStudy->FindObjectID( entry.c_str() );
if (!aSObj->_is_nil()) {
*/
//=============================================================================
-HexoticPlugin_Hexotic::HexoticPlugin_Hexotic(int hypId, int studyId, SMESH_Gen* gen)
- : SMESH_3D_Algo(hypId, studyId, gen)
+HexoticPlugin_Hexotic::HexoticPlugin_Hexotic(int hypId, SMESH_Gen* gen)
+ : SMESH_3D_Algo(hypId, gen)
{
MESSAGE("HexoticPlugin_Hexotic::HexoticPlugin_Hexotic");
_name = "MG-Hexa";
// Copy of what is done in BLSURFPLugin TODO : share the code
smeshGen_i = SMESH_Gen_i::GetSMESHGen();
- CORBA::Object_var anObject = smeshGen_i->GetNS()->Resolve("/myStudyManager");
- SALOMEDS::StudyManager_var aStudyMgr = SALOMEDS::StudyManager::_narrow(anObject);
+ CORBA::Object_var anObject = smeshGen_i->GetNS()->Resolve("/Study");
- myStudy = NULL;
- myStudy = aStudyMgr->GetStudyByID(_studyId);
+ myStudy = SALOMEDS::Study::_narrow(anObject);;
if ( !myStudy->_is_nil() )
- MESSAGE("myStudy->StudyId() = " << myStudy->StudyId());
+ MESSAGE("myStudy not empty");
}
//=============================================================================
class HEXOTICPLUGIN_EXPORT HexoticPlugin_Hexotic: public SMESH_3D_Algo
{
public:
- HexoticPlugin_Hexotic(int hypId, int studyId, SMESH_Gen* gen);
+ HexoticPlugin_Hexotic(int hypId, SMESH_Gen* gen);
virtual ~HexoticPlugin_Hexotic();
#ifdef WITH_BLSURFPLUGIN
//=============================================================================
HexoticPlugin_Hexotic_i::HexoticPlugin_Hexotic_i( PortableServer::POA_ptr thePOA,
- int theStudyId,
::SMESH_Gen* theGenImpl )
: SALOME::GenericObj_i( thePOA ),
SMESH_Hypothesis_i( thePOA ),
{
MESSAGE( "HexoticPlugin_Hexotic_i::HexoticPlugin_Hexotic_i" );
myBaseImpl = new ::HexoticPlugin_Hexotic( theGenImpl->GetANewId(),
- theStudyId,
theGenImpl );
}
public:
// Constructor
HexoticPlugin_Hexotic_i (PortableServer::POA_ptr thePOA,
- int theStudyId,
::SMESH_Gen* theGenImpl );
// Destructor
virtual ~HexoticPlugin_Hexotic_i();
*
*/
//=============================================================================
-HexoticPlugin_Hypothesis::HexoticPlugin_Hypothesis (int hypId, int studyId,
- SMESH_Gen* gen)
- : SMESH_Hypothesis(hypId, studyId, gen),
+HexoticPlugin_Hypothesis::HexoticPlugin_Hypothesis (int hypId, SMESH_Gen* gen)
+ : SMESH_Hypothesis(hypId, gen),
_hexesMinLevel( GetDefaultHexesMinLevel() ),
_hexesMaxLevel( GetDefaultHexesMaxLevel() ),
_minSize( GetDefaultMinSize() ),
{
public:
- HexoticPlugin_Hypothesis(int hypId, int studyId, SMESH_Gen* gen);
+ HexoticPlugin_Hypothesis(int hypId, SMESH_Gen* gen);
static const char* GetHypType() { return "MG-Hexa Parameters"; }
//=============================================================================
HexoticPlugin_Hypothesis_i::
HexoticPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
- int theStudyId,
- ::SMESH_Gen* theGenImpl)
+ ::SMESH_Gen* theGenImpl)
: SALOME::GenericObj_i( thePOA ),
SMESH_Hypothesis_i( thePOA )
{
MESSAGE( "HexoticPlugin_Hypothesis_i::HexoticPlugin_Hypothesis_i" );
myBaseImpl = new ::HexoticPlugin_Hypothesis (theGenImpl->GetANewId(),
- theStudyId,
- theGenImpl);
+ theGenImpl);
}
//=============================================================================
public:
// Constructor
HexoticPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
- int theStudyId,
- ::SMESH_Gen* theGenImpl);
+ ::SMESH_Gen* theGenImpl);
// Destructor
virtual ~HexoticPlugin_Hypothesis_i();