- /*
- static int qw(RS2::LineWidth w) {
- switch (w) {
- case Width00:
- return 1; // 0 is more accurate but quite slow
- break;
- case WidthByLayer:
- case WidthByBlock:
- case WidthDefault:
- return 1;
- break;
- case Width01:
- case Width02:
- case Width03:
- case Width04:
- case Width05:
- case Width06:
- case Width07:
- case Width08:
- return 1;
- break;
- case Width09:
- case Width10:
- return 3;
- break;
- case Width11:
- return 4;
- break;
- case Width12:
- case Width13:
- return 5;
- break;
- case Width14:
- return 6;
- break;
- case Width15:
- return 7;
- break;
- case Width16:
- return 8;
- break;
- case Width17:
- return 9;
- break;
- case Width18:
- case Width19:
- return 10;
- break;
- case Width20:
- return 12;
- break;
- case Width21:
- case Width22:
- case Width23:
- //case Width24:
- return 14;
- break;
- default:
- return (int)w;
- break;
- }
- return (int)w;
- }
- */
-
- /**
- * Wrapper for Qt
- */
- static LineWidth intToLineWidth(int w) {
- if (w==-3) {