9#ifndef ROOT7_RHistStatBox
10#define ROOT7_RHistStatBox
25namespace Experimental {
71 std::unique_ptr<RDisplayItem>
Display(
const RDisplayContext &)
override;
90 std::unique_ptr<RDrawableReply>
Process()
override
96 if (frame) frame->GetClientRanges(
GetContext().GetConnId(), ranges);
98 auto reply = std::make_unique<RReply>();
106 reply->GetLines().emplace_back(stat->GetTitle());
108 stat->FillStatistic(
GetMask(), ranges, reply->GetLines());
131template <
int DIMENSIONS>
145 template <
class HIST>
146 RHistStatBox(
const std::shared_ptr<HIST> &hist,
const std::string &title =
"")
148 fHistImpl = std::shared_ptr<HistImpl_t>(hist, hist->GetImpl());
160 template <
class HIST>
168 template <
class HIST>
176 template <
class HIST>
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t mask
Base class for RHistImplBase that abstracts out the histogram's PRECISION.
Object send to client for display of RHistStat, required to avoid sending histogram to the client.
unsigned fShowMask
initial show mask
std::vector< std::string > fLines
filled lines to show in stat box
unsigned GetShowMask() const
std::vector< std::string > fEntries
names of entries for context menu
~RDisplayHistStat() override=default
RDisplayHistStat(const RDrawable &dr, unsigned mask, const std::vector< std::string > &entries, const std::vector< std::string > &lines)
const std::vector< std::string > & GetEntries() const
RDisplayHistStat()=default
Base class for replies on RDrawableRequest.
Base class for requests which can be submitted from the clients.
const RDrawable::RDisplayContext & GetContext() const
RDrawable * GetDrawable() const
RPadBase * GetPad() const
Base class for drawable entities: objects that can be painted on a RPad.
RHist1StatBox(const std::shared_ptr< HIST > &hist, const std::string &title="")
void FillStatistic(unsigned, const RFrame::RUserRanges &, std::vector< std::string > &) const override
RHist2StatBox(const std::shared_ptr< HIST > &hist, const std::string &title="")
void FillStatistic(unsigned, const RFrame::RUserRanges &, std::vector< std::string > &) const override
RHist3StatBox(const std::shared_ptr< HIST > &hist, const std::string &title="")
void FillStatistic(unsigned, const RFrame::RUserRanges &, std::vector< std::string > &) const override
std::vector< std::string > lines
text lines displayed in the stat box
~RReply() override=default
unsigned mask
mask used to create lines
std::vector< std::string > & GetLines()
void SetMask(unsigned _mask)
std::unique_ptr< RDrawableReply > Process() override
Base class for histogram statistic box, provides graphics attributes and virtual method for fill stat...
void SetTitle(const std::string &title)
virtual const std::vector< std::string > & GetEntriesNames() const
virtual void FillStatistic(unsigned, const RFrame::RUserRanges &, std::vector< std::string > &) const
std::string fTitle
stat box title
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
Template class for statistic box for RHist class.
RHistStatBox(const std::shared_ptr< HIST > &hist, const std::string &title="")
void CollectShared(Internal::RIOSharedVector_t &vect) override
Internal::RIOShared< HistImpl_t > fHistImpl
I/O capable reference on histogram.
std::shared_ptr< HistImpl_t > GetHist() const
Extract (reference) only basic attributes from drawable, but not drawable itself.
std::shared_ptr< RFrame > GetFrame()
Get a frame object if exists.
Base class for paves with text, statistic, legends, placed relative to RFrame position and adjustable...
std::vector< RIOSharedBase * > RIOSharedVector_t
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...