mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-19 11:09:21 +02:00
more work on smart pointers
This commit is contained in:
parent
9fa9942861
commit
31021c1dfd
1 changed files with 10 additions and 29 deletions
|
@ -68,11 +68,8 @@ void EntityTests::entityTreeTests(bool verbose) {
|
||||||
const AACube& elementCube = containingElement ? containingElement->getAACube() : AACube();
|
const AACube& elementCube = containingElement ? containingElement->getAACube() : AACube();
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
// FIX ME
|
qDebug() << "foundEntityByRadius=" << foundEntityByRadius.get();
|
||||||
/*
|
qDebug() << "foundEntityByID=" << foundEntityByID.get();
|
||||||
qDebug() << "foundEntityByRadius=" << foundEntityByRadius;
|
|
||||||
qDebug() << "foundEntityByID=" << foundEntityByID;
|
|
||||||
*/
|
|
||||||
qDebug() << "containingElement=" << containingElement;
|
qDebug() << "containingElement=" << containingElement;
|
||||||
qDebug() << "containingElement.box="
|
qDebug() << "containingElement.box="
|
||||||
<< elementCube.getCorner().x << ","
|
<< elementCube.getCorner().x << ","
|
||||||
|
@ -112,11 +109,8 @@ void EntityTests::entityTreeTests(bool verbose) {
|
||||||
const AACube& elementCube = containingElement ? containingElement->getAACube() : AACube();
|
const AACube& elementCube = containingElement ? containingElement->getAACube() : AACube();
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
// FIX ME!
|
qDebug() << "foundEntityByRadius=" << foundEntityByRadius.get();
|
||||||
/*
|
qDebug() << "foundEntityByID=" << foundEntityByID.get();
|
||||||
qDebug() << "foundEntityByRadius=" << foundEntityByRadius;
|
|
||||||
qDebug() << "foundEntityByID=" << foundEntityByID;
|
|
||||||
*/
|
|
||||||
qDebug() << "containingElement=" << containingElement;
|
qDebug() << "containingElement=" << containingElement;
|
||||||
qDebug() << "containingElement.box="
|
qDebug() << "containingElement.box="
|
||||||
<< elementCube.getCorner().x << ","
|
<< elementCube.getCorner().x << ","
|
||||||
|
@ -155,11 +149,8 @@ void EntityTests::entityTreeTests(bool verbose) {
|
||||||
const AACube& elementCube = containingElement ? containingElement->getAACube() : AACube();
|
const AACube& elementCube = containingElement ? containingElement->getAACube() : AACube();
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
// FIX ME!
|
qDebug() << "foundEntityByRadius=" << foundEntityByRadius.get();
|
||||||
/*
|
qDebug() << "foundEntityByID=" << foundEntityByID.get();
|
||||||
qDebug() << "foundEntityByRadius=" << foundEntityByRadius;
|
|
||||||
qDebug() << "foundEntityByID=" << foundEntityByID;
|
|
||||||
*/
|
|
||||||
qDebug() << "containingElement=" << containingElement;
|
qDebug() << "containingElement=" << containingElement;
|
||||||
qDebug() << "containingElement.box="
|
qDebug() << "containingElement.box="
|
||||||
<< elementCube.getCorner().x << ","
|
<< elementCube.getCorner().x << ","
|
||||||
|
@ -195,10 +186,7 @@ void EntityTests::entityTreeTests(bool verbose) {
|
||||||
quint64 end = usecTimestampNow();
|
quint64 end = usecTimestampNow();
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
// FIX ME!
|
qDebug() << "foundEntityByRadius=" << foundEntityByRadius.get();
|
||||||
/*
|
|
||||||
qDebug() << "foundEntityByRadius=" << foundEntityByRadius;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool passed = true; // foundEntityByRadius;
|
bool passed = true; // foundEntityByRadius;
|
||||||
|
@ -301,11 +289,8 @@ void EntityTests::entityTreeTests(bool verbose) {
|
||||||
bool elementIsBestFit = containingElement->bestFitEntityBounds(foundEntityByID);
|
bool elementIsBestFit = containingElement->bestFitEntityBounds(foundEntityByID);
|
||||||
|
|
||||||
if (extraVerbose) {
|
if (extraVerbose) {
|
||||||
// FIX ME!
|
qDebug() << "foundEntityByRadius=" << foundEntityByRadius.get();
|
||||||
/*
|
qDebug() << "foundEntityByID=" << foundEntityByID.get();
|
||||||
qDebug() << "foundEntityByRadius=" << foundEntityByRadius;
|
|
||||||
qDebug() << "foundEntityByID=" << foundEntityByID;
|
|
||||||
*/
|
|
||||||
qDebug() << "containingElement=" << containingElement;
|
qDebug() << "containingElement=" << containingElement;
|
||||||
qDebug() << "containingElement.box="
|
qDebug() << "containingElement.box="
|
||||||
<< elementCube.getCorner().x << ","
|
<< elementCube.getCorner().x << ","
|
||||||
|
@ -391,11 +376,7 @@ void EntityTests::entityTreeTests(bool verbose) {
|
||||||
EntityTreeElement* containingElement = tree.getContainingElement(entityID);
|
EntityTreeElement* containingElement = tree.getContainingElement(entityID);
|
||||||
|
|
||||||
if (extraVerbose) {
|
if (extraVerbose) {
|
||||||
// FIX ME!
|
qDebug() << "foundEntityByID=" << foundEntityByID.get();
|
||||||
/*
|
|
||||||
qDebug() << "foundEntityByRadius=" << foundEntityByRadius;
|
|
||||||
qDebug() << "foundEntityByID=" << foundEntityByID;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Every 1000th test, show the size of the tree...
|
// Every 1000th test, show the size of the tree...
|
||||||
|
|
Loading…
Reference in a new issue