Salome HOME
Delete key regression corrections: in previous implementation sketch entities did...
[modules/shaper.git] / src / SketchSolver / SketchSolver_IConstraintWrapper.h
index 3e43cae1007354ec78850e59a625c492c81602a9..813e8dede94d5ff0638122d9327b17c35f2b7a75 100644 (file)
@@ -61,7 +61,7 @@ public:
   /// \brief Change group for the constraint
   virtual void setGroup(const GroupID& theGroup) = 0;
   /// \brief Return identifier of the group the constraint belongs to
-  virtual const GroupID& group() const = 0;
+  virtual GroupID group() const = 0;
 
   /// \brief Return type of current entity
   virtual SketchSolver_ConstraintType type() const = 0;
@@ -80,6 +80,13 @@ public:
   const double& value() const
   { return myValue; }
 
+  /// \brief Store a boolean flag for full value using
+  void setIsFullValue(const bool& theFullValue)
+  { myIsFullValue = theFullValue; }
+  /// \brief Return a flag of a full value using
+  const bool& isFullValue() const
+  { return myIsFullValue; }
+
   /// \brief Verify the feature is used in the constraint
   virtual bool isUsed(FeaturePtr theFeature) const = 0;
   /// \brief Verify the attribute is used in the constraint
@@ -96,6 +103,7 @@ protected:
   ConstraintPtr               myBaseConstraint;
   std::list<EntityWrapperPtr> myConstrained;
   double                      myValue;
+  bool                        myIsFullValue;
 };
 
 typedef std::shared_ptr<SketchSolver_IConstraintWrapper> ConstraintWrapperPtr;