MCPcopy Create free account
hub / github.com/SSARCandy/Coherent-Line-Drawing / OnProcessingBox

Method OnProcessingBox

src/gui.cpp:320–337  ·  view source on GitHub ↗

Comboboxes

Source from the content-addressed store, hash-verified

318
319//Comboboxes
320void MyFrame::OnProcessingBox(wxCommandEvent &event)
321{
322 std::string s = processingBox->GetValue().ToStdString();
323 drawPane->set_mode(s);
324
325 render_loop_on = (s == MODE_ETF) || (s == MODE_ETF_DEBUG);
326
327 if (s == MODE_CLD) {
328 drawPane->cld().genCLD();
329 wxString s;
330 s.Printf("FDoG: %d iterations", FDoG_iteration);
331 SetStatusText(s, 2);
332 }
333
334 addlog("[Mode Changed] " + s, wxColour(*wxBLACK));
335 drawPane->render();
336 SetRenderingState(render_loop_on);
337}
338
339//Slides: Pattern Parameter
340void MyFrame::OnSliderETFkernel(wxCommandEvent &event)

Callers

nothing calls this directly

Calls 3

set_modeMethod · 0.80
genCLDMethod · 0.80
renderMethod · 0.80

Tested by

no test coverage detected