Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RHist1Drawable Class Referencefinal

Definition at line 143 of file RHistDrawable.hxx.

Public Member Functions

 RHist1Drawable ()=default
 
template<class HIST >
 RHist1Drawable (const std::shared_ptr< HIST > &hist)
 
RHist1DrawableBar ()
 
RHist1DrawableBar (double offset, double width, bool mode3d=false)
 
RHist1DrawableError (int kind=0)
 
double GetBarOffset () const
 
double GetBarWidth () const
 
RHist1DrawableHist ()
 
RHist1DrawableLego (int kind=0)
 
RHist1DrawableLine ()
 
RHist1DrawableMarker ()
 
RHist1DrawableStar ()
 
RHist1DrawableText (bool on=true)
 
- Public Member Functions inherited from ROOT::Experimental::RHistDrawable< 1 >
 RHistDrawable ()=default
 
 RHistDrawable (const std::shared_ptr< HIST > &hist)
 
virtual ~RHistDrawable ()=default
 
std::shared_ptr< HistImpl_tGetHist () const
 
- Public Member Functions inherited from ROOT::Experimental::RHistDrawableBase
 RHistDrawableBase ()
 
RAttrFillAttrFill ()
 
RAttrLineAttrLine ()
 
RAttrMarkerAttrMarker ()
 
RAttrTextAttrText ()
 
const RAttrFillGetAttrFill () const
 
const RAttrLineGetAttrLine () const
 
const RAttrMarkerGetAttrMarker () const
 
const RAttrTextGetAttrText () const
 
RHistDrawableBaseOptimize (bool on=true)
 
RHistDrawableBaseSetAttrFill (const RAttrFill &fill)
 
RHistDrawableBaseSetAttrLine (const RAttrLine &attr)
 
RHistDrawableBaseSetAttrMarker (const RAttrMarker &attr)
 
RHistDrawableBaseSetAttrText (const RAttrText &attr)
 
- Public Member Functions inherited from ROOT::Experimental::RDrawable
 RDrawable (const std::string &type)
 
virtual ~RDrawable ()
 
void ClearStyle ()
 
const std::string & GetCssClass () const
 
const std::string & GetCssType () const
 
const std::string & GetId () const
 
void SetCssClass (const std::string &cl)
 
void SetId (const std::string &id)
 
virtual void UseStyle (const std::shared_ptr< RStyle > &style)
 

Protected Member Functions

std::unique_ptr< RDisplayItemCreateHistDisplay (const RDisplayContext &) override
 
bool Is3D () const final
 
- Protected Member Functions inherited from ROOT::Experimental::RHistDrawable< 1 >
void CollectShared (Internal::RIOSharedVector_t &vect) override
 
- Protected Member Functions inherited from ROOT::Experimental::RHistDrawableBase
std::unique_ptr< RDisplayItemDisplay (const RDisplayContext &ctxt) override
 Creates display item for drawable By default item contains drawable data itself.
 
std::string GetDrawKind () const
 
bool IsFrameRequired () const final
 
void PopulateMenu (RMenuItems &) override
 
void SetDrawKind (const std::string &kind, int sub=-1)
 
- Protected Member Functions inherited from ROOT::Experimental::RDrawable
 RDrawable (const RDrawable &)=delete
 
virtual void Execute (const std::string &)
 
RAttrMapGetAttrMap ()
 
const RAttrMapGetAttrMap () const
 
Version_t GetVersion () const
 
bool MatchSelector (const std::string &selector) const
 Preliminary method which checks if drawable matches with given selector Following selector are allowed: "type" or "#id" or ".class_name" Here type is drawable kind like 'rect' or 'pad' id is drawable identifier, specified with RDrawable::SetId() method class_name is drawable class name, specified with RDrawable::SetCssClass() method.
 
virtual void OnDisplayItemDestroyed (RDisplayItem *) const
 
RDrawableoperator= (const RDrawable &)=delete
 
virtual void SetDrawableVersion (Version_t vers)
 

Private Attributes

RAttrValue< doublefBarOffset {this, "bar_offset", 0.}
 ! bar offset
 
RAttrValue< doublefBarWidth {this, "bar_width", 1.}
 ! bar width
 
RAttrValue< boolfText {this, "text", false}
 ! draw text
 

Additional Inherited Members

- Public Types inherited from ROOT::Experimental::RHistDrawable< 1 >
using HistImpl_t = Detail::RHistImplPrecisionAgnosticBase< DIMENSIONS >
 
- Public Types inherited from ROOT::Experimental::RDrawable
using Version_t = uint64_t
 
- Protected Attributes inherited from ROOT::Experimental::RHistDrawable< 1 >
Internal::RIOShared< HistImpl_tfHistImpl
 I/O capable reference on histogram.
 

#include <ROOT/RHistDrawable.hxx>

Inheritance diagram for ROOT::Experimental::RHist1Drawable:
[legend]

Constructor & Destructor Documentation

◆ RHist1Drawable() [1/2]

ROOT::Experimental::RHist1Drawable::RHist1Drawable ( )
default

◆ RHist1Drawable() [2/2]

template<class HIST >
ROOT::Experimental::RHist1Drawable::RHist1Drawable ( const std::shared_ptr< HIST > &  hist)
inline

Definition at line 157 of file RHistDrawable.hxx.

Member Function Documentation

◆ Bar() [1/2]

RHist1Drawable & ROOT::Experimental::RHist1Drawable::Bar ( )
inline

Definition at line 159 of file RHistDrawable.hxx.

◆ Bar() [2/2]

RHist1Drawable & ROOT::Experimental::RHist1Drawable::Bar ( double  offset,
double  width,
bool  mode3d = false 
)
inline

Definition at line 160 of file RHistDrawable.hxx.

◆ CreateHistDisplay()

std::unique_ptr< RDisplayItem > RHist1Drawable::CreateHistDisplay ( const RDisplayContext ctxt)
overrideprotectedvirtual

Implements ROOT::Experimental::RHistDrawableBase.

Definition at line 28 of file RHistDrawable.cxx.

◆ Error()

RHist1Drawable & ROOT::Experimental::RHist1Drawable::Error ( int  kind = 0)
inline

Definition at line 161 of file RHistDrawable.hxx.

◆ GetBarOffset()

double ROOT::Experimental::RHist1Drawable::GetBarOffset ( ) const
inline

Definition at line 169 of file RHistDrawable.hxx.

◆ GetBarWidth()

double ROOT::Experimental::RHist1Drawable::GetBarWidth ( ) const
inline

Definition at line 170 of file RHistDrawable.hxx.

◆ Hist()

RHist1Drawable & ROOT::Experimental::RHist1Drawable::Hist ( )
inline

Definition at line 164 of file RHistDrawable.hxx.

◆ Is3D()

bool ROOT::Experimental::RHist1Drawable::Is3D ( ) const
inlinefinalprotectedvirtual

Reimplemented from ROOT::Experimental::RHistDrawableBase.

Definition at line 151 of file RHistDrawable.hxx.

◆ Lego()

RHist1Drawable & ROOT::Experimental::RHist1Drawable::Lego ( int  kind = 0)
inline

Definition at line 166 of file RHistDrawable.hxx.

◆ Line()

RHist1Drawable & ROOT::Experimental::RHist1Drawable::Line ( )
inline

Definition at line 165 of file RHistDrawable.hxx.

◆ Marker()

RHist1Drawable & ROOT::Experimental::RHist1Drawable::Marker ( )
inline

Definition at line 162 of file RHistDrawable.hxx.

◆ Star()

RHist1Drawable & ROOT::Experimental::RHist1Drawable::Star ( )
inline

Definition at line 163 of file RHistDrawable.hxx.

◆ Text()

RHist1Drawable & ROOT::Experimental::RHist1Drawable::Text ( bool  on = true)
inline

Definition at line 167 of file RHistDrawable.hxx.

Member Data Documentation

◆ fBarOffset

RAttrValue<double> ROOT::Experimental::RHist1Drawable::fBarOffset {this, "bar_offset", 0.}
private

! bar offset

Definition at line 144 of file RHistDrawable.hxx.

◆ fBarWidth

RAttrValue<double> ROOT::Experimental::RHist1Drawable::fBarWidth {this, "bar_width", 1.}
private

! bar width

Definition at line 145 of file RHistDrawable.hxx.

◆ fText

RAttrValue<bool> ROOT::Experimental::RHist1Drawable::fText {this, "text", false}
private

! draw text

Definition at line 146 of file RHistDrawable.hxx.

Libraries for ROOT::Experimental::RHist1Drawable:

The documentation for this class was generated from the following files: