20 #ifndef PlaneGCSSolver_ConstraintWrapper_H_
21 #define PlaneGCSSolver_ConstraintWrapper_H_
23 #include <PlaneGCSSolver_Defs.h>
24 #include <PlaneGCSSolver_ScalarWrapper.h>
35 const SketchSolver_ConstraintType& theType);
37 const SketchSolver_ConstraintType& theType);
41 {
return myGCSConstraints; }
44 { myGCSConstraints = theConstraints; }
47 const ConstraintID&
id()
const
50 virtual void setId(
const ConstraintID& theID);
53 virtual SketchSolver_ConstraintType
type()
const
57 virtual void setValue(
const double& theValue);
59 virtual double value()
const;
65 {
return myValueParam; }
69 SketchSolver_ConstraintType myType;
70 ScalarWrapperPtr myValueParam;
71 std::list<GCSConstraintPtr> myGCSConstraints;
74 typedef std::shared_ptr<PlaneGCSSolver_ConstraintWrapper> ConstraintWrapperPtr;
Wrapper providing operations with PlaneGCS constraints.
Definition: PlaneGCSSolver_ConstraintWrapper.h:32
virtual void setId(const ConstraintID &theID)
Change constraint ID.
Definition: PlaneGCSSolver_ConstraintWrapper.cpp:40
void setConstraints(const std::list< GCSConstraintPtr > &theConstraints)
Change list of constraints.
Definition: PlaneGCSSolver_ConstraintWrapper.h:43
virtual SketchSolver_ConstraintType type() const
Return type of current entity.
Definition: PlaneGCSSolver_ConstraintWrapper.h:53
void setValueParameter(const ScalarWrapperPtr &theValue)
Change parameter representing the value of constraint.
Definition: PlaneGCSSolver_ConstraintWrapper.cpp:45
const ConstraintID & id() const
Return ID of current constraint.
Definition: PlaneGCSSolver_ConstraintWrapper.h:47
const std::list< GCSConstraintPtr > & constraints() const
Return list of constraints.
Definition: PlaneGCSSolver_ConstraintWrapper.h:40
const ScalarWrapperPtr & valueParameter() const
Return parametric representation of constraint value.
Definition: PlaneGCSSolver_ConstraintWrapper.h:64
virtual void setValue(const double &theValue)
Assign numeric parameter of constraint.
Definition: PlaneGCSSolver_ConstraintWrapper.cpp:50
virtual double value() const
Return numeric parameter of constraint.
Definition: PlaneGCSSolver_ConstraintWrapper.cpp:55