1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PlaneGCSSolver_EntityWrapper.h
4 // Created: 14 Dec 2015
5 // Author: Artem ZHIDKOV
7 #ifndef PlaneGCSSolver_EntityWrapper_H_
8 #define PlaneGCSSolver_EntityWrapper_H_
10 #include <PlaneGCSSolver_Defs.h>
11 #include <SketchSolver_IEntityWrapper.h>
14 * Wrapper providing operations with PlaneGCS entities.
16 class PlaneGCSSolver_EntityWrapper : public SketchSolver_IEntityWrapper
19 PlaneGCSSolver_EntityWrapper(const FeaturePtr theFeature, const GCSCurvePtr theEntity = GCSCurvePtr());
21 /// \brief Return PlaneGCS geometric entity
22 const GCSCurvePtr& entity() const
24 /// \brief Return PlaneGCS geometric entity to change
25 GCSCurvePtr& changeEntity()
28 /// \brief Return ID of current entity
29 virtual EntityID id() const
31 /// \brief Change ID of the entity
32 void setId(EntityID theID)
35 /// \brief Change group for the entity
36 virtual void setGroup(const GroupID& theGroup);
37 /// \brief Return identifier of the group the entity belongs to
38 virtual GroupID group() const
41 /// \brief Return type of current entity
42 virtual SketchSolver_EntityType type() const
45 /// \brief Verify the feature is used in the entity
46 virtual bool isUsed(FeaturePtr theFeature) const;
47 /// \brief Verify the attribute is used in the entity
48 virtual bool isUsed(AttributePtr theAttribute) const;
50 /// \brief Compare current entity with other
51 virtual bool isEqual(const EntityWrapperPtr& theOther);
53 /// \brief Update values of parameters of this entity by the parameters of given one
54 /// \return \c true if some parameters change their values
55 virtual bool update(const EntityWrapperPtr& theOther);
60 SketchSolver_EntityType myType;