11#ifndef ROOT7_RTreeViewer
12#define ROOT7_RTreeViewer
29namespace Experimental {
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
void Show(const RWebDisplayArgs &args="", bool always_start_new_browser=false)
Show or update viewer in web window If web browser already started - just refresh drawing like "reloa...
void UpdateConfig()
Update RConfig data.
std::string FormatItemName(const std::string &name)
Format item name used in draw expression.
bool SuggestLeaf(const TLeaf *leaf)
Suggest to use leaf in the gui Normally just assign as last edited expression.
std::string fLastSendProgress
! last send progress to client
void SetTree(TTree *tree)
assign new TTree to the viewer
void SendProgress(bool completed=false)
Send progress to the client.
std::string GetWindowAddr() const
Return URL address of web window used for tree viewer.
bool GetShowHierarchy() const
Returns default hierarchy browser visibility.
void SetTitle(const std::string &title)
const std::string & GetTitle() const
void Update()
Update tree viewer in all web displays.
void InvokeTreeDraw(const std::string &json)
Invoke tree drawing.
std::string fTitle
! title of tree viewer
static RTreeViewer * NewViewer(TTree *)
Create new viewer Method used for plugin.
PerformDrawCallback_t fCallback
! callback invoked when tree draw performed
void SendCfg(unsigned connid)
Send data for initialize viewer.
void SetShowHierarchy(bool on=true)
Configures default hierarchy browser visibility, only has effect before showing web window.
std::function< void(const std::string &)> PerformDrawCallback_t
bool SuggestExpression(const std::string &expr)
Suggest to use expression in the gui Normally just assign as last edited expression.
virtual ~RTreeViewer()
destructor
void WebWindowConnect(unsigned connid)
react on new connection
std::unique_ptr< TProgressTimer > fProgrTimer
! timer used to get draw progress
void AddBranches(TObjArray *branches)
Add branches to config.
std::shared_ptr< RWebWindow > fWebWindow
! web window
void WebWindowCallback(unsigned connid, const std::string &arg)
receive data from client
RConfig fCfg
! configuration, exchanged between client and server
RTreeViewer(TTree *tree=nullptr)
constructor
TTree * fTree
! TTree to show
bool SuggestBranch(const TBranch *branch)
Suggest to use branch in the gui Normally just assign as last edited expression.
bool fShowHierarchy
! show TTree hierarchy
void SetCallback(PerformDrawCallback_t func)
Holds different arguments for starting browser with RWebDisplayHandle::Display() method.
A TTree is a list of TBranches.
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
A TTree represents a columnar dataset.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
RBranchInfo(const std::string &_name, const std::string &_title)
std::vector< RBranchInfo > fBranches