MCPcopy Create free account
hub / github.com/davisking/dlib / perform_redo

Method perform_redo

tools/imglab/src/metadata_editor.cpp:630–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628// ----------------------------------------------------------------------------------------
629
630void metadata_editor::
631perform_redo()
632{
633 if (!redo_history.empty())
634 {
635 undo_history.push_back(metadata.images[image_pos].boxes);
636 if (undo_history.size() > MAX_UNDO_HISTORY)
637 undo_history.erase(undo_history.begin());
638
639 metadata.images[image_pos].boxes = redo_history.back();
640 redo_history.pop_back();
641 display.clear_overlay();
642 display.add_overlay(get_overlays(metadata.images[image_pos], string_to_color));
643 }
644}
645
646// ----------------------------------------------------------------------------------------
647

Callers

nothing calls this directly

Calls 10

get_overlaysFunction · 0.85
eraseMethod · 0.80
clear_overlayMethod · 0.80
emptyMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45
add_overlayMethod · 0.45

Tested by

no test coverage detected