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

Method MenuSampler

samples/luxcoreui/uimenu.cpp:231–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229//------------------------------------------------------------------------------
230
231void LuxCoreApp::MenuSampler() {
232 const string currentSamplerType = config->ToProperties().Get("sampler.type").Get<string>();
233
234 if (ImGui::MenuItem("RANDOM", NULL, (currentSamplerType == "RANDOM"))) {
235 samplerWindow.Close();
236 RenderConfigParse(Properties() << Property("sampler.type")("RANDOM"));
237 }
238 if (ImGui::MenuItem("SOBOL", NULL, (currentSamplerType == "SOBOL"))) {
239 samplerWindow.Close();
240 RenderConfigParse(Properties() << Property("sampler.type")("SOBOL"));
241 }
242 if (ImGui::MenuItem("METROPOLIS", NULL, (currentSamplerType == "METROPOLIS"))) {
243 samplerWindow.Close();
244 RenderConfigParse(Properties() << Property("sampler.type")("METROPOLIS"));
245 }
246}
247
248//------------------------------------------------------------------------------
249// MenuCamera

Callers

nothing calls this directly

Calls 4

Get<string>Method · 0.80
GetMethod · 0.80
ToPropertiesMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected