Salome HOME
Revert "First phase of SketchSolver refactoring"
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Line.h
index 05d94cc65e59bd582bd6290920a1d7820d995e4a..eaa3330f3737ee5dbfdb63ee257a74c4e94b063d 100644 (file)
@@ -12,6 +12,8 @@
 #include <SketchPlugin_Sketch.h>
 #include <list>
 
+class GeomAPI_Pnt2d;
+
 /**\class SketchPlugin_Line
  * \ingroup Plugins
  * \brief Feature for creation of the new part in PartSet.
@@ -39,11 +41,7 @@ class SketchPlugin_Line : public SketchPlugin_SketchEntity
   }
 
   /// Returns the kind of a feature
-  SKETCHPLUGIN_EXPORT virtual const std::string& getKind()
-  {
-    static std::string MY_KIND = SketchPlugin_Line::ID();
-    return MY_KIND;
-  }
+  SKETCHPLUGIN_EXPORT virtual const std::string& getKind();
 
   /// Returns true is sketch element is under the rigid constraint
   SKETCHPLUGIN_EXPORT virtual bool isFixed();
@@ -61,7 +59,7 @@ class SketchPlugin_Line : public SketchPlugin_SketchEntity
 
   /// Return the distance between the feature and the point
   /// \param thePoint the point
-  virtual double distanceToPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
+  double distanceToPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
 
   /// Called on change of any argument-attribute of this object
   SKETCHPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID);