- /// Returns true if selected object corresponds to requested Object type
- /// Thid method is used in any selection mode
- /// \param theObject an object
- virtual bool acceptObjectType(const ObjectPtr theObject) const;
-
-
- // Set the given object as a value of the widget
- /// \param theObj an object
- /// \param theShape a shape
- void setObject(ObjectPtr theObj, std::shared_ptr<GeomAPI_Shape> theShape = std::shared_ptr<GeomAPI_Shape>());
-
- /// Check the selected with validators if installed
- /// \param theObj the object for checking
- /// \param theShape the shape for checking
- virtual bool isValid(ObjectPtr theObj, std::shared_ptr<GeomAPI_Shape> theShape);
+ // Get the shape from the attribute it the attribute contain a shape, e.g. selection attribute
+ /// \return a shape
+ GeomShapePtr getShape() const;