X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Double.cpp;h=aa02d3cdb6fb8a724f6456e1c588ee84a12575c0;hb=2cb8023bec0da9fc7b138da0a467bca74d4b825c;hp=72667c3ec727f5abdcf32d8556d0bce5943bbc20;hpb=7074394f8f08413d885f63be01df6bd5007b868c;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Double.cpp b/src/ModelHighAPI/ModelHighAPI_Double.cpp index 72667c3ec..aa02d3cdb 100644 --- a/src/ModelHighAPI/ModelHighAPI_Double.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Double.cpp @@ -21,6 +21,7 @@ #include "ModelHighAPI_Double.h" #include +#include //-------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------- @@ -55,3 +56,23 @@ void ModelHighAPI_Double::fillAttribute( case VT_STRING: theAttribute->setText(myString); return; } } + +void ModelHighAPI_Double::fillAttribute( + const std::shared_ptr & thePoint, + const ModelHighAPI_Double & theX, + const ModelHighAPI_Double & theY, + const ModelHighAPI_Double & theZ) const +{ + switch (theX.myVariantType) { + case VT_DOUBLE: thePoint->setX(theX.myDouble); break; + case VT_STRING: thePoint->setTextX(theX.myString); + } + switch (theY.myVariantType) { + case VT_DOUBLE: thePoint->setY(theY.myDouble); break; + case VT_STRING: thePoint->setTextY(theY.myString); + } + switch (theZ.myVariantType) { + case VT_DOUBLE: thePoint->setZ(theZ.myDouble); break; + case VT_STRING: thePoint->setTextZ(theZ.myString); + } +}