9#ifndef ROOT7_RHistStatBox
10#define ROOT7_RHistStatBox
29namespace Experimental {
53 RDisplayHistStat(
const RDrawable &dr,
unsigned mask,
const std::vector<std::string> &entries,
const std::vector<std::string> &lines) :
95 std::unique_ptr<RDisplayItem>
Display(
const RDisplayContext &)
override;
115 std::unique_ptr<RDrawableReply>
Process()
override
121 if (frame) frame->GetClientRanges(
GetContext().GetConnId(), ranges);
123 auto reply = std::make_unique<RReply>();
131 reply->GetLines().emplace_back(stat->GetTitle());
133 stat->FillStatistic(
GetMask(), ranges, reply->GetLines());
152 return fAttr.template GetValue<RPadLength>(
"cornerx");
163 return fAttr.template GetValue<RPadLength>(
"cornery");
174 return fAttr.template GetValue<RPadLength>(
"width");
185 return fAttr.template GetValue<RPadLength>(
"height");
212template <
int DIMENSIONS>
226 template <
class HIST>
227 RHistStatBox(
const std::shared_ptr<HIST> &hist,
const std::string &title =
"")
229 fHistImpl = std::shared_ptr<HistImpl_t>(hist, hist->GetImpl());
241 template <
class HIST>
249 template <
class HIST>
257 template <
class HIST>
include TDocParser_001 C image html pict1_TDocParser_001 png width
Base class for RHistImplBase that abstracts out the histogram's PRECISION.
Base class for all attributes, used with RDrawable.
void SetValue(const std::string &name, bool value)
Set boolean value.
Drawing fill attributes for different objects.
Drawing line attributes for different objects.
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
virtual ~RDisplayHistStat()=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
R__ATTR_CLASS(RHistStatBoxAttrs, "", AddPadLength("cornerx", 0.02).AddPadLength("cornery", 0.02).AddPadLength("width", 0.5).AddPadLength("height", 0.2))
std::vector< std::string > lines
text lines displayed in the stat box
unsigned mask
mask used to create lines
std::vector< std::string > & GetLines()
void SetMask(unsigned _mask)
virtual ~RReply()=default
std::unique_ptr< RDrawableReply > Process() override
Base class for histogram statistic box, provides graphics attributes and virtual method for fill stat...
RHistStatBoxBase & SetCornerX(const RPadLength &pos)
const RAttrFill & GetAttrFill() const
RHistStatBoxBase & SetWidth(const RPadLength &width)
RHistStatBoxAttrs fAttr
! stat box direct attributes
const RAttrText & GetAttrText() const
void SetTitle(const std::string &title)
RPadLength GetCornerX() const
RHistStatBoxBase & SetAttrFill(const RAttrFill &fill)
RPadLength GetWidth() const
RAttrText fAttrText
! text attributes
const RAttrLine & GetAttrBorder() const
bool IsFrameRequired() const final
RPadLength GetHeight() const
virtual const std::vector< std::string > & GetEntriesNames() const
virtual void FillStatistic(unsigned, const RFrame::RUserRanges &, std::vector< std::string > &) const
RPadLength GetCornerY() const
RHistStatBoxBase & SetAttrBorder(const RAttrLine &border)
RAttrFill fAttrFill
! line attributes
RHistStatBoxBase & SetHeight(const RPadLength &height)
std::string fTitle
stat box title
RAttrLine fAttrBorder
! border attributes
RHistStatBoxBase & SetCornerY(const RPadLength &pos)
RHistStatBoxBase & SetAttrText(const RAttrText &attr)
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
std::shared_ptr< RFrame > GetFrame()
Get a frame object if exists.
std::vector< RIOSharedBase * > RIOSharedVector_t
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...