Lines Matching refs:tools
151 …ASSERT_TRUE(tools::importFromSvgD( aPoly, aPath0, false, 0 )) << "importing simple rectangle from … in TEST_F()
152 aExport = tools::exportToSvgD( aPoly, true, true, false ); in TEST_F()
155 …ASSERT_TRUE(tools::importFromSvgD( aPoly, aExport, false, 0 )) << "importing simple rectangle from… in TEST_F()
156 aExport = tools::exportToSvgD( aPoly, true, true, false ); in TEST_F()
159 …ASSERT_TRUE(tools::importFromSvgD( aPoly, aPath1, false, 0 )) << "importing simple bezier polygon … in TEST_F()
160 aExport = tools::exportToSvgD( aPoly, true, true, false ); in TEST_F()
187 …ASSERT_TRUE(tools::importFromSvgD( aReImport, aExport, false, 0)) << "importing simple bezier poly… in TEST_F()
190 ASSERT_TRUE(tools::importFromSvgD( aPoly, aPath2, false, 0)) << "importing '@' from SVG-D"; in TEST_F()
191 aExport = tools::exportToSvgD( aPoly, true, true, false ); in TEST_F()
207 …ASSERT_TRUE(tools::importFromSvgD( aReImport, aExport, false, 0)) << "re-importing '@' from SVG-D"; in TEST_F()
211 …ASSERT_TRUE(tools::importFromSvgD( aPoly, aExport, false, 0 )) << "importing '@' from SVG-D (round… in TEST_F()
212 aExport = tools::exportToSvgD( aPoly, true, true, false ); in TEST_F()
216 …ASSERT_TRUE(tools::importFromSvgD( aPoly, aPath3, false, 0 )) << "importing complex polygon from S… in TEST_F()
217 aExport = tools::exportToSvgD( aPoly, true, true, false ); in TEST_F()
240 …ASSERT_TRUE(tools::importFromSvgD( aPoly, aExport, false, 0 )) << "importing complex polygon from … in TEST_F()
241 aExport = tools::exportToSvgD( aPoly, true, true, false ); in TEST_F()
245 tools::createPolygonFromRect( B2DRange(0.0,0.0,4000.0,4000.0) )); in TEST_F()
246 aExport = tools::exportToSvgD( B2DPolyPolygon(aRect), false, false, false ); in TEST_F()
274 …ASSERT_TRUE(tools::getOrientation(tools::createPolygonFromRect(aRect)) == ORIENTATION_POSITIVE ) << in TEST_F()
918 tools::createPolygonFromRect( in TEST_F()
964 ASSERT_TRUE(tools::isRectangle( aRect1 )) << "checking rectangle-ness of rectangle 1"; in TEST_F()
965 ASSERT_TRUE(tools::isRectangle( aRect2 )) << "checking rectangle-ness of rectangle 2"; in TEST_F()
966 ASSERT_TRUE(!tools::isRectangle( aNonRect1 )) << "checking non-rectangle-ness of polygon 1"; in TEST_F()
967 ASSERT_TRUE(!tools::isRectangle( aNonRect2 )) << "checking non-rectangle-ness of polygon 2"; in TEST_F()
968 ASSERT_TRUE(!tools::isRectangle( aNonRect3 )) << "checking non-rectangle-ness of polygon 3"; in TEST_F()
969 ASSERT_TRUE(!tools::isRectangle( aNonRect4 )) << "checking non-rectangle-ness of polygon 4"; in TEST_F()
970 ASSERT_TRUE(!tools::isRectangle( aNonRect5 )) << "checking non-rectangle-ness of polygon 5"; in TEST_F()
1079 ASSERT_TRUE(tools::rgb2hsl(maWhite) == BColor(0,0,1)) << "white"; in TEST_F()
1080 ASSERT_TRUE(tools::rgb2hsl(maBlack) == BColor(0,0,0)) << "black"; in TEST_F()
1081 ASSERT_TRUE(tools::rgb2hsl(maRed) == BColor(0,1,0.5)) << "red"; in TEST_F()
1082 ASSERT_TRUE(tools::rgb2hsl(maGreen) == BColor(120,1,0.5)) << "green"; in TEST_F()
1083 ASSERT_TRUE(tools::rgb2hsl(maBlue) == BColor(240,1,0.5)) << "blue"; in TEST_F()
1084 ASSERT_TRUE(tools::rgb2hsl(maYellow) == BColor(60,1,0.5)) << "yellow"; in TEST_F()
1085 ASSERT_TRUE(tools::rgb2hsl(maMagenta) == BColor(300,1,0.5)) << "magenta"; in TEST_F()
1086 ASSERT_TRUE(tools::rgb2hsl(maCyan) == BColor(180,1,0.5)) << "cyan"; in TEST_F()
1087 ASSERT_TRUE(tools::rgb2hsl(BColor(0,0.5,1)) == BColor(210,1,0.5)) << "third hue case"; in TEST_F()
1089 ASSERT_TRUE(tools::hsl2rgb(tools::rgb2hsl(maWhite)) == maWhite) << "roundtrip white"; in TEST_F()
1090 ASSERT_TRUE(tools::hsl2rgb(tools::rgb2hsl(maBlack)) == maBlack) << "roundtrip black"; in TEST_F()
1091 ASSERT_TRUE(tools::hsl2rgb(tools::rgb2hsl(maRed)) == maRed) << "roundtrip red"; in TEST_F()
1092 ASSERT_TRUE(tools::hsl2rgb(tools::rgb2hsl(maGreen)) == maGreen) << "roundtrip green"; in TEST_F()
1093 ASSERT_TRUE(tools::hsl2rgb(tools::rgb2hsl(maBlue)) == maBlue) << "roundtrip blue"; in TEST_F()
1094 ASSERT_TRUE(tools::hsl2rgb(tools::rgb2hsl(maYellow)) == maYellow) << "roundtrip yellow"; in TEST_F()
1095 ASSERT_TRUE(tools::hsl2rgb(tools::rgb2hsl(maMagenta)) == maMagenta) << "roundtrip magenta"; in TEST_F()
1096 ASSERT_TRUE(tools::hsl2rgb(tools::rgb2hsl(maCyan)) == maCyan) << "roundtrip cyan"; in TEST_F()
1098 ASSERT_TRUE(tools::rgb2hsl(maWhite*.1) == BColor(0,0,.1)) << "grey10"; in TEST_F()
1099 ASSERT_TRUE(tools::rgb2hsl(maWhite*.9) == BColor(0,0,.9)) << "grey90"; in TEST_F()
1100 ASSERT_TRUE(tools::rgb2hsl(maRed*.5) == BColor(0,1,0.25)) << "red/2"; in TEST_F()
1101 ASSERT_TRUE(tools::rgb2hsl(maGreen*.5) == BColor(120,1,0.25)) << "green/2"; in TEST_F()
1102 ASSERT_TRUE(tools::rgb2hsl(maBlue*.5) == BColor(240,1,0.25)) << "blue/2"; in TEST_F()
1103 ASSERT_TRUE(tools::rgb2hsl(maYellow*.5) == BColor(60,1,0.25)) << "yellow/2"; in TEST_F()
1104 ASSERT_TRUE(tools::rgb2hsl(maMagenta*.5) == BColor(300,1,0.25)) << "magenta/2"; in TEST_F()
1105 ASSERT_TRUE(tools::rgb2hsl(maCyan*.5) == BColor(180,1,0.25)) << "cyan/2"; in TEST_F()
1107 ASSERT_TRUE(tools::rgb2hsl(BColor(.75,.25,.25)) == BColor(0,.5,.5)) << "pastel"; in TEST_F()
1112 ASSERT_TRUE(tools::rgb2hsv(maWhite) == BColor(0,0,1)) << "white"; in TEST_F()
1113 ASSERT_TRUE(tools::rgb2hsv(maBlack) == BColor(0,0,0)) << "black"; in TEST_F()
1114 ASSERT_TRUE(tools::rgb2hsv(maRed) == BColor(0,1,1)) << "red"; in TEST_F()
1115 ASSERT_TRUE(tools::rgb2hsv(maGreen) == BColor(120,1,1)) << "green"; in TEST_F()
1116 ASSERT_TRUE(tools::rgb2hsv(maBlue) == BColor(240,1,1)) << "blue"; in TEST_F()
1117 ASSERT_TRUE(tools::rgb2hsv(maYellow) == BColor(60,1,1)) << "yellow"; in TEST_F()
1118 ASSERT_TRUE(tools::rgb2hsv(maMagenta) == BColor(300,1,1)) << "magenta"; in TEST_F()
1119 ASSERT_TRUE(tools::rgb2hsv(maCyan) == BColor(180,1,1)) << "cyan"; in TEST_F()
1121 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maWhite)) == maWhite) << "roundtrip white"; in TEST_F()
1122 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maBlack)) == maBlack) << "roundtrip black"; in TEST_F()
1123 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maRed)) == maRed) << "roundtrip red"; in TEST_F()
1124 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maGreen)) == maGreen) << "roundtrip green"; in TEST_F()
1125 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maBlue)) == maBlue) << "roundtrip blue"; in TEST_F()
1126 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maYellow)) == maYellow) << "roundtrip yellow"; in TEST_F()
1127 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maMagenta)) == maMagenta) << "roundtrip magenta"; in TEST_F()
1128 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maCyan)) == maCyan) << "roundtrip cyan"; in TEST_F()
1130 ASSERT_TRUE(tools::rgb2hsv(maWhite*.1) == BColor(0,0,.1)) << "grey10"; in TEST_F()
1131 ASSERT_TRUE(tools::rgb2hsv(maWhite*.9) == BColor(0,0,.9)) << "grey90"; in TEST_F()
1132 ASSERT_TRUE(tools::rgb2hsv(maRed*.5) == BColor(0,1,0.5)) << "red/2"; in TEST_F()
1133 ASSERT_TRUE(tools::rgb2hsv(maGreen*.5) == BColor(120,1,0.5)) << "green/2"; in TEST_F()
1134 ASSERT_TRUE(tools::rgb2hsv(maBlue*.5) == BColor(240,1,0.5)) << "blue/2"; in TEST_F()
1135 ASSERT_TRUE(tools::rgb2hsv(maYellow*.5) == BColor(60,1,0.5)) << "yellow/2"; in TEST_F()
1136 ASSERT_TRUE(tools::rgb2hsv(maMagenta*.5) == BColor(300,1,0.5)) << "magenta/2"; in TEST_F()
1137 ASSERT_TRUE(tools::rgb2hsv(maCyan*.5) == BColor(180,1,0.5)) << "cyan/2"; in TEST_F()
1139 ASSERT_TRUE(tools::rgb2hsv(BColor(.5,.25,.25)) == BColor(0,.5,.5)) << "pastel"; in TEST_F()
1144 tools::rgb2ciexyz(maWhite); in TEST_F()
1145 tools::rgb2ciexyz(maBlack); in TEST_F()
1146 tools::rgb2ciexyz(maRed); in TEST_F()
1147 tools::rgb2ciexyz(maGreen); in TEST_F()
1148 tools::rgb2ciexyz(maBlue); in TEST_F()
1149 tools::rgb2ciexyz(maYellow); in TEST_F()
1150 tools::rgb2ciexyz(maMagenta); in TEST_F()
1151 tools::rgb2ciexyz(maCyan); in TEST_F()