Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TLeafProvider Class Reference

Provider for drawing of branches / leafs in the TTree.

Definition at line 84 of file TLeafProvider.hxx.

Public Member Functions

void AdjustExpr (TString &expr, TString &name)
 
TH1DrawBranch (const TBranch *tbranch)
 
TH1DrawBranch (std::unique_ptr< RHolder > &obj)
 
TH1DrawBranchBrowsable (std::unique_ptr< RHolder > &obj)
 
TH1DrawBranchElement (std::unique_ptr< RHolder > &obj)
 
TH1DrawLeaf (std::unique_ptr< RHolder > &obj)
 
TH1DrawTree (TTree *ttree, const std::string &expr, const std::string &hname)
 
bool GetDrawExpr (const TBranch *tbranch, TString &expr, TString &name)
 
bool GetDrawExpr (const TBranchElement *tbranch, TString &expr, TString &name)
 
bool GetDrawExpr (const TLeaf *tleaf, TString &expr, TString &name)
 
bool GetDrawExpr (const TVirtualBranchBrowsable *browsable, TString &expr, TString &name)
 
- Public Member Functions inherited from ROOT::Browsable::RProvider
virtual ~RProvider ()
 Automatically unregister provider from all maps.
 

Private Attributes

void * fHandle2 {nullptr}
 ! used only for reporting progress
 

Additional Inherited Members

- Public Types inherited from ROOT::Browsable::RProvider
using ProgressFunc_t = std::function< void(float progress, void *handle)>
 
- Static Public Member Functions inherited from ROOT::Browsable::RProvider
static std::shared_ptr< RElementBrowse (std::unique_ptr< RHolder > &obj)
 Create browsable element for the object Created element may take ownership over the object.
 
static std::shared_ptr< RElementBrowseNTuple (const std::string &tuplename, const std::string &filename)
 Start browsing of RNTuple.
 
static bool CanDraw6 (const ClassArg &)
 Return true if provided class can be drawn on the TCanvas.
 
static bool CanDraw7 (const ClassArg &)
 Return true if provided class can be drawn on the RCanvas.
 
static bool CanHaveChilds (const ClassArg &)
 Return true if provided class can have childs.
 
static bool Draw6 (TVirtualPad *subpad, std::unique_ptr< RHolder > &obj, const std::string &opt="")
 Invoke drawing of object on TCanvas sub-pad All existing providers are checked, first checked are class matches (including direct parents)
 
static bool Draw7 (std::shared_ptr< ROOT::Experimental::RPadBase > &subpad, std::unique_ptr< RHolder > &obj, const std::string &opt="")
 Invoke drawing of object on RCanvas sub-pad All existing providers are checked, first checked are class matches (including direct parents)
 
static void ExtendProgressHandle (void *handle, void *handle2)
 Extend progress handle - to be able react on sub item.
 
static std::string GetClassDrawOption (const ClassArg &)
 Return configured draw option for the class.
 
static std::string GetClassIcon (const ClassArg &, bool=false)
 Return icon name for the given class - either class name or TClass *.
 
static bool IsFileFormatSupported (const std::string &extension)
 
static bool NotShowChilds (const ClassArg &)
 Check if showing of sub-elements was disabled.
 
static std::shared_ptr< RElementOpenFile (const std::string &extension, const std::string &fullname)
 
static bool ReportProgress (void *handle, float progress)
 Report running progress Returns true if handling function was invoked Method can be used to detect if there any progress handler assigned.
 
static bool SetClassDrawOption (const ClassArg &, const std::string &)
 Set draw option for the class Return true if entry for the class exists.
 
- Protected Types inherited from ROOT::Browsable::RProvider
using BrowseFunc_t = std::function< std::shared_ptr< RElement >(std::unique_ptr< RHolder > &)>
 
using BrowseNTupleFunc_t = std::function< std::shared_ptr< RElement >(const std::string &, const std::string &)>
 
using Draw6Func_t = std::function< bool(TVirtualPad *, std::unique_ptr< RHolder > &, const std::string &)>
 
using Draw7Func_t = std::function< bool(std::shared_ptr< ROOT::Experimental::RPadBase > &, std::unique_ptr< RHolder > &, const std::string &)>
 
using FileFunc_t = std::function< std::shared_ptr< RElement >(const std::string &)>
 
- Protected Member Functions inherited from ROOT::Browsable::RProvider
void RegisterBrowse (const TClass *cl, BrowseFunc_t func)
 
void RegisterClass (const std::string &clname, const std::string &iconname, const std::string &browselib="", const std::string &draw6lib="", const std::string &draw7lib="", const std::string &drawopt="")
 
void RegisterDraw6 (const TClass *cl, Draw6Func_t func)
 
void RegisterDraw7 (const TClass *cl, Draw7Func_t func)
 
void RegisterFile (const std::string &extension, FileFunc_t func)
 
void RegisterNTupleFunc (BrowseNTupleFunc_t func)
 

#include </home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master/gui/browsable/src/TLeafProvider.hxx>

Inheritance diagram for TLeafProvider:
[legend]

Member Function Documentation

◆ AdjustExpr()

void TLeafProvider::AdjustExpr ( TString expr,
TString name 
)
inline

Definition at line 137 of file TLeafProvider.hxx.

◆ DrawBranch() [1/2]

TH1 * TLeafProvider::DrawBranch ( const TBranch tbranch)
inline

Definition at line 214 of file TLeafProvider.hxx.

◆ DrawBranch() [2/2]

TH1 * TLeafProvider::DrawBranch ( std::unique_ptr< RHolder > &  obj)
inline

Definition at line 223 of file TLeafProvider.hxx.

◆ DrawBranchBrowsable()

TH1 * TLeafProvider::DrawBranchBrowsable ( std::unique_ptr< RHolder > &  obj)
inline

Definition at line 346 of file TLeafProvider.hxx.

◆ DrawBranchElement()

TH1 * TLeafProvider::DrawBranchElement ( std::unique_ptr< RHolder > &  obj)
inline

Definition at line 304 of file TLeafProvider.hxx.

◆ DrawLeaf()

TH1 * TLeafProvider::DrawLeaf ( std::unique_ptr< RHolder > &  obj)
inline

Definition at line 229 of file TLeafProvider.hxx.

◆ DrawTree()

TH1 * TLeafProvider::DrawTree ( TTree ttree,
const std::string &  expr,
const std::string &  hname 
)
inline

Definition at line 90 of file TLeafProvider.hxx.

◆ GetDrawExpr() [1/4]

bool TLeafProvider::GetDrawExpr ( const TBranch tbranch,
TString expr,
TString name 
)
inline

Definition at line 174 of file TLeafProvider.hxx.

◆ GetDrawExpr() [2/4]

bool TLeafProvider::GetDrawExpr ( const TBranchElement tbranch,
TString expr,
TString name 
)
inline

Definition at line 243 of file TLeafProvider.hxx.

◆ GetDrawExpr() [3/4]

bool TLeafProvider::GetDrawExpr ( const TLeaf tleaf,
TString expr,
TString name 
)
inline

Definition at line 196 of file TLeafProvider.hxx.

◆ GetDrawExpr() [4/4]

bool TLeafProvider::GetDrawExpr ( const TVirtualBranchBrowsable browsable,
TString expr,
TString name 
)
inline

Definition at line 316 of file TLeafProvider.hxx.

Member Data Documentation

◆ fHandle2

void* TLeafProvider::fHandle2 {nullptr}
private

! used only for reporting progress

Definition at line 86 of file TLeafProvider.hxx.

  • gui/browsable/src/TLeafProvider.hxx