| 39 | using namespace MR; |
| 40 | |
| 41 | void getPickerDataVector( Object& obj, ViewportMask id, VisualObjectTreeDataVector& outVector ) |
| 42 | { |
| 43 | if ( !obj.isVisible( id ) ) |
| 44 | return; |
| 45 | if ( auto visobj = obj.asType<VisualObject>() ) |
| 46 | if ( visobj->isPickable( id ) ) |
| 47 | outVector.push_back( {visobj} ); |
| 48 | for ( const auto& child : obj.children() ) |
| 49 | getPickerDataVector( *child, id, outVector ); |
| 50 | } |
| 51 | |
| 52 | void getPickerDataVector( Object& obj, ViewportMask id, const Viewport::PickRenderObjectPredicate& predicate, VisualObjectTreeDataVector& outVector ) |
| 53 | { |
no test coverage detected