X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_ConstraintLength.h;h=0899d8b732419e138208af79263d0f7c56abc20c;hb=37c59d59b17e4a7e304588fb647488457a0c7283;hp=f9c0da65ce54dd706629d07028d7447e50cf4c88;hpb=f4f5e51326a1846df7684d7fbf5b8315b12a29de;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintLength.h b/src/SketchSolver/SketchSolver_ConstraintLength.h index f9c0da65c..0899d8b73 100644 --- a/src/SketchSolver/SketchSolver_ConstraintLength.h +++ b/src/SketchSolver/SketchSolver_ConstraintLength.h @@ -22,16 +22,11 @@ public: 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