Logo ROOT   6.12/07
Reference Guide
List of all members | Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ROOT::Experimental::TDrawingOptsBaseNoDefault Class Reference

Definition at line 53 of file TDrawingOptsBase.hxx.

Classes

class  OptsAttrRefArr
 

Public Member Functions

 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

 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)
 

Static Protected Member Functions

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...
 

Private Member Functions

OptsAttrRefArr< TColor > & GetAttrsRefArr (TColor *)
 Access to the attribute tables (non-const version). More...
 
OptsAttrRefArr< long long > & GetAttrsRefArr (long long *)
 
OptsAttrRefArr< double > & GetAttrsRefArr (double *)
 
const OptsAttrRefArr< TColor > & GetAttrsRefArr (TColor *) const
 Access to the attribute tables (const version). More...
 
const OptsAttrRefArr< long long > & GetAttrsRefArr (long long *) const
 
const OptsAttrRefArr< double > & GetAttrsRefArr (double *) const
 

Private Attributes

TCanvasfCanvas = nullptr
 The TCanvas holding the TDrawable (or its TPad). More...
 
OptsAttrRefArr< TColorfColorIdx
 Indexes of the TCanvas's color table entries used by this options object. More...
 
OptsAttrRefArr< double > fFPIdx
 Indexes of the TCanvas's floating point table entries used by this options object. More...
 
OptsAttrRefArr< long long > fIntIdx
 Indexes of the TCanvas's integer table entries used by this options object. More...
 
std::string fName
 Name of these drawing options, e.g. More...
 

Friends

template<class PRIMITIVE >
class TDrawingAttrRef
 

#include <ROOT/TDrawingOptsBase.hxx>

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

Constructor & Destructor Documentation

◆ TDrawingOptsBaseNoDefault() [1/4]

TDrawingOptsBaseNoDefault::TDrawingOptsBaseNoDefault ( TPadBase pad,
std::string_view  name 
)
protected

Construct from the pad that holds our TDrawable.

Definition at line 30 of file TDrawingOptsBase.cxx.

◆ TDrawingOptsBaseNoDefault() [2/4]

ROOT::Experimental::TDrawingOptsBaseNoDefault::TDrawingOptsBaseNoDefault ( )
default

◆ ~TDrawingOptsBaseNoDefault()

TDrawingOptsBaseNoDefault::~TDrawingOptsBaseNoDefault ( )

Definition at line 56 of file TDrawingOptsBase.cxx.

◆ TDrawingOptsBaseNoDefault() [3/4]

TDrawingOptsBaseNoDefault::TDrawingOptsBaseNoDefault ( const TDrawingOptsBaseNoDefault other)

Definition at line 63 of file TDrawingOptsBase.cxx.

◆ TDrawingOptsBaseNoDefault() [4/4]

ROOT::Experimental::TDrawingOptsBaseNoDefault::TDrawingOptsBaseNoDefault ( TDrawingOptsBaseNoDefault &&  other)
default

Member Function Documentation

◆ Get() [1/2]

template<class PRIMITIVE >
PRIMITIVE& ROOT::Experimental::TDrawingOptsBaseNoDefault::Get ( TDrawingAttrRef< PRIMITIVE >  ref)
inline

Access to the attribute (non-const version).

Definition at line 172 of file TDrawingOptsBase.hxx.

◆ Get() [2/2]

template<class PRIMITIVE >
const PRIMITIVE& ROOT::Experimental::TDrawingOptsBaseNoDefault::Get ( TDrawingAttrRef< PRIMITIVE >  ref) const
inline

Access to the attribute (const version).

Definition at line 175 of file TDrawingOptsBase.hxx.

◆ GetAttrsRefArr() [1/6]

OptsAttrRefArr<TColor>& ROOT::Experimental::TDrawingOptsBaseNoDefault::GetAttrsRefArr ( TColor )
inlineprivate

Access to the attribute tables (non-const version).

Definition at line 108 of file TDrawingOptsBase.hxx.

◆ GetAttrsRefArr() [2/6]

OptsAttrRefArr<long long>& ROOT::Experimental::TDrawingOptsBaseNoDefault::GetAttrsRefArr ( long long *  )
inlineprivate

Definition at line 109 of file TDrawingOptsBase.hxx.

◆ GetAttrsRefArr() [3/6]

OptsAttrRefArr<double>& ROOT::Experimental::TDrawingOptsBaseNoDefault::GetAttrsRefArr ( double *  )
inlineprivate

Definition at line 110 of file TDrawingOptsBase.hxx.

◆ GetAttrsRefArr() [4/6]

const OptsAttrRefArr<TColor>& ROOT::Experimental::TDrawingOptsBaseNoDefault::GetAttrsRefArr ( TColor ) const
inlineprivate

Access to the attribute tables (const version).

Definition at line 113 of file TDrawingOptsBase.hxx.

◆ GetAttrsRefArr() [5/6]

const OptsAttrRefArr<long long>& ROOT::Experimental::TDrawingOptsBaseNoDefault::GetAttrsRefArr ( long long *  ) const
inlineprivate

Definition at line 114 of file TDrawingOptsBase.hxx.

◆ GetAttrsRefArr() [6/6]

const OptsAttrRefArr<double>& ROOT::Experimental::TDrawingOptsBaseNoDefault::GetAttrsRefArr ( double *  ) const
inlineprivate

Definition at line 115 of file TDrawingOptsBase.hxx.

◆ GetCanvas() [1/2]

TCanvas& ROOT::Experimental::TDrawingOptsBaseNoDefault::GetCanvas ( )
inlineprotected

The TCanvas holding the TDrawable (or its TPad) (non-const version).

Definition at line 132 of file TDrawingOptsBase.hxx.

◆ GetCanvas() [2/2]

const TCanvas& ROOT::Experimental::TDrawingOptsBaseNoDefault::GetCanvas ( ) const
inlineprotected

The TCanvas holding the TDrawable (or its TPad) (const version).

Definition at line 135 of file TDrawingOptsBase.hxx.

◆ GetDefaultCanvas()

ROOT::Experimental::TPadBase & TDrawingOptsBaseNoDefault::GetDefaultCanvas ( const TStyle style)
staticprotected

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.

Definition at line 33 of file TDrawingOptsBase.cxx.

◆ GetName()

const std::string& ROOT::Experimental::TDrawingOptsBaseNoDefault::GetName ( ) const
inlineprotected

Get the (style config) name of this option set.

Definition at line 129 of file TDrawingOptsBase.hxx.

◆ IsDefaultCanvas()

bool TDrawingOptsBaseNoDefault::IsDefaultCanvas ( const TPadBase canv)
staticprotected

Whether the canvas is one of the canvases used to store attribute defaults.

Definition at line 46 of file TDrawingOptsBase.cxx.

◆ Register()

template<class PRIMITIVE >
TDrawingAttrRef<PRIMITIVE> ROOT::Experimental::TDrawingOptsBaseNoDefault::Register ( const PRIMITIVE &  val)
inlineprotected

Definition at line 138 of file TDrawingOptsBase.hxx.

◆ SameAs() [1/2]

template<class PRIMITIVE >
TDrawingAttrRef<PRIMITIVE> ROOT::Experimental::TDrawingOptsBaseNoDefault::SameAs ( TDrawingAttrRef< PRIMITIVE >  idx)
inlineprotected

Definition at line 150 of file TDrawingOptsBase.hxx.

◆ SameAs() [2/2]

template<class PRIMITIVE >
TDrawingAttrRef<PRIMITIVE> ROOT::Experimental::TDrawingOptsBaseNoDefault::SameAs ( const PRIMITIVE &  val)
inlineprotected

Definition at line 156 of file TDrawingOptsBase.hxx.

◆ Update()

template<class PRIMITIVE >
void ROOT::Experimental::TDrawingOptsBaseNoDefault::Update ( TDrawingAttrRef< PRIMITIVE >  idx,
const PRIMITIVE &  val 
)
inlineprotected

Definition at line 144 of file TDrawingOptsBase.hxx.

Friends And Related Function Documentation

◆ TDrawingAttrRef

template<class PRIMITIVE >
friend class TDrawingAttrRef
friend

Definition at line 162 of file TDrawingOptsBase.hxx.

Member Data Documentation

◆ fCanvas

TCanvas* ROOT::Experimental::TDrawingOptsBaseNoDefault::fCanvas = nullptr
private

The TCanvas holding the TDrawable (or its TPad).

Definition at line 92 of file TDrawingOptsBase.hxx.

◆ fColorIdx

OptsAttrRefArr<TColor> ROOT::Experimental::TDrawingOptsBaseNoDefault::fColorIdx
private

Indexes of the TCanvas's color table entries used by this options object.

Definition at line 99 of file TDrawingOptsBase.hxx.

◆ fFPIdx

OptsAttrRefArr<double> ROOT::Experimental::TDrawingOptsBaseNoDefault::fFPIdx
private

Indexes of the TCanvas's floating point table entries used by this options object.

Definition at line 105 of file TDrawingOptsBase.hxx.

◆ fIntIdx

OptsAttrRefArr<long long> ROOT::Experimental::TDrawingOptsBaseNoDefault::fIntIdx
private

Indexes of the TCanvas's integer table entries used by this options object.

Definition at line 102 of file TDrawingOptsBase.hxx.

◆ fName

std::string ROOT::Experimental::TDrawingOptsBaseNoDefault::fName
private

Name of these drawing options, e.g.

"1D"; will cause a member TLineAttr{*this, "Line"} to look for a style setting called "1D.Line.Color".

Definition at line 96 of file TDrawingOptsBase.hxx.

Libraries for ROOT::Experimental::TDrawingOptsBaseNoDefault:
[legend]

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