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_WidgetShapeSelector_H
9 #define PartSet_WidgetShapeSelector_H
13 #include <ModuleBase_WidgetShapeSelector.h>
15 #include <ModelAPI_CompositeFeature.h>
17 class PARTSET_EXPORT PartSet_WidgetShapeSelector: public ModuleBase_WidgetShapeSelector
21 PartSet_WidgetShapeSelector(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
22 const Config_WidgetAPI* theData, const std::string& theParentId)
23 : ModuleBase_WidgetShapeSelector(theParent, theWorkshop, theData, theParentId) {}
25 virtual ~PartSet_WidgetShapeSelector() {}
27 /// Saves the internal parameters to the given feature
28 virtual bool storeValue() const;
30 void setSketcher(CompositeFeaturePtr theSketch) { mySketch = theSketch; }
31 CompositeFeaturePtr sketch() const { return mySketch; }
34 CompositeFeaturePtr mySketch;
38 class PARTSET_EXPORT PartSet_WidgetConstraintShapeSelector: public ModuleBase_WidgetShapeSelector
42 PartSet_WidgetConstraintShapeSelector(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
43 const Config_WidgetAPI* theData, const std::string& theParentId)
44 : ModuleBase_WidgetShapeSelector(theParent, theWorkshop, theData, theParentId) {}
46 virtual ~PartSet_WidgetConstraintShapeSelector() {}
48 /// Saves the internal parameters to the given feature
49 virtual bool storeValue() const;
51 void setSketcher(CompositeFeaturePtr theSketch) { mySketch = theSketch; }
52 CompositeFeaturePtr sketch() const { return mySketch; }
55 CompositeFeaturePtr mySketch;