| 110 | } |
| 111 | |
| 112 | void |
| 113 | VisualNode::layout(const NodeAllocator& na) { |
| 114 | LayoutCursor l(this,na); |
| 115 | PostorderNodeVisitor<LayoutCursor>(l).run(); |
| 116 | // int nodesLayouted = 1; |
| 117 | // clock_t t0 = clock(); |
| 118 | // while (p.next()) {} |
| 119 | // while (p.next()) { nodesLayouted++; } |
| 120 | // double t = (static_cast<double>(clock()-t0) / CLOCKS_PER_SEC) * 1000.0; |
| 121 | // double nps = static_cast<double>(nodesLayouted) / |
| 122 | // (static_cast<double>(clock()-t0) / CLOCKS_PER_SEC); |
| 123 | // std::cout << "Layout done. " << nodesLayouted << " nodes in " |
| 124 | // << t << " ms. " << nps << " nodes/s." << std::endl; |
| 125 | } |
| 126 | |
| 127 | void VisualNode::pathUp(const NodeAllocator& na) { |
| 128 | VisualNode* cur = this; |
no test coverage detected