MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / MenuWindow

Method MenuWindow

samples/luxcoreui/uimenu.cpp:451–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449//------------------------------------------------------------------------------
450
451void LuxCoreApp::MenuWindow() {
452 if (session) {
453 const string currentRenderEngineType = config->ToProperties().Get("renderengine.type").Get<string>();
454
455 if (ImGui::MenuItem("Render Engine editor", NULL, renderEngineWindow.IsOpen()))
456 renderEngineWindow.Toggle();
457 if (ImGui::MenuItem("Sampler editor", NULL, samplerWindow.IsOpen(),
458 !boost::starts_with(currentRenderEngineType, "TILE") && !boost::starts_with(currentRenderEngineType, "RT")))
459 samplerWindow.Toggle();
460 if (ImGui::MenuItem("Pixel Filter editor", NULL, pixelFilterWindow.IsOpen()))
461 pixelFilterWindow.Toggle();
462#if !defined(LUXRAYS_DISABLE_OPENCL)
463 if (ImGui::MenuItem("OpenCL Device editor", NULL, oclDeviceWindow.IsOpen(),
464 boost::ends_with(currentRenderEngineType, "OCL")))
465 oclDeviceWindow.Toggle();
466#endif
467 if (ImGui::MenuItem("Light Strategy editor", NULL, lightStrategyWindow.IsOpen()))
468 lightStrategyWindow.Toggle();
469 if (ImGui::MenuItem("Accelerator editor", NULL, acceleratorWindow.IsOpen()))
470 acceleratorWindow.Toggle();
471 if (ImGui::MenuItem("Epsilon editor", NULL, epsilonWindow.IsOpen()))
472 epsilonWindow.Toggle();
473 ImGui::Separator();
474 if (ImGui::MenuItem("Film Radiance Groups editor", NULL, filmRadianceGroupsWindow.IsOpen()))
475 filmRadianceGroupsWindow.Toggle();
476 if (ImGui::MenuItem("Film Outputs editor", NULL, filmOutputsWindow.IsOpen()))
477 filmOutputsWindow.Toggle();
478 if (ImGui::MenuItem("Film Channels window", NULL, filmChannelsWindow.IsOpen()))
479 filmChannelsWindow.Toggle();
480 if (ImGui::MenuItem("Halt conditions", NULL, haltConditionsWindow.IsOpen()))
481 haltConditionsWindow.Toggle();
482 ImGui::Separator();
483 if (session && ImGui::MenuItem("Statistics", "j", statsWindow.IsOpen()))
484 statsWindow.Toggle();
485 }
486
487 if (ImGui::MenuItem("Log console", NULL, logWindow.IsOpen()))
488 logWindow.Toggle();
489 if (ImGui::MenuItem("Help", NULL, helpWindow.IsOpen()))
490 helpWindow.Toggle();
491}
492
493//------------------------------------------------------------------------------
494// MainMenuBar

Callers

nothing calls this directly

Calls 5

Get<string>Method · 0.80
GetMethod · 0.80
IsOpenMethod · 0.80
ToggleMethod · 0.80
ToPropertiesMethod · 0.45

Tested by

no test coverage detected