1 // File: ModuleBase_WidgetValueFeature.h
2 // Created: 25 Apr 2014
3 // Author: Natalia ERMOLAEVA
5 #ifndef ModuleBase_WidgetValueFeature_H
6 #define ModuleBase_WidgetValueFeature_H
8 #include <ModuleBase.h>
9 #include <ModuleBase_WidgetValue.h>
11 #include <ModelAPI_Result.h>
13 #include <boost/shared_ptr.hpp>
17 /**\class ModuleBase_WidgetValueFeature
19 * \brief Custom widget value. The widget contains a feature and 2D point.
21 class MODULEBASE_EXPORT ModuleBase_WidgetValueFeature : public ModuleBase_WidgetValue
25 ModuleBase_WidgetValueFeature();
27 virtual ~ModuleBase_WidgetValueFeature();
29 /// Fill the widget values by given point
30 /// \param thePoint the point
31 void setObject(const ObjectPtr& theFeature);
33 /// Returns the widget values by given point
34 /// \return theFeature the current feature
35 const ObjectPtr& object() const;
37 /// Fill the widget values by given point
38 /// \param thePoint the point
39 void setPoint(const boost::shared_ptr<GeomAPI_Pnt2d>& thePoint);
41 /// Returns the widget point
42 /// \return the current point
43 const boost::shared_ptr<GeomAPI_Pnt2d>& point() const;
47 boost::shared_ptr<GeomAPI_Pnt2d> myPoint;