- /// \brief Use plugin manager for features creation
- SKETCHPLUGIN_EXPORT SketchPlugin_ConstraintDistance();
-
- /** \brief Initializes the attributes of the constraint
- *
- * Defines the distance between a point and another entity,
- * or defines the angle between two vectors.
- *
- * \param[in] theDistance distance (or angle) between two entities
- * \param[in] theEntityA first parameter of the constraint
- * \param[in] theEntityB second parameter of the constraint
- */
- SKETCHPLUGIN_EXPORT void setAttributes(
- const double theDistance,
- const boost::shared_ptr<SketchPlugin_Feature> theEntityA,
- const boost::shared_ptr<SketchPlugin_Feature> theEntityB);
- /** \brief Initializes the attributes of the constraint
- *
- * Defines the distance between a point defined by reference and another entity.
- *
- * \param[in] theDistance distance between the point and other entity
- * \param[in] thePoint reference to the point attribute
- * \param[in] theEntity other parameter of the constraint
- */
- SKETCHPLUGIN_EXPORT void setAttributes(
- const double theDistance,
- const boost::shared_ptr<ModelAPI_Attribute> thePoint,
- const boost::shared_ptr<SketchPlugin_Feature> theEntity);
- /** \brief Initializes the attributes of the constraint
- *
- * Defines the distance between two points which defined by references.
- *
- * \param[in] theDistance distance between the points
- * \param[in] thePointA reference to the first point attribute
- * \param[in] thePointB reference to the second point attribute
- */
- SKETCHPLUGIN_EXPORT void setAttributes(
- const double theDistance,
- const boost::shared_ptr<ModelAPI_Attribute> thePointA,
- const boost::shared_ptr<ModelAPI_Attribute> thePointB);
- /** \brief Initializes the attributes of the constraint
- *
- * Defines radius of a circle.
- *
- * \param[in] theRadius radius of the circle
- * \param[in] theCircle the circle which has specified radius
- */
- SKETCHPLUGIN_EXPORT void setAttributes(
- const double theRadius,
- const boost::shared_ptr<SketchPlugin_Feature> theCircle);
- /** \brief Initializes the attributes of the constraint
- *
- * Defines the distance between two points projected on specified vector (or line).
- *
- * \param[in] theDistance distance between projected points
- * \param[in] thePointA first point for the projection
- * \param[in] thePointB second point for the projection
- * \param[in] theEntity direction of the line which the points projected on
- */
- SKETCHPLUGIN_EXPORT void setAttributes(
- const double theDistance,
- const boost::shared_ptr<SketchPlugin_Feature> thePointA,
- const boost::shared_ptr<SketchPlugin_Feature> thePointB,
- const boost::shared_ptr<SketchPlugin_Feature> theEntity);