| 104 | } |
| 105 | |
| 106 | NodesGuiList |
| 107 | NodeGraph::getNodesWithinBackdrop(const NodeGuiPtr& bd) const |
| 108 | { |
| 109 | BackdropGui* isBd = dynamic_cast<BackdropGui*>( bd.get() ); |
| 110 | |
| 111 | if (!isBd) { |
| 112 | return NodesGuiList(); |
| 113 | } |
| 114 | |
| 115 | QRectF bbox = bd->mapToScene( bd->boundingRect() ).boundingRect(); |
| 116 | NodesGuiList ret; |
| 117 | QMutexLocker l(&_imp->_nodesMutex); |
| 118 | |
| 119 | for (NodesGuiList::const_iterator it = _imp->_nodes.begin(); it != _imp->_nodes.end(); ++it) { |
| 120 | QRectF nodeBbox = (*it)->mapToScene( (*it)->boundingRect() ).boundingRect(); |
| 121 | if ( bbox.contains(nodeBbox) ) { |
| 122 | ret.push_back(*it); |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | return ret; |
| 127 | } |
| 128 | |
| 129 | void |
| 130 | NodeGraph::refreshNodesKnobsAtTime(bool onlyTimeEvaluationKnobs, |