Salome HOME
Issue #2120 - Crash when creating an arc passing through the arc connected to both...
[modules/shaper.git] / src / PartSet / PartSet_ExternalObjectsMgr.h
index 4cc3696da8008aa11a2dc74ba36ef840544d4ccb..f403f88a4589b875034f3efd4e3c537a0087a3d3 100755 (executable)
@@ -19,6 +19,7 @@
 #include <string>
 
 class ModuleBase_IWorkshop;
+class ModuleBase_ViewerPrs;
 class XGUI_Workshop;
 
 /**
@@ -70,6 +71,17 @@ class PARTSET_EXPORT PartSet_ExternalObjectsMgr
                       ModuleBase_IWorkshop* theWorkshop,
                       const bool theTemporary);
 
+  /// Return an object and geom shape by the viewer presentation
+  /// \param thePrs a selection
+  /// \param theObject an output object
+  /// \param theShape a shape of the selection
+  virtual void getGeomSelection(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs,
+                                ObjectPtr& theObject,
+                                GeomShapePtr& theShape,
+                                ModuleBase_IWorkshop* theWorkshop,
+                                const CompositeFeaturePtr& theSketch,
+                                const bool isInValidate);
+
 protected:
   /// Delete from the document the feature of the object. It deletes all objects, which refers to
   /// the deleted one. The parameter feature is ignored even it refer to the deleted object.