6#include <nlohmann/json.hpp>
43std::runtime_error
busyError( std::string_view what );
named object in the data model
Definition MRObject.h:61
Expected< std::shared_ptr< Object > > resolveId(uint64_t id)
uint64_t idOf(const Object *obj)
Pointer -> id (as a JSON number). Matches the ##<id> suffix in ImGui labels for the same object.
Color parseColor(const nlohmann::json &j, std::string_view field)
Color from [r, g, b] or [r, g, b, a] floats in [0, 1].
tl::expected< T, E > Expected
Definition MRExpected.h:31
std::string waitFramesAfterInput(const std::function< void()> &after={})
void runOnMainThread(const std::function< void()> &func)
CommandLoop::runCommandFromGUIThread, but throws busyError if the main thread does not start func in ...
nlohmann::json inputResult(std::string busy)
The result of a tool that sends an input: {}, or {busy: <message>} from waitFramesAfterInput
constexpr std::chrono::seconds cMainThreadTimeout
Definition MRMcpCommon.h:40
std::runtime_error busyError(std::string_view what)
The error for a main thread that did not respond within cMainThreadTimeout
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8