X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMGUI%2FGeometryGUI_Swig.cxx;h=eac49114490bc7e845aee8481c0c4b9c54a66b54;hb=144524d7be0c8389b25a57b7fcf831f0724e9e22;hp=e639b789e789a4b2622cdff25b5a6dcbdbd75943;hpb=629a486f1953fa7a23eec6869665c07e578cf152;p=modules%2Fgeom.git diff --git a/src/GEOMGUI/GeometryGUI_Swig.cxx b/src/GEOMGUI/GeometryGUI_Swig.cxx index e639b789e..eac491144 100644 --- a/src/GEOMGUI/GeometryGUI_Swig.cxx +++ b/src/GEOMGUI/GeometryGUI_Swig.cxx @@ -135,8 +135,6 @@ void GEOM_Swig::createAndDisplayGO(const char* Entry) _PTR(SComponent) father = aStudy->FindComponent("GEOM"); aStudyBuilder->DefineComponentInstance( father, SalomeApp_Application::orb()->object_to_string(Geom) ); father->ComponentIOR(aFatherIOR); - - _PTR(SObject) fatherSF; _PTR(SObject) obj = aStudy->FindObjectID(Entry); _PTR(GenericAttribute) anAttr; @@ -155,13 +153,13 @@ void GEOM_Swig::createAndDisplayGO(const char* Entry) _PTR(AttributeName) aName ( anAttr ); string aNameValue = aName->Value(); // open transaction - SUIT_Operation* op = new SalomeApp_ImportOperation( app ); + /*jfa for bug IPAL9384 3)c):SUIT_Operation* op = new SalomeApp_ImportOperation( app ); op->start(); _PTR(SObject) newObj1 = aStudyBuilder->NewObject(father); aStudyBuilder->Addreference(newObj1, obj); // commit transaction - op->commit(); + op->commit();*/ Handle(GEOM_InteractiveObject) anIO = new GEOM_InteractiveObject(const_cast(anIORValue.c_str()), const_cast(aFatherIOR.c_str()), @@ -261,6 +259,7 @@ int GEOM_Swig::getIndexTopology(const char* SubIOR, const char* IOR) Exp.Next(); } } + return -1; } @@ -480,3 +479,9 @@ void GEOM_Swig::setTransparency(const char* theEntry, float transp) ProcessVoidEvent(new TEvent(app,anIO,transp)); } + + +bool GEOM_Swig::initGeomGen() +{ + return GeometryGUI::InitGeomGen(); +}