Salome HOME
Issue #1648: Dump Python in the High Level Parameterized Geometry API
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Selection.cpp
index c2540b8f51a30d29cf1512265e661e9f292addfd..0c4e764f595be68f106cd06e1c1ed8961133a62d 100644 (file)
@@ -77,3 +77,14 @@ TypeSubShapeNamePair ModelHighAPI_Selection::typeSubShapeNamePair() const
 {
   return myTypeSubShapeNamePair;
 }
+
+//==================================================================================================
+std::string ModelHighAPI_Selection::shapeType() const
+{
+  switch(myVariantType) {
+    case VT_ResultSubShapePair: return myResultSubShapePair.second->shapeTypeStr();
+    case VT_TypeSubShapeNamePair: return myTypeSubShapeNamePair.first;
+  }
+
+  return "SHAPE";
+}