14using namespace std::string_literals;
16const std::vector<std::string> &RHistStatBoxBase::GetEntriesNames()
const
18 static const std::vector<std::string> sEntries = {
"Title",
"Entries",
"Mean",
"Deviation",
"Ranges"};
27 if (frame) frame->GetClientRanges(ctxt.
GetConnId(), ranges);
29 std::vector<std::string> lines;
45 lines.emplace_back(
"Entries = 1");
48 lines.emplace_back(
"Mean = 2");
51 lines.emplace_back(
"Std dev = 3");
54 lines.emplace_back(
"X min = "s + std::to_string(ranges.
GetMin(0)));
55 lines.emplace_back(
"X max = "s + std::to_string(ranges.
GetMax(0)));
65 lines.emplace_back(
"Entries = 1");
68 lines.emplace_back(
"Mean x = 2");
69 lines.emplace_back(
"Mean y = 3");
73 lines.emplace_back(
"Std dev x = 5");
74 lines.emplace_back(
"Std dev y = 6");
78 lines.emplace_back(
"X min = "s + std::to_string(ranges.
GetMin(0)));
79 lines.emplace_back(
"X max = "s + std::to_string(ranges.
GetMax(0)));
80 lines.emplace_back(
"Y min = "s + std::to_string(ranges.
GetMin(1)));
81 lines.emplace_back(
"Y max = "s + std::to_string(ranges.
GetMax(1)));
90 lines.emplace_back(
"Entries = 1");
93 lines.emplace_back(
"Mean x = 2");
94 lines.emplace_back(
"Mean y = 3");
95 lines.emplace_back(
"Mean z = 4");
99 lines.emplace_back(
"Std dev x = 5");
100 lines.emplace_back(
"Std dev y = 6");
101 lines.emplace_back(
"Std dev z = 7");
105 lines.emplace_back(
"X min = "s + std::to_string(ranges.
GetMin(0)));
106 lines.emplace_back(
"X max = "s + std::to_string(ranges.
GetMax(0)));
107 lines.emplace_back(
"Y min = "s + std::to_string(ranges.
GetMin(1)));
108 lines.emplace_back(
"Y max = "s + std::to_string(ranges.
GetMax(1)));
109 lines.emplace_back(
"Z min = "s + std::to_string(ranges.
GetMin(2)));
110 lines.emplace_back(
"Z max = "s + std::to_string(ranges.
GetMax(2)));
unsigned GetConnId() const
RPadBase * GetPad() const
double GetMax(unsigned ndim) const
double GetMin(unsigned ndim) const
void FillStatistic(unsigned, const RFrame::RUserRanges &, std::vector< std::string > &) const override
void FillStatistic(unsigned, const RFrame::RUserRanges &, std::vector< std::string > &) const override
void FillStatistic(unsigned, const RFrame::RUserRanges &, std::vector< std::string > &) const override
virtual const std::vector< std::string > & GetEntriesNames() const
virtual void FillStatistic(unsigned, const RFrame::RUserRanges &, std::vector< std::string > &) const
std::unique_ptr< RDisplayItem > Display(const RDisplayContext &) override
Creates display item for drawable By default item contains drawable data itself.
unsigned fShowMask
show stat box lines
const std::string & GetTitle() const
std::shared_ptr< RFrame > GetFrame()
Get a frame object if exists.
static constexpr double s