MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / fuzzyCompareSymbol

Function fuzzyCompareSymbol

test/file_format_t.cpp:312–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310
311
312 void fuzzyCompareSymbol(const AreaSymbol& actual, const AreaSymbol& expected)
313 {
314 auto pattern_rotable = false;
315 for (auto i = 0; i < expected.getNumFillPatterns(); ++i)
316 pattern_rotable |= expected.getFillPattern(i).rotatable();
317 for (auto i = 0; i < actual.getNumFillPatterns(); ++i)
318 COMPARE_SYMBOL_PROPERTY(actual.getFillPattern(i).rotatable(), pattern_rotable, expected);
319 }
320
321 void fuzzyCompareSymbol(const Symbol& actual, const Symbol& expected, const QByteArray& /*format_id*/)
322 {

Callers 1

fuzzyMatchSymbolFunction · 0.85

Calls 7

getNumFillPatternsMethod · 0.80
rotatableMethod · 0.80
isHiddenMethod · 0.80
isProtectedMethod · 0.80
isRotatableMethod · 0.80
guessDominantColorMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected