+
+void SketcherPrs_Radius::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
+ const Standard_Integer theMode)
+{
+ // Map the application selection modes to standard ones
+ Standard_Integer aMode;
+ switch (theMode) {
+ case 0: // we should use selection of all objects
+ aMode = 0;
+ break;
+ case SketcherPrs_Tools::Sel_Dimension_All:
+ aMode = 0;
+ break;
+ case SketcherPrs_Tools::Sel_Dimension_Line:
+ aMode = 1;
+ break;
+ case SketcherPrs_Tools::Sel_Dimension_Text:
+ aMode = 2;
+ break;
+ default: {
+ // there are own selection modes, so the others should be ignored
+ // otherwise, the text selection appears in the viewer
+ return;
+ }
+ }
+ AIS_RadiusDimension::ComputeSelection(aSelection, aMode);
+}