1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PartSet_WidgetShapeSelector.h
4 // Created: 27 Nov 2014
5 // Author: Vitaly Smetannikov
8 #ifndef PartSet_WidgetConstraintShapeSelector_H
9 #define PartSet_WidgetConstraintShapeSelector_H
13 #include <PartSet_WidgetShapeSelector.h>
15 #include <ModelAPI_CompositeFeature.h>
20 * Customosation of PartSet_WidgetShapeSelector in order to provide
21 * working with constraints.
23 class PARTSET_EXPORT PartSet_WidgetConstraintShapeSelector: public PartSet_WidgetShapeSelector
28 /// \param theParent the parent object
29 /// \param theWorkshop instance of workshop interface
30 /// \param theData the widget configuation. The attribute of the model widget is obtained from
31 /// \param theParentId is Id of a parent of the current attribute
32 PartSet_WidgetConstraintShapeSelector(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
33 const Config_WidgetAPI* theData, const std::string& theParentId)
34 : PartSet_WidgetShapeSelector(theParent, theWorkshop, theData, theParentId) {}
36 virtual ~PartSet_WidgetConstraintShapeSelector() {}
39 /// \param theSketch a sketcher object
40 //void setSketcher(CompositeFeaturePtr theSketch) { mySketch = theSketch; }
42 /// Retrurns installed sketcher
43 //CompositeFeaturePtr sketch() const { return mySketch; }
46 /// Store the values to the model attribute of the widget. It casts this attribute to
47 /// the specific type and set the given values
48 /// \param theSelectedObject an object
49 /// \param theShape a selected shape, which is used in the selection attribute
50 virtual bool setObject(ObjectPtr theSelectedObject, GeomShapePtr theShape);
53 /// Pointer to a sketch
54 //CompositeFeaturePtr mySketch;