Salome HOME
Using shape selected for sketcher
[modules/shaper.git] / src / SketchSolver / SketchSolver_ConstraintRigid.h
index 93de5836226da0e16e3e5750b81056ae415c7aa9..78b47fedd1f126025f9fa14934c4324535737e52 100644 (file)
@@ -48,6 +48,12 @@ protected:
   ///        E.g. the distance between line and point may be signed.
   virtual void adjustConstraint();
 
+  /// \brief Fixed feature basing on its type
+  void fixFeature();
+
+  /// \brief Fix given point
+  void fixPoint(const Slvs_hEntity& thePointID);
+
 private:
   /// \brief Fixing line position (start and end points)
   void fixLine(const Slvs_Entity& theLine);
@@ -58,17 +64,14 @@ private:
   /// There will be fixed start and end points and the radius of the arc.
   void fixArc(const Slvs_Entity& theArc);
 
-  /// \brief Fix given point
-  void fixPoint(const Slvs_hEntity& thePointID);
-
   /// \brief Verifies the entity is used in any equal constraint
   /// \param[in]  theEntity entity to be found
   /// \param[out] theEqual  constraint, which uses the entity
   /// \return \c true, if the Equal constrait is found
   bool isUsedInEqual(const Slvs_Entity& theEntity, Slvs_Constraint& theEqual) const;
 
-  /// \brief Verifies the entity is already fixed
-  bool isFixed(const Slvs_Entity& theEntity) const;
+  /// \brief Check the entity is horizontal of vertical
+  bool isAxisParallel(const Slvs_Entity& theEntity) const;
 
 protected:
   FeaturePtr myBaseFeature; ///< fixed feature (when it is set, myBaseConstraint should be NULL)