MCPcopy Create free account
hub / github.com/ShenCiao/CialloResearch / ResetCtxForNextPlot

Function ResetCtxForNextPlot

imgui/implot.cpp:486–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486void ResetCtxForNextPlot(ImPlotContext* ctx) {
487 // end child window if it was made
488 if (ctx->ChildWindowMade)
489 ImGui::EndChild();
490 ctx->ChildWindowMade = false;
491 // reset the next plot/item data
492 ctx->NextPlotData.Reset();
493 ctx->NextItemData.Reset();
494 // reset labels
495 ctx->Annotations.Reset();
496 ctx->Tags.Reset();
497 // reset extents/fit
498 ctx->OpenContextThisFrame = false;
499 // reset digital plot items count
500 ctx->DigitalPlotItemCnt = 0;
501 ctx->DigitalPlotOffset = 0;
502 // nullify plot
503 ctx->CurrentPlot = NULL;
504 ctx->CurrentItem = NULL;
505 ctx->PreviousItem = NULL;
506}
507
508void ResetCtxForNextAlignedPlots(ImPlotContext* ctx) {
509 ctx->CurrentAlignmentH = NULL;

Callers 3

InitializeFunction · 0.85
BeginPlotFunction · 0.85
EndPlotFunction · 0.85

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected