X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Point.h;h=c855dd32a95284c1d72cbbfa92213b7f2436d4d6;hb=c685af45eca598fce4a5d40837f6b7d203c60976;hp=48415b18ccf83a6b3592aa9c226b6b83c6f8dcb9;hpb=2b39b678daa95b9a53f7ebb40c9f5c94efecdff6;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Point.h b/src/SketchPlugin/SketchPlugin_Point.h index 48415b18c..c855dd32a 100644 --- a/src/SketchPlugin/SketchPlugin_Point.h +++ b/src/SketchPlugin/SketchPlugin_Point.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> + // File: SketchPlugin_Point.h // Created: 07 May 2014 // Author: Artem ZHIDKOV @@ -45,12 +47,6 @@ class SketchPlugin_Point : public SketchPlugin_Feature /// Request for initialization of data model of the feature: adding all attributes SKETCHPLUGIN_EXPORT virtual void initAttributes(); - /// Returns the AIS preview - virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious) - { - return simpleAISObject(firstResult(), thePrevious); - } - /// Moves the feature /// \param theDeltaX the delta for X coordinate is moved /// \param theDeltaY the delta for Y coordinate is moved @@ -58,7 +54,10 @@ class SketchPlugin_Point : public SketchPlugin_Feature /// Return the distance between the feature and the point /// \param thePoint the point - virtual double distanceToPoint(const boost::shared_ptr& thePoint); + virtual double distanceToPoint(const std::shared_ptr& thePoint); + + /// Called on change of any argument-attribute of this object: for external point + SKETCHPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID); /// Use plugin manager for features creation SketchPlugin_Point();