1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0028646: Draw Harness, ViewerTest - rename vsetfilter command with vselfilter

TopAbs::ShapeTypeToString() is now used instead of duplicating TopAbs_ShapeEnum printing code.
vselmode now accepts shape type string for activating standard AIS_Shape selection modes.
This commit is contained in:
kgv
2017-05-16 16:37:18 +03:00
committed by abv
parent c9776c7ac0
commit d2e6068829
17 changed files with 198 additions and 505 deletions

View File

@@ -35,16 +35,5 @@ MoniTool_SignShape::MoniTool_SignShape () { }
if (HS.IsNull()) return ent->DynamicType()->Name();
TopoDS_Shape sh = HS->Shape();
if (sh.IsNull()) return "SHAPE";
switch (sh.ShapeType()) {
case TopAbs_VERTEX : return "VERTEX";
case TopAbs_EDGE : return "EDGE";
case TopAbs_WIRE : return "WIRE";
case TopAbs_FACE : return "FACE";
case TopAbs_SHELL : return "SHELL";
case TopAbs_SOLID : return "SOLID";
case TopAbs_COMPSOLID : return "COMPSOLID";
case TopAbs_COMPOUND : return "COMPOUND";
default : break;
}
return "SHAPE";
return TopAbs::ShapeTypeToString (sh.ShapeType());
}