Salome HOME
Fixes and unit-tests basing on the manual tests
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintLength.h
index 50e9ebb9b5c10654b0b39d3c11b89a552cd20ad4..13666de04bf6efd46050783c41435192782e5373 100644 (file)
@@ -49,6 +49,7 @@ class SketchPlugin_ConstraintLength : public SketchPlugin_ConstraintBase
     static const std::string MY_CONSTRAINT_LENGTH_ID("SketchConstraintLength");
     return MY_CONSTRAINT_LENGTH_ID;
   }
+
   /// \brief Returns the kind of a feature
   SKETCHPLUGIN_EXPORT virtual const std::string& getKind()
   {
@@ -56,6 +57,13 @@ class SketchPlugin_ConstraintLength : public SketchPlugin_ConstraintBase
     return MY_KIND;
   }
 
+  /// attribute name of dimension location type
+  inline static const std::string& LOCATION_TYPE_ID()
+  {
+    static const std::string MY_LOCATION_TYPE_ID("LocationType");
+    return MY_LOCATION_TYPE_ID;
+  }
+
   /// \brief Creates a new part document if needed
   SKETCHPLUGIN_EXPORT virtual void execute();