MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getPickerDataVector

Function getPickerDataVector

source/MRViewer/MRViewport.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39using namespace MR;
40
41void 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
52void getPickerDataVector( Object& obj, ViewportMask id, const Viewport::PickRenderObjectPredicate& predicate, VisualObjectTreeDataVector& outVector )
53{

Callers 4

pickRenderObjectMethod · 0.85
pick_render_objectMethod · 0.85
findObjectsInRectMethod · 0.85
findVisibleFacesMethod · 0.85

Calls 2

isVisibleMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected