20 #ifndef PlaneGCSSolver_Storage_H_
21 #define PlaneGCSSolver_Storage_H_
23 #include <PlaneGCSSolver_Defs.h>
24 #include <SketchSolver_Storage.h>
44 ConstraintWrapperPtr theSolverConstraint);
56 virtual bool update(FeaturePtr theFeature,
bool theForce =
false);
62 virtual bool update(AttributePtr theAttribute,
bool theForce =
false);
65 virtual void makeExternal(
const EntityWrapperPtr& theEntity);
74 virtual bool changeActiveStatus(ConstraintPtr theConstraint,
bool theNewState);
76 virtual bool UpdateDeactivateList();
108 EntityWrapperPtr createFeature(
const FeaturePtr& theFeature,
112 EntityWrapperPtr createAttribute(
const AttributePtr& theAttribute,
118 void createAuxiliaryConstraints(
const EntityWrapperPtr& theEntity);
119 void removeAuxiliaryConstraints(
const EntityWrapperPtr& theEntity);
122 ConstraintID myConstraintLastID;
125 std::map<EntityWrapperPtr, ConstraintWrapperPtr> myAuxConstraintMap;
128 std::list<GCSConstraintPtr> myRemovedConstraints;
API to convert data model entity to the entity applicable for PlaneGCS solver.
Definition: PlaneGCSSolver_EntityBuilder.h:31
SolveStatus
The result of constraints solution.
Definition: PlaneGCSSolver_Solver.h:33
Contains all necessary data in PlaneGCS format to solve a single group of constraints.
Definition: PlaneGCSSolver_Storage.h:33
double * createParameter()
Initialize memory for new solver's parameter.
Definition: PlaneGCSSolver_Storage.cpp:633
virtual void adjustParametrizationOfArcs()
Make parametrization of arcs consistent.
Definition: PlaneGCSSolver_Storage.cpp:463
void removeParameters(const GCS::SET_pD &theParams)
Release memory occupied by parameters.
Definition: PlaneGCSSolver_Storage.cpp:638
virtual void addMovementConstraint(const ConstraintWrapperPtr &theSolverConstraint)
Add a movement constraint which will be destroyed after the next solving of the set of constraints.
Definition: PlaneGCSSolver_Storage.cpp:74
virtual bool isEmpty() const
Check the storage has constraints.
Definition: PlaneGCSSolver_Storage.h:95
virtual void addConstraint(ConstraintPtr theConstraint, ConstraintWrapperPtr theSolverConstraint)
Change mapping between constraint from SketchPlugin and a constraint applicable for corresponding sol...
Definition: PlaneGCSSolver_Storage.cpp:63
virtual bool removeConstraint(ConstraintPtr theConstraint)
Removes constraint from the storage.
Definition: PlaneGCSSolver_Storage.cpp:496
virtual void getUnderconstrainedGeometry(std::set< ObjectPtr > &theFeatures) const
Return list of features which are not fully constrained.
Definition: PlaneGCSSolver_Storage.cpp:752
virtual void refresh() const
Update SketchPlugin features after resolving constraints.
Definition: PlaneGCSSolver_Storage.cpp:662
virtual void removeInvalidEntities()
Remove all features became invalid.
Definition: PlaneGCSSolver_Storage.cpp:580
virtual PlaneGCSSolver_Solver::SolveStatus checkDegeneratedGeometry() const
Verify, the sketch contains degenerated geometry after resolving the set of constraints.
Definition: PlaneGCSSolver_Storage.cpp:740
virtual void makeNonExternal(const EntityWrapperPtr &theEntity)
Make entity non-external.
Definition: PlaneGCSSolver_Storage.cpp:237
virtual void makeExternal(const EntityWrapperPtr &theEntity)
Make entity external.
Definition: PlaneGCSSolver_Storage.cpp:224
virtual bool update(FeaturePtr theFeature, bool theForce=false)
Convert feature to the form applicable for specific solver and map it.
Definition: PlaneGCSSolver_Storage.cpp:129
Interface to map SketchPlugin features to the entities of corresponding solver.
Definition: SketchSolver_Storage.h:44
virtual bool isEmpty() const
Check the storage has constraints.
Definition: SketchSolver_Storage.h:123