]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_WidgetShapeSelector.h
Salome HOME
Preselection using in operations: using of external objects correction.
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetShapeSelector.h
index 86494eb5d3672dc36b7eec86c10f7b353c0e7bad..b015a0bf3f2ad1ca572c70b18508b57d6d10dd12 100644 (file)
@@ -136,7 +136,7 @@ protected:
   /// \param theSelectedObject an object
   /// \param theShape a selected shape, which is used in the selection attribute
   /// \return true if it is succeed
-  virtual bool setObject(ObjectPtr theSelectedObject, GeomShapePtr theShape);
+  virtual void setObject(ObjectPtr theSelectedObject, GeomShapePtr theShape);
 
   /// Get the shape from the attribute if the attribute contains a shape, e.g. selection attribute
   /// \return a shape
@@ -147,6 +147,14 @@ protected:
   /// a shape. If the attribute do not uses the shape, it is empty
   QList<ModuleBase_ViewerPrs> getAttributeSelection() const;
 
+  /// 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 ModuleBase_ViewerPrs& thePrs,
+                                ObjectPtr& theObject,
+                                GeomShapePtr& theShape);
+
   //----------- Class members -------------
   protected:
   /// Label of the widget