Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetValueFeature.cpp
1 // File:        ModuleBase_WidgetValueFeature.cpp
2 // Created:     25 Apr 2014
3 // Author:      Natalia ERMOLAEVA
4
5 #include <ModuleBase_WidgetValueFeature.h>
6
7 #include <GeomAPI_Pnt2d.h>
8
9 ModuleBase_WidgetValueFeature::ModuleBase_WidgetValueFeature()
10 {
11 }
12
13 ModuleBase_WidgetValueFeature::~ModuleBase_WidgetValueFeature()
14 {
15 }
16
17 void ModuleBase_WidgetValueFeature::setFeature(const FeaturePtr& theFeature)
18 {
19   myFeature = theFeature;
20 }
21
22 const FeaturePtr& ModuleBase_WidgetValueFeature::feature() const
23 {
24   return myFeature;
25 }
26
27 void ModuleBase_WidgetValueFeature::setPoint(const boost::shared_ptr<GeomAPI_Pnt2d>& thePoint)
28 {
29   myPoint = thePoint;
30 }
31
32 const boost::shared_ptr<GeomAPI_Pnt2d>& ModuleBase_WidgetValueFeature::point() const
33 {
34   return myPoint;
35 }