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

@@ -89,52 +89,8 @@ Standard_EXPORT Standard_Integer BRepCheck_Trace(const Standard_Integer phase) {
void PrintShape(const TopoDS_Shape& theShape, const Standard_Integer upper) {
if (!theShape.IsNull()) {
Standard_Integer code = theShape.HashCode(upper);
switch (theShape.ShapeType()) {
case TopAbs_COMPOUND :
cout << "COMPOUND";
break;
case TopAbs_COMPSOLID :
cout << "COMPSOLID";
break;
case TopAbs_SOLID :
cout << "SOLID";
break;
case TopAbs_SHELL :
cout << "SHELL";
break;
case TopAbs_FACE :
cout << "FACE";
break;
case TopAbs_WIRE :
cout << "WIRE";
break;
case TopAbs_EDGE :
cout << "EDGE";
break;
case TopAbs_VERTEX :
cout << "VERTEX";
break;
case TopAbs_SHAPE :
cout << "SHAPE";
break;
}
cout << " : " << code << " ";
switch (theShape.Orientation()) {
case TopAbs_FORWARD :
cout << "FORWARD";
break;
case TopAbs_REVERSED :
cout << "REVERSED";
break;
case TopAbs_INTERNAL :
cout << "INTERNAL";
break;
case TopAbs_EXTERNAL :
cout << "EXTERNAL";
break;
}
cout << endl;
std::cout << TopAbs::ShapeTypeToString (theShape.ShapeType()) << " : " << code
<< " " << TopAbs::ShapeOrientationToString(theShape.Orientation()) << std::endl;
}
}