MCPcopy Create free account
hub / github.com/biometrics/openbr / setPropertyRecursive

Method setPropertyRecursive

openbr/plugins/core/stream.cpp:1361–1379  ·  view source on GitHub ↗

can't use general setPropertyRecursive due to special handling of basis

Source from the content-addressed store, hash-verified

1359
1360 // can't use general setPropertyRecursive due to special handling of basis
1361 bool setPropertyRecursive(const QString &name, QVariant value)
1362 {
1363 if (br::Object::setExistingProperty(name, value))
1364 return true;
1365
1366 for (int i=0; i < basis->transforms.size();i++) {
1367 if (basis->transforms[i]->setPropertyRecursive(name, value)) {
1368 basis->init();
1369 return true;
1370 }
1371 }
1372
1373 if (basis->endPoint->setPropertyRecursive(name, value)) {
1374 basis->endPoint->init();
1375 return true;
1376 }
1377
1378 return false;
1379 }
1380
1381 // Stream acts as a shallow interface to DirectStream, so it's fine to remove ourselves here
1382 Transform *simplify(bool &newTransform)

Callers 5

knnFromGalleryFunction · 0.45
loadMethod · 0.45
foreachMethod · 0.45
compareMethod · 0.45
initMethod · 0.45

Calls 2

sizeMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected