]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
INT PAL 0052666: Presentation disappears from the 3D Viewer after that as an operatio...
authorimn <imn@opencascade.com>
Wed, 8 Apr 2015 09:33:26 +0000 (12:33 +0300)
committerimn <imn@opencascade.com>
Wed, 8 Apr 2015 09:33:26 +0000 (12:33 +0300)
src/EntityGUI/EntityGUI_FieldDlg.cxx
src/GenerationGUI/GenerationGUI_ThicknessDlg.cxx
src/GenerationGUI/GenerationGUI_ThicknessDlg.h
src/OperationGUI/OperationGUI_TransferDataDlg.cxx

index 22806e4163a592090d20b7a88a3fd145c54dad2c..6e887f941eca2fbbf3a3d11d8de88ea8fb4ca584 100644 (file)
@@ -1990,7 +1990,7 @@ bool EntityGUI_FieldDlg::execute()
 QList<GEOM::GeomObjPtr> EntityGUI_FieldDlg::getSourceObjects()
 {
   QList<GEOM::GeomObjPtr> res;
-  GEOM::GeomObjPtr aGeomObjPtr(myShape);
+  GEOM::GeomObjPtr aGeomObjPtr(myField->GetShape());
   res << aGeomObjPtr;
   return res;
 }
index 650024b3d1a2004984b234ad1147cd4fd001a464..3c6bd003e9ff0aed6068aece53580ea29cc94de6 100644 (file)
@@ -467,3 +467,14 @@ bool GenerationGUI_ThicknessDlg::execute (ObjectList& objects)
 
   return true;
 }
+
+//=================================================================================
+// function : getSourceObjects
+// purpose  : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> GenerationGUI_ThicknessDlg::getSourceObjects()
+{
+  QList<GEOM::GeomObjPtr> res(myFaces);
+  res << myObject;
+  return res;
+}
index b05d9f51baef29550fc611bfaa37bf1c86040fb8..3473760980833fadddaa0fea6970cfee7ed719fa 100644 (file)
@@ -49,7 +49,8 @@ protected:
   // redefined from GEOMBase_Helper
   virtual GEOM::GEOM_IOperations_ptr createOperation();
   virtual bool                       isValid( QString& );
-  virtual bool                       execute( ObjectList& );    
+  virtual bool                       execute( ObjectList& );
+  virtual QList<GEOM::GeomObjPtr>    getSourceObjects();
 
 private:
   void                               Init();
index 576b367737e2b81dd1601a38faf7b2c692362814..6420e28c6c7aaf49ef32686a01b3fd05bc823e9c 100755 (executable)
@@ -337,6 +337,6 @@ bool OperationGUI_TransferDataDlg::execute (ObjectList& objects)
 QList<GEOM::GeomObjPtr> OperationGUI_TransferDataDlg::getSourceObjects()
 {
   QList<GEOM::GeomObjPtr> res;
-  res << myObject1 << myObject2;
+  res << myObject1;
   return res;
 }