| 640 | } |
| 641 | |
| 642 | void AbstractMapFrame::OnSigFilterSetup(wxCommandEvent& event) |
| 643 | { |
| 644 | AbstractMapCanvas* lc = (AbstractMapCanvas*)template_canvas; |
| 645 | int t = template_canvas->cat_data.GetCurrentCanvasTmStep(); |
| 646 | double* p = a_coord->GetLocalSignificanceValues(t); |
| 647 | int n = a_coord->num_obs; |
| 648 | wxString ttl = _("Inference Settings (%d perm)"); |
| 649 | ttl = wxString::Format(ttl, a_coord->GetNumPermutations()); |
| 650 | |
| 651 | double user_sig = a_coord->GetSignificanceCutoff(); |
| 652 | int sig_filter = a_coord->GetSignificanceFilter(); |
| 653 | if (sig_filter < 0) user_sig = a_coord->GetUserCutoff(); |
| 654 | |
| 655 | InferenceSettingsDlg dlg(this, user_sig, p, n, ttl); |
| 656 | if (dlg.ShowModal() == wxID_OK) { |
| 657 | a_coord->SetSignificanceFilter(-1); |
| 658 | a_coord->SetSignificanceCutoff(dlg.GetAlphaLevel()); |
| 659 | a_coord->SetUserCutoff(dlg.GetUserInput()); |
| 660 | |
| 661 | a_coord->notifyObservers(); |
| 662 | |
| 663 | a_coord->SetBO(dlg.GetBO()); |
| 664 | a_coord->SetFDR(dlg.GetFDR()); |
| 665 | UpdateOptionMenuItems(); |
| 666 | } |
| 667 | } |
| 668 | |
| 669 | void AbstractMapFrame::CoreSelectHelper(const std::vector<bool>& elem) |
| 670 | { |
nothing calls this directly
no test coverage detected