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

Method SyncVarInfoFromCoordinator

Explore/AbstractClusterMap.cpp:343–359  ·  view source on GitHub ↗

Copy everything in var_info except for current time field for each variable. Also copy over is_any_time_variant, is_any_sync_with_global_time, ref_var_index, num_time_vales, map_valid and map_error_message */

Source from the content-addressed store, hash-verified

341 variable. Also copy over is_any_time_variant, is_any_sync_with_global_time,
342 ref_var_index, num_time_vales, map_valid and map_error_message */
343void AbstractMapCanvas::SyncVarInfoFromCoordinator()
344{
345 std::vector<int>my_times(var_info.size());
346 for (int t=0; t<var_info.size(); t++) my_times[t] = var_info[t].time;
347 var_info = a_coord->var_info;
348 template_frame->ClearAllGroupDependencies();
349 for (int t=0; t<var_info.size(); t++) {
350 var_info[t].time = my_times[t];
351 template_frame->AddGroupDependancy(var_info[t].name);
352 }
353 is_any_time_variant = a_coord->is_any_time_variant;
354 is_any_sync_with_global_time = a_coord->is_any_sync_with_global_time;
355 ref_var_index = a_coord->ref_var_index;
356 num_time_vals = a_coord->num_time_vals;
357 map_valid = a_coord->map_valid;
358 map_error_message = a_coord->map_error_message;
359}
360
361void AbstractMapCanvas::TimeSyncVariableToggle(int var_index)
362{

Callers 1

updateMethod · 0.45

Calls 3

AddGroupDependancyMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected