X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Selection.h;h=b138b8f009962002f990485681593e80e997f573;hb=5dd93936ffd114ed1b28deaa92954e2dfbb11866;hp=2e1507ff139ea8da3f44b367de3f1641728d3e3e;hpb=b519afb1eed5da2e6dd09519543cb81b7fca020a;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Selection.h b/src/ModelHighAPI/ModelHighAPI_Selection.h index 2e1507ff1..b138b8f00 100644 --- a/src/ModelHighAPI/ModelHighAPI_Selection.h +++ b/src/ModelHighAPI/ModelHighAPI_Selection.h @@ -76,6 +76,14 @@ public: MODELHIGHAPI_EXPORT virtual std::string shapeType() const; + /// Shortcut for result()->data()->setName() + MODELHIGHAPI_EXPORT + void setName(const std::string& theName); + + /// Change result's color + MODELHIGHAPI_EXPORT + void setColor(int theRed, int theGreen, int theBlue); + private: VariantType myVariantType; ResultSubShapePair myResultSubShapePair;