X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_ConstraintLength.h;h=0899d8b732419e138208af79263d0f7c56abc20c;hb=68a3f0934001109743353b6cc2ac42d8b92bd868;hp=7f91d7e3a33c74ccd37939b715a4dc8877788311;hpb=fd4dd622a85a0dd19ff5616391f94e980abc26a1;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintLength.h b/src/SketchSolver/SketchSolver_ConstraintLength.h index 7f91d7e3a..0899d8b73 100644 --- a/src/SketchSolver/SketchSolver_ConstraintLength.h +++ b/src/SketchSolver/SketchSolver_ConstraintLength.h @@ -17,20 +17,16 @@ class SketchSolver_ConstraintLength : public SketchSolver_Constraint { public: + /// Constructor based on SketchPlugin constraint SketchSolver_ConstraintLength(ConstraintPtr theConstraint) : SketchSolver_Constraint(theConstraint) {} - virtual int getType() const - { return SLVS_C_PT_PT_DISTANCE; } - protected: - /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints - virtual void process(); - - /// \brief This method is used in derived objects to check consistence of constraint. - /// E.g. the distance between line and point may be signed. - virtual void adjustConstraint(); + /// \brief Generate list of attributes of constraint in order useful for constraints + /// \param[out] theValue numerical characteristic of constraint (e.g. distance) + /// \param[out] theAttributes list of attributes to be filled + virtual void getAttributes(double& theValue, std::vector& theAttributes); }; #endif