20 #ifndef PlaneGCSSolver_Tools_H_
21 #define PlaneGCSSolver_Tools_H_
23 #include <SketchSolver_Constraint.h>
24 #include <SketchSolver_ConstraintMovement.h>
25 #include <SketchPlugin_Constraint.h>
47 std::shared_ptr<SketchSolver_ConstraintMovement>
50 std::shared_ptr<SketchSolver_ConstraintMovement>
53 std::shared_ptr<SketchSolver_ConstraintMovement>
67 const SketchSolver_ConstraintType& theType,
68 const EntityWrapperPtr& theValue,
69 const EntityWrapperPtr& theEntity1,
70 const EntityWrapperPtr& theEntity2 = EntityWrapperPtr(),
71 const EntityWrapperPtr& theEntity3 = EntityWrapperPtr(),
72 const EntityWrapperPtr& theEntity4 = EntityWrapperPtr());
78 const std::string& theOwnerName);
82 std::shared_ptr<GeomAPI_Pnt2d>
point(EntityWrapperPtr theEntity);
85 std::shared_ptr<GeomAPI_Lin2d>
line(EntityWrapperPtr theEntity);
88 std::shared_ptr<GeomAPI_Circ2d>
circle(EntityWrapperPtr theEntity);
91 std::shared_ptr<GeomAPI_Ellipse2d>
ellipse(EntityWrapperPtr theEntity);
94 std::shared_ptr<GeomAPI_BSpline2d>
bspline(EntityWrapperPtr theEntity);
98 std::shared_ptr<GeomAPI_Lin2d>
line(FeaturePtr theFeature);
106 GCS::SET_pD
parameters(
const EntityWrapperPtr& theEntity);
110 bool updateValue(
const double& theSource,
double& theDest,
111 const double theTolerance = 1.e4 * tolerance);
113 double distance(
const GCS::Point& thePnt1,
const GCS::Point& thePnt2);
121 bool isInitialized()
const;
125 double value(
const int theIndex)
const;
128 std::shared_ptr<ModelAPI_AttributeDoubleArray> myDouble;
129 std::shared_ptr<ModelAPI_AttributeIntArray> myInteger;
B-spline curve in 2D.
Definition: GeomAPI_BSpline2d.h:36
Circle in 2D.
Definition: GeomAPI_Circ2d.h:37
Ellipse in 2D.
Definition: GeomAPI_Ellipse2d.h:39
Line in 2D.
Definition: GeomAPI_Lin2d.h:35
2D point defined by two coordinates
Definition: GeomAPI_Pnt2d.h:36
API for the attribute that contains several double in the array inside.
Definition: ModelAPI_AttributeDoubleArray.h:32
API for the attribute that contains several integers in the array inside.
Definition: ModelAPI_AttributeIntArray.h:36