MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ inspect_node_graph()

MAYAFLUX_API void MayaFlux::Portal::Forma::inspect_node_graph ( )

Open or show the NodeGraphManager inspection window.

First call creates a dedicated window, builds the InspectResult, and schedules tap_all() via Bridge. Subsequent calls show() the existing window.

Definition at line 156 of file Forma.cpp.

157{
158 if (g_inspect_nodes_window) {
159 g_inspect_nodes_window->show();
160 return;
161 }
162
163 auto& atelier = internal::atelier();
164
165 g_inspect_nodes_window = atelier.create_window(
166 Core::WindowCreateInfo { .title = "NodeGraphManager", .width = k_inspect_w, .height = k_inspect_h });
167
168 auto surface = atelier.create_surface(g_inspect_nodes_window, "NodeGraphManager");
169 LayoutCursor cursor;
170 auto& result = atelier.inspector().node_graph_manager(surface, cursor);
171 atelier.bridge().spawn_sync(result.group.header.header_id, [&result] { result.tap_all(); });
172}
void spawn_sync(uint32_t id, std::function< void()> sync_fn)
Spawn a per-frame GraphicsRoutine that calls sync_fn each tick.
Definition Bridge.cpp:368
InspectResult & node_graph_manager(Surface &surface, LayoutCursor &cursor, float x_min=-0.95F, float x_max=0.95F, float row_h=0.05F)
Inspect the full NodeGraphManager state across all active tokens.
std::shared_ptr< Core::Window > create_window(const Core::WindowCreateInfo &info)
Create a window through the stored WindowManager and show it.
Definition Atelier.cpp:101
Inspector & inspector()
Inspector instance constructed during initialize.
Definition Atelier.cpp:87
Surface create_surface(std::shared_ptr< Core::Window > window, std::string name)
create_layer plus ownership of the window, as a Surface.
Definition Atelier.cpp:146
Bridge & bridge()
Bridge instance constructed during initialize.
Definition Atelier.cpp:77
std::string title
Window title/identifier.
Configuration for creating a single window instance.

References MayaFlux::Portal::Forma::internal::atelier(), MayaFlux::Portal::Forma::internal::Atelier::bridge(), MayaFlux::Portal::Forma::internal::Atelier::create_surface(), MayaFlux::Portal::Forma::internal::Atelier::create_window(), MayaFlux::Portal::Forma::internal::Atelier::inspector(), MayaFlux::Portal::Forma::Inspector::node_graph_manager(), MayaFlux::Portal::Forma::Bridge::spawn_sync(), and MayaFlux::Core::WindowCreateInfo::title.

+ Here is the call graph for this function: