| 2419 | } |
| 2420 | |
| 2421 | void Viewer::fitDataViewport( MR::ViewportMask vpList, float fill, bool snapView ) |
| 2422 | { |
| 2423 | for( auto& viewport : viewport_list ) |
| 2424 | { |
| 2425 | if( viewport.id.value() & vpList.value() ) |
| 2426 | { |
| 2427 | viewport.fitData( fill, snapView ); |
| 2428 | } |
| 2429 | } |
| 2430 | } |
| 2431 | |
| 2432 | void Viewer::fitBoxViewport( const Box3f& box, MR::ViewportMask vpList /*= MR::ViewportMask::all()*/, float fill /*= 0.6f*/, bool snapView /*= true */ ) |
| 2433 | { |