20 #ifndef SolveSpaceSolver_EntityWrapper_H_
21 #define SolveSpaceSolver_EntityWrapper_H_
23 #include <SketchSolver_IEntityWrapper.h>
24 #include <SolveSpaceSolver_Solver.h>
37 const AttributePtr thePointAttribute,
38 const Slvs_Entity& theEntity);
48 virtual EntityID
id()
const;
51 virtual void setGroup(
const GroupID& theGroup);
54 {
return (GroupID)myEntity.group; }
57 virtual SketchSolver_EntityType
type()
const;
60 virtual bool isUsed(FeaturePtr theFeature)
const;
62 virtual bool isUsed(AttributePtr theAttribute)
const;
65 virtual bool isEqual(
const EntityWrapperPtr& theOther);
69 virtual bool update(
const std::shared_ptr<SketchSolver_IEntityWrapper>& theOther);
Wrapper providing operations with SolveSpace entities.
Definition: SolveSpaceSolver_EntityWrapper.h:30
Slvs_Entity & changeEntity()
Return SolveSpace entity to change.
Definition: SolveSpaceSolver_EntityWrapper.h:44
const Slvs_Entity & entity() const
Return SolveSpace entity.
Definition: SolveSpaceSolver_EntityWrapper.h:41
virtual bool update(const std::shared_ptr< SketchSolver_IEntityWrapper > &theOther)
Update values of parameters of this entity by the parameters of given one.
Definition: SolveSpaceSolver_EntityWrapper.cpp:131
virtual EntityID id() const
Return ID of current entity.
Definition: SolveSpaceSolver_EntityWrapper.cpp:47
virtual GroupID group() const
Return identifier of the group the entity belongs to.
Definition: SolveSpaceSolver_EntityWrapper.h:53
virtual bool isUsed(FeaturePtr theFeature) const
Verify the feature is used in the entity.
Definition: SolveSpaceSolver_EntityWrapper.cpp:80
virtual bool isEqual(const EntityWrapperPtr &theOther)
Compare current entity with other.
Definition: SolveSpaceSolver_EntityWrapper.cpp:104
virtual SketchSolver_EntityType type() const
Return type of current entity.
Definition: SolveSpaceSolver_EntityWrapper.cpp:63
virtual void setGroup(const GroupID &theGroup)
Change group for the entity.
Definition: SolveSpaceSolver_EntityWrapper.cpp:52