X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Point.h;h=4c774715757edc8463ee320102c7699d01f70ed7;hb=301fde7eeae07fdae18ebd02f93e09d1a182e38d;hp=50eb4591db845e1524e7e03cfec4c638a9a9416c;hpb=9e869ede4d8c56262bb20534543c2bf56cd6a91b;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Point.h b/src/SketchPlugin/SketchPlugin_Point.h index 50eb4591d..4c7747157 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 @@ -7,14 +9,14 @@ #include "SketchPlugin.h" #include -#include "SketchPlugin_Feature.h" +#include "SketchPlugin_SketchEntity.h" #include /**\class SketchPlugin_Point - * \ingroup DataModel + * \ingroup Plugins * \brief Feature for creation of a new point. */ -class SketchPlugin_Point : public SketchPlugin_Feature +class SketchPlugin_Point : public SketchPlugin_SketchEntity { public: /// Point feature kind @@ -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 @@ -60,6 +56,9 @@ class SketchPlugin_Point : public SketchPlugin_Feature /// \param thePoint the point 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(); };