#include "PartSet.h"
#include "PartSet_MouseProcessor.h"
-#include <ModuleBase_WidgetDoubleValue.h>
+#include <ModuleBase_WidgetLabelValue.h>
#include <ModelAPI_CompositeFeature.h>
* </point2ddistance>
* \endcode
*/
-class PARTSET_EXPORT PartSet_WidgetPoint2dDistance : public ModuleBase_WidgetDoubleValue,
+class PARTSET_EXPORT PartSet_WidgetPoint2dDistance : public ModuleBase_WidgetLabelValue,
public PartSet_MouseProcessor
{
Q_OBJECT
virtual ~PartSet_WidgetPoint2dDistance();
- /// Checks if the selection presentation is valid in widget
+ /// Checks if the selection presentation is valid in widget
/// \param theValue a selected presentation in the view
/// \return a boolean value
virtual bool isValidSelectionCustom(const std::shared_ptr<ModuleBase_ViewerPrs>& theValue);
/// \return true if the widget current value is reset
virtual bool resetCustom();
- /// Set the second point which defines a value in the widget as
+ /// Set the second point which defines a value in the widget as
/// a distance with a first point defined by feature
void setPoint(FeaturePtr theFeature, const std::shared_ptr<GeomAPI_Pnt2d>& thePnt);
virtual double computeValue(const std::shared_ptr<GeomAPI_Pnt2d>& theFirstPnt,
const std::shared_ptr<GeomAPI_Pnt2d>& theCurrentPnt);
+ /// Saves the internal parameters to the given feature
+ /// \return True in success
+ virtual bool storeValueCustom();
+
protected:
/// A reference to workshop
ModuleBase_IWorkshop* myWorkshop;
-
+
/// A name of the first point
std::string myFirstPntName;