return myTypeInnerPointPair;
}
+//==================================================================================================
+TypeWeakNamingPair ModelHighAPI_Selection::typeWeakNamingPair() const
+{
+ return myWeakNamingPair;
+}
+
//==================================================================================================
std::string ModelHighAPI_Selection::shapeType() const
{
MODELHIGHAPI_EXPORT
virtual TypeInnerPointPair typeInnerPointPair() const;
+ /// \return pair of sub-shape type and pair of context name and sub-shape index.
+ MODELHIGHAPI_EXPORT
+ virtual TypeWeakNamingPair typeWeakNamingPair() const;
+
/// \return shape type.
MODELHIGHAPI_EXPORT
virtual std::string shapeType() const;
aShapeType = shapeTypeByStr(aType);
break;
}
+ case ModelHighAPI_Selection::VT_WeakNamingPair: {
+ TypeWeakNamingPair aPair = theSelection.typeWeakNamingPair();
+ std::string aType = aPair.first;
+ aShapeType = shapeTypeByStr(aType);
+ break;
+ }
}
return aShapeType;