So for example usage with a Tool that has a DynamicMeshComponent could be as follows: MeshElementsVisualizer->SetMeshAccessFunction(this{ DynamicMeshComponent->ProcessMesh(ProcessFunc); }); And for usage with a mesh that a Tool class owns: MeshElementsVisualizer->SetMeshAccessFunction(this{ ProcessFunc(MyInternalMesh); });