]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1664: In the Sketcher, add the function Split a segment. Widget of Split featu...
authornds <nds@opencascade.com>
Wed, 27 Jul 2016 15:28:07 +0000 (18:28 +0300)
committernds <nds@opencascade.com>
Wed, 27 Jul 2016 15:28:07 +0000 (18:28 +0300)
src/PartSet/PartSet_WidgetSubShapeSelector.cpp
src/PartSet/PartSet_WidgetSubShapeSelector.h

index 2057b467c2ee848e2c79303e6af01c9e0f61753c..46c20aceac60ed3d84ba0ecfaa805ece786dc4d7 100755 (executable)
@@ -122,6 +122,13 @@ void PartSet_WidgetSubShapeSelector::getGeomSelection(const ModuleBase_ViewerPrs
     theObject = myCurrentSubShape->object();
 }
 
+//********************************************************************
+QList<ModuleBase_ViewerPrsPtr> PartSet_WidgetSubShapeSelector::getAttributeSelection() const
+{
+  return QList<ModuleBase_ViewerPrsPtr>();
+}
+
+
 //********************************************************************
 bool PartSet_WidgetSubShapeSelector::setSelection(
                                           QList<std::shared_ptr<ModuleBase_ViewerPrs>>& theValues,
index 2831dfdb6d9217325223171099beac204a3d1358..b93f4d0742a91d016c9eaca0c681aef9582b690a 100644 (file)
@@ -100,6 +100,11 @@ protected:
                                 ObjectPtr& theObject,
                                 GeomShapePtr& theShape);
 
+  /// Return the attribute values wrapped in a list of viewer presentations
+  /// \return a list of viewer presentations, which contains an attribute result and
+  /// a shape. If the attribute do not uses the shape, it is empty
+  virtual QList<std::shared_ptr<ModuleBase_ViewerPrs>> getAttributeSelection() const;
+
 protected:
   /// The methiod called when widget is activated
   virtual void activateCustom();