{
theValue.fillAttribute(theAttribute);
}
+void fillAttribute(double theValue,
+ const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute)
+{
+ theAttribute->setValue(theValue);
+}
//--------------------------------------------------------------------------------------
void fillAttribute(const ModelHighAPI_Integer & theValue,
{
theAttribute->setValue(theValue);
}
+void fillAttribute(const char * theValue,
+ const std::shared_ptr<ModelAPI_AttributeString> & theAttribute)
+{
+ theAttribute->setValue(theValue);
+}
+
//--------------------------------------------------------------------------------------
void fillAttribute(const ModelHighAPI_Double & theValue,
const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
+MODELHIGHAPI_EXPORT
+void fillAttribute(double theValue,
+ const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
+
MODELHIGHAPI_EXPORT
void fillAttribute(const ModelHighAPI_Integer & theValue,
const std::shared_ptr<ModelAPI_AttributeInteger> & theAttribute);
MODELHIGHAPI_EXPORT
void fillAttribute(const std::string & theValue,
const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
+MODELHIGHAPI_EXPORT
+void fillAttribute(const char * theValue,
+ const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------
{
fillAttribute(SketchPlugin_Circle::CIRCLE_TYPE_CENTER_AND_RADIUS(), mycircleType);
fillAttribute(center(), theCenterX, theCenterY);
- fillAttribute(ModelHighAPI_Double(theRadius), myradius);
+ fillAttribute(theRadius, myradius);
execute();
}
{
fillAttribute(SketchPlugin_Circle::CIRCLE_TYPE_CENTER_AND_RADIUS(), mycircleType);
fillAttribute(theCenter, mycenter);
- fillAttribute(ModelHighAPI_Double(theRadius), myradius);
+ fillAttribute(theRadius, myradius);
execute();
}
#include "SketchAPI.h"
#include "SketchAPI_SketchEntity.h"
-#include <GeomDataAPI_Point2D.h>
-
#include <SketchPlugin_Circle.h>
class ModelHighAPI_Selection;