| 449 | //------------------------------------------------------------------------------ |
| 450 | |
| 451 | void 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 |
nothing calls this directly
no test coverage detected