QList<GEOM::GeomObjPtr> EntityGUI_FieldDlg::getSourceObjects()
{
QList<GEOM::GeomObjPtr> res;
- GEOM::GeomObjPtr aGeomObjPtr(myShape);
+ GEOM::GeomObjPtr aGeomObjPtr(myField->GetShape());
res << aGeomObjPtr;
return res;
}
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;
+}
// 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();
QList<GEOM::GeomObjPtr> OperationGUI_TransferDataDlg::getSourceObjects()
{
QList<GEOM::GeomObjPtr> res;
- res << myObject1 << myObject2;
+ res << myObject1;
return res;
}