MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / lineWidthValue

Function lineWidthValue

pj_plotting/widget/src/PlotWidgetBase.cpp:63–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61} // namespace
62
63double lineWidthValue(LineWidth line_width) noexcept {
64 constexpr std::array<double, 4> kLineWidths = {1.0, 1.5, 2.0, 3.0};
65 return 1.4 * kLineWidths[static_cast<std::size_t>(line_width)];
66}
67
68double dotWidthValue(LineWidth line_width) noexcept {
69 return (lineWidthValue(line_width) * 1.5) + 1.0;

Callers 4

dotWidthValueFunction · 0.85
setStyleMethod · 0.85
lineWidthFromPixelsMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68