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

Function selectType

source/mrviewerpy/MRPythonScene.cpp:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46template <typename T>
47bool selectType()
48{
49 auto selected = getAllObjectsInTree<VisualObject>( &SceneRoot::get(), ObjectSelectivityType::Any );
50 for ( auto& obj : selected )
51 {
52 if ( auto objConverted = obj->asType<T>() )
53 {
54 obj->select( true );
55 }
56 else
57 {
58 obj->select( false );
59 }
60 }
61 return true;
62}
63
64bool unselect()
65{

Callers

nothing calls this directly

Calls 2

getFunction · 0.50
selectMethod · 0.45

Tested by

no test coverage detected