20 #ifndef PlaneGCSSolver_ScalarWrapper_H_
21 #define PlaneGCSSolver_ScalarWrapper_H_
23 #include <PlaneGCSSolver_Defs.h>
24 #include <PlaneGCSSolver_EntityWrapper.h>
39 virtual void setValue(
double theValue);
41 virtual double value()
const;
44 virtual SketchSolver_EntityType
type()
const
45 {
return ENTITY_SCALAR; }
50 virtual bool update(std::shared_ptr<ModelAPI_Attribute> theAttribute);
56 typedef std::shared_ptr<PlaneGCSSolver_ScalarWrapper> ScalarWrapperPtr;
Wrapper providing operations with entities regardless the solver.
Definition: PlaneGCSSolver_EntityWrapper.h:37
Wrapper providing operations with PlaneGCS scalars.
Definition: PlaneGCSSolver_ScalarWrapper.h:30
virtual double value() const
Return value of parameter.
Definition: PlaneGCSSolver_ScalarWrapper.cpp:36
virtual SketchSolver_EntityType type() const
Return type of current entity.
Definition: PlaneGCSSolver_ScalarWrapper.h:44
virtual bool update(std::shared_ptr< ModelAPI_Attribute > theAttribute)
Update entity by the values of theAttribute.
Definition: PlaneGCSSolver_ScalarWrapper.cpp:41
virtual void setValue(double theValue)
Change value of parameter.
Definition: PlaneGCSSolver_ScalarWrapper.cpp:31
double * myValue
pointer to value provided by the storage
Definition: PlaneGCSSolver_ScalarWrapper.h:53
double * scalar() const
Return PlaneGCS parameter.
Definition: PlaneGCSSolver_ScalarWrapper.h:35