#ifndef _HYDROData_Tree_HXX_
#define _HYDROData_Tree_HXX_
+#include <HYDROData_Tool.h>
+#include <Message_ProgressSentry.hxx>
+
//================================================================================
//! Data limiting the tree height
root = root->myFather;
rootSize = root->maxSize();
}
+
+ Handle(Message_ProgressIndicator) aZIProgress = myLevel == 0 ? HYDROData_Tool::GetZIProgress() : NULL;
+ Message_ProgressSentry aPSentry(aZIProgress, "QuadTree", 0, NB_CHILDREN + 1, 1);
+
for (int i = 0; i < NB_CHILDREN; i++)
{
// The child is of the same type than its father (For instance, a HYDROData_OctreeNode)
// --- After building the NB_CHILDREN boxes, we put the data into the children.
buildChildrenData();
+ if (aPSentry.More()) {
+ aPSentry.Next();
+ }
+
// --- After we pass to the next level of the Tree
- for (int i = 0; i < NB_CHILDREN; i++)
+ for (int i = 0; i < NB_CHILDREN && aPSentry.More(); i++, aPSentry.Next()) {
myChildren[i]->buildChildren();
+ }
+
+ aPSentry.Relieve();
}
/*!