MCPcopy Create free account
hub / github.com/brenocq/implot3d / RenderPlotBox

Function RenderPlotBox

implot3d.cpp:1328–1345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1326}
1327
1328void RenderPlotBox(ImDrawList* draw_list, const ImPlot3DPlot& plot) {
1329 bool active_faces[3];
1330 ImVec2 corners_pix[8];
1331 ImPlot3DPoint corners[8];
1332 int plane_2d;
1333 int axis_corners[3][2];
1334
1335 GetAxesParameters(plot, active_faces, corners_pix, corners, plane_2d, axis_corners);
1336
1337 // Render components
1338 RenderPlotBackground(draw_list, plot, corners_pix, active_faces, plane_2d, axis_corners);
1339 RenderAxisRects(draw_list, plot, corners_pix, active_faces, plane_2d, axis_corners);
1340 RenderPlotBorder(draw_list, plot, corners_pix, active_faces, plane_2d);
1341 RenderGrid(draw_list, plot, corners, active_faces, plane_2d);
1342 RenderTickMarks(draw_list, plot, corners, corners_pix, axis_corners, plane_2d);
1343 RenderTickLabels(draw_list, plot, corners, corners_pix, axis_corners);
1344 RenderAxisLabels(draw_list, plot, corners, corners_pix, axis_corners);
1345}
1346
1347//-----------------------------------------------------------------------------
1348// [SECTION] Formatter

Callers 1

SetupLockFunction · 0.85

Calls 8

GetAxesParametersFunction · 0.85
RenderPlotBackgroundFunction · 0.85
RenderAxisRectsFunction · 0.85
RenderPlotBorderFunction · 0.85
RenderGridFunction · 0.85
RenderTickMarksFunction · 0.85
RenderTickLabelsFunction · 0.85
RenderAxisLabelsFunction · 0.85

Tested by

no test coverage detected