#include "PartSet.h"
-#include <PartSet_WidgetShapeSelector.h>
+#include <ModuleBase_WidgetShapeSelector.h>
#include <PartSet_MouseProcessor.h>
+#include <ModelAPI_CompositeFeature.h>
+
#include <QObject>
#include <set>
* by mouse move over shape in the viewer. Split of the object is performed by
* coincident points to the object. Segment between nearest coincidence is highlighted
*/
-class PARTSET_EXPORT PartSet_WidgetSubShapeSelector: public PartSet_WidgetShapeSelector,
+class PARTSET_EXPORT PartSet_WidgetSubShapeSelector: public ModuleBase_WidgetShapeSelector,
public PartSet_MouseProcessor
{
Q_OBJECT
virtual ~PartSet_WidgetSubShapeSelector();
+ /// Set sketcher
+ /// \param theSketch a sketcher object
+ void setSketcher(CompositeFeaturePtr theSketch) { mySketch = theSketch; }
+
+ /// Retrurns installed sketcher
+ CompositeFeaturePtr sketch() const { return mySketch; }
+
/// The methiod called when widget is deactivated
virtual void deactivate();
protected:
std::shared_ptr<ModuleBase_ViewerPrs> myCurrentSubShape;
std::map<ObjectPtr, std::set<GeomShapePtr> > myCashedShapes;
+
+ /// Pointer to a sketch
+ CompositeFeaturePtr mySketch;
};
#endif
\ No newline at end of file