| 230 | VisualNode::changedStatus(const NodeAllocator& na) { dirtyUp(na); } |
| 231 | |
| 232 | bool |
| 233 | VisualNode::containsCoordinateAtDepth(int x, int depth) { |
| 234 | BoundingBox box = getShape()->getBoundingBox(); |
| 235 | if (x < box.left || |
| 236 | x > box.right || |
| 237 | depth >= getShape()->depth()) { |
| 238 | return false; |
| 239 | } |
| 240 | Extent theExtent; |
| 241 | if (getShape()->getExtentAtDepth(depth, theExtent)) { |
| 242 | return (theExtent.l <= x && x <= theExtent.r); |
| 243 | } else { |
| 244 | return false; |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | VisualNode* |
| 249 | VisualNode::findNode(const NodeAllocator& na, int x, int y) { |
no test coverage detected