Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ROOT::Experimental::THistDrawingOptsBase< DERIVED > Class Template Reference

template<class DERIVED>
class ROOT::Experimental::THistDrawingOptsBase< DERIVED >

Core ingredients (that do not depend on the dimensionality) or histogram drawing options.

Definition at line 59 of file THistDrawingOpts.hxx.

Public Member Functions

TColorGetFillColor ()
 
const TColorGetFillColor () const
 
TColorGetLineColor ()
 
const TColorGetLineColor () const
 
TLineAttrs::WidthGetLineWidth ()
 
const TLineAttrs::Width GetLineWidth () const
 
void SetFillColor (const TColor &col)
 The color of the histogram line. More...
 
void SetLineColor (const TColor &col)
 The color of the histogram line. More...
 
void SetLineWidth (TLineAttrs::Width width)
 The width of the histogram line. More...
 
- Public Member Functions inherited from ROOT::Experimental::TDrawingOptsBase< DERIVED >
 TDrawingOptsBase ()=default
 
 TDrawingOptsBase (TPadBase &pad, std::string_view name)
 Construct from the pad that holds our TDrawable. More...
 
void Apply (const DERIVED &other)
 Apply the given options to this option set. More...
 
- Public Member Functions inherited from ROOT::Experimental::TDrawingOptsBaseNoDefault
 TDrawingOptsBaseNoDefault ()=default
 
 TDrawingOptsBaseNoDefault (const TDrawingOptsBaseNoDefault &other)
 
 TDrawingOptsBaseNoDefault (TDrawingOptsBaseNoDefault &&other)=default
 
 ~TDrawingOptsBaseNoDefault ()
 
template<class PRIMITIVE >
PRIMITIVE & Get (TDrawingAttrRef< PRIMITIVE > ref)
 Access to the attribute (non-const version). More...
 
template<class PRIMITIVE >
const PRIMITIVE & Get (TDrawingAttrRef< PRIMITIVE > ref) const
 Access to the attribute (const version). More...
 

Protected Member Functions

 THistDrawingOptsBase ()=default
 
 THistDrawingOptsBase (TPadBase &pad, const std::string &name)
 
- Protected Member Functions inherited from ROOT::Experimental::TDrawingOptsBaseNoDefault
 TDrawingOptsBaseNoDefault (TPadBase &pad, std::string_view name)
 Construct from the pad that holds our TDrawable. More...
 
TCanvasGetCanvas ()
 The TCanvas holding the TDrawable (or its TPad) (non-const version). More...
 
const TCanvasGetCanvas () const
 The TCanvas holding the TDrawable (or its TPad) (const version). More...
 
const std::string & GetName () const
 Get the (style config) name of this option set. More...
 
template<class PRIMITIVE >
TDrawingAttrRef< PRIMITIVE > Register (const PRIMITIVE &val)
 
template<class PRIMITIVE >
TDrawingAttrRef< PRIMITIVE > SameAs (TDrawingAttrRef< PRIMITIVE > idx)
 
template<class PRIMITIVE >
TDrawingAttrRef< PRIMITIVE > SameAs (const PRIMITIVE &val)
 
template<class PRIMITIVE >
void Update (TDrawingAttrRef< PRIMITIVE > idx, const PRIMITIVE &val)
 

Private Attributes

THistCoreAttrs fHistAttrs {*this, "Hist"}
 Basic histogram attributes (line, fill etc) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ROOT::Experimental::TDrawingOptsBase< DERIVED >
static DERIVED & Default ()
 Retrieve the default drawing options for DERIVED. More...
 
static DERIVED GetDefaultForStyle (const TStyle &style)
 Retrieve the default drawing options for the given style. More...
 
- Static Protected Member Functions inherited from ROOT::Experimental::TDrawingOptsBaseNoDefault
static TPadBaseGetDefaultCanvas (const TStyle &style)
 Default attributes need to register their values in a pad - they will take this pad for default attributes of a style, as identified by the style's name. More...
 
static bool IsDefaultCanvas (const TPadBase &canv)
 Whether the canvas is one of the canvases used to store attribute defaults. More...
 

#include <ROOT/THistDrawingOpts.hxx>

Inheritance diagram for ROOT::Experimental::THistDrawingOptsBase< DERIVED >:
[legend]

Constructor & Destructor Documentation

◆ THistDrawingOptsBase() [1/2]

template<class DERIVED>
ROOT::Experimental::THistDrawingOptsBase< DERIVED >::THistDrawingOptsBase ( )
protecteddefault

◆ THistDrawingOptsBase() [2/2]

template<class DERIVED>
ROOT::Experimental::THistDrawingOptsBase< DERIVED >::THistDrawingOptsBase ( TPadBase pad,
const std::string &  name 
)
inlineprotected

Definition at line 64 of file THistDrawingOpts.hxx.

Member Function Documentation

◆ GetFillColor() [1/2]

template<class DERIVED>
TColor& ROOT::Experimental::THistDrawingOptsBase< DERIVED >::GetFillColor ( )
inline

Definition at line 80 of file THistDrawingOpts.hxx.

◆ GetFillColor() [2/2]

template<class DERIVED>
const TColor& ROOT::Experimental::THistDrawingOptsBase< DERIVED >::GetFillColor ( ) const
inline

Definition at line 81 of file THistDrawingOpts.hxx.

◆ GetLineColor() [1/2]

template<class DERIVED>
TColor& ROOT::Experimental::THistDrawingOptsBase< DERIVED >::GetLineColor ( )
inline

Definition at line 70 of file THistDrawingOpts.hxx.

◆ GetLineColor() [2/2]

template<class DERIVED>
const TColor& ROOT::Experimental::THistDrawingOptsBase< DERIVED >::GetLineColor ( ) const
inline

Definition at line 71 of file THistDrawingOpts.hxx.

◆ GetLineWidth() [1/2]

template<class DERIVED>
TLineAttrs::Width& ROOT::Experimental::THistDrawingOptsBase< DERIVED >::GetLineWidth ( )
inline

Definition at line 75 of file THistDrawingOpts.hxx.

◆ GetLineWidth() [2/2]

template<class DERIVED>
const TLineAttrs::Width ROOT::Experimental::THistDrawingOptsBase< DERIVED >::GetLineWidth ( ) const
inline

Definition at line 76 of file THistDrawingOpts.hxx.

◆ SetFillColor()

template<class DERIVED>
void ROOT::Experimental::THistDrawingOptsBase< DERIVED >::SetFillColor ( const TColor col)
inline

The color of the histogram line.

Definition at line 79 of file THistDrawingOpts.hxx.

◆ SetLineColor()

template<class DERIVED>
void ROOT::Experimental::THistDrawingOptsBase< DERIVED >::SetLineColor ( const TColor col)
inline

The color of the histogram line.

Definition at line 69 of file THistDrawingOpts.hxx.

◆ SetLineWidth()

template<class DERIVED>
void ROOT::Experimental::THistDrawingOptsBase< DERIVED >::SetLineWidth ( TLineAttrs::Width  width)
inline

The width of the histogram line.

Definition at line 74 of file THistDrawingOpts.hxx.

Member Data Documentation

◆ fHistAttrs

template<class DERIVED>
THistCoreAttrs ROOT::Experimental::THistDrawingOptsBase< DERIVED >::fHistAttrs {*this, "Hist"}
private

Basic histogram attributes (line, fill etc)

Definition at line 60 of file THistDrawingOpts.hxx.

Libraries for ROOT::Experimental::THistDrawingOptsBase< DERIVED >:
[legend]

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