MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / UpdatePredefinedColor

Method UpdatePredefinedColor

Explore/MapNewView.cpp:513–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513void MapCanvas::UpdatePredefinedColor(const wxString& lbl, const wxColor& new_color)
514{
515 // update predefined color, if user change the color on legend pane
516 std::map<wxString, wxColour>::iterator it;
517 for (it =lbl_color_dict.begin(); it!=lbl_color_dict.end(); it++) {
518 wxString predefined_lbl = it->first;
519 if ( lbl.StartsWith(predefined_lbl)) {
520 lbl_color_dict[predefined_lbl] = new_color;
521 }
522 }
523}
524
525std::vector<bool> MapCanvas::AddNeighborsToSelection(GalWeight* gal_weights, wxMemoryDC &dc)
526{

Callers 3

OnCategoryFillColorMethod · 0.80
OnCategoryFillOpacityMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected