Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Experimental::RLegend::REntry Class Reference

An entry in RLegend, references RDrawable and its attributes.

Author
Sergey Linev S.Lin.nosp@m.ev@g.nosp@m.si.de
Date
2019-10-09
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 64 of file RLegend.hxx.

Public Member Functions

 REntry ()=default
 REntry (const std::string &lbl, const std::string &opt)
 Create entry without reference to existing drawable object, can assign attributes.
 REntry (std::shared_ptr< RDrawable > drawable, const std::string &lbl, const std::string &opt)
 Create entry with reference to existing drawable object.
std::shared_ptr< RDrawableGetDrawable () const
bool GetError () const
bool GetFill () const
const std::string & GetLabel () const
bool GetLine () const
bool GetMarker () const
REntrySetError (bool on=true)
REntrySetFill (bool on=true)
REntrySetLabel (const std::string &lbl)
REntrySetLine (bool on=true)
REntrySetMarker (bool on=true)

Private Member Functions

void DecodeOptions (const std::string &opt)
bool IsCustomDrawable () const

Private Attributes

Internal::RIOShared< RDrawablefDrawable
 reference to RDrawable
std::string fDrawableId
 drawable id, used only when display item
bool fError {false}
 enable line, fill, marker, error showing
bool fFill {false}
std::string fLabel
 label shown for the entry
bool fLine {true}
bool fMarker {false}

Friends

class RLegend

#include <ROOT/RLegend.hxx>

Constructor & Destructor Documentation

◆ REntry() [1/3]

ROOT::Experimental::RLegend::REntry::REntry ( )
default

◆ REntry() [2/3]

ROOT::Experimental::RLegend::REntry::REntry ( const std::string & lbl,
const std::string & opt )
inline

Create entry without reference to existing drawable object, can assign attributes.

Definition at line 90 of file RLegend.hxx.

◆ REntry() [3/3]

ROOT::Experimental::RLegend::REntry::REntry ( std::shared_ptr< RDrawable > drawable,
const std::string & lbl,
const std::string & opt )
inline

Create entry with reference to existing drawable object.

Definition at line 98 of file RLegend.hxx.

Member Function Documentation

◆ DecodeOptions()

void ROOT::Experimental::RLegend::REntry::DecodeOptions ( const std::string & opt)
inlineprivate

Definition at line 78 of file RLegend.hxx.

◆ GetDrawable()

std::shared_ptr< RDrawable > ROOT::Experimental::RLegend::REntry::GetDrawable ( ) const
inline

Definition at line 120 of file RLegend.hxx.

◆ GetError()

bool ROOT::Experimental::RLegend::REntry::GetError ( ) const
inline

Definition at line 118 of file RLegend.hxx.

◆ GetFill()

bool ROOT::Experimental::RLegend::REntry::GetFill ( ) const
inline

Definition at line 112 of file RLegend.hxx.

◆ GetLabel()

const std::string & ROOT::Experimental::RLegend::REntry::GetLabel ( ) const
inline

Definition at line 106 of file RLegend.hxx.

◆ GetLine()

bool ROOT::Experimental::RLegend::REntry::GetLine ( ) const
inline

Definition at line 109 of file RLegend.hxx.

◆ GetMarker()

bool ROOT::Experimental::RLegend::REntry::GetMarker ( ) const
inline

Definition at line 115 of file RLegend.hxx.

◆ IsCustomDrawable()

bool ROOT::Experimental::RLegend::REntry::IsCustomDrawable ( ) const
inlineprivate

Definition at line 76 of file RLegend.hxx.

◆ SetError()

REntry & ROOT::Experimental::RLegend::REntry::SetError ( bool on = true)
inline

Definition at line 117 of file RLegend.hxx.

◆ SetFill()

REntry & ROOT::Experimental::RLegend::REntry::SetFill ( bool on = true)
inline

Definition at line 111 of file RLegend.hxx.

◆ SetLabel()

REntry & ROOT::Experimental::RLegend::REntry::SetLabel ( const std::string & lbl)
inline

Definition at line 105 of file RLegend.hxx.

◆ SetLine()

REntry & ROOT::Experimental::RLegend::REntry::SetLine ( bool on = true)
inline

Definition at line 108 of file RLegend.hxx.

◆ SetMarker()

REntry & ROOT::Experimental::RLegend::REntry::SetMarker ( bool on = true)
inline

Definition at line 114 of file RLegend.hxx.

◆ RLegend

friend class RLegend
friend

Definition at line 66 of file RLegend.hxx.

Member Data Documentation

◆ fDrawable

Internal::RIOShared<RDrawable> ROOT::Experimental::RLegend::REntry::fDrawable
private

reference to RDrawable

Definition at line 72 of file RLegend.hxx.

◆ fDrawableId

std::string ROOT::Experimental::RLegend::REntry::fDrawableId
private

drawable id, used only when display item

Definition at line 74 of file RLegend.hxx.

◆ fError

bool ROOT::Experimental::RLegend::REntry::fError {false}
private

enable line, fill, marker, error showing

Definition at line 70 of file RLegend.hxx.

◆ fFill

bool ROOT::Experimental::RLegend::REntry::fFill {false}
private

Definition at line 70 of file RLegend.hxx.

◆ fLabel

std::string ROOT::Experimental::RLegend::REntry::fLabel
private

label shown for the entry

Definition at line 68 of file RLegend.hxx.

◆ fLine

bool ROOT::Experimental::RLegend::REntry::fLine {true}
private

Definition at line 70 of file RLegend.hxx.

◆ fMarker

bool ROOT::Experimental::RLegend::REntry::fMarker {false}
private

Definition at line 70 of file RLegend.hxx.

Collaboration diagram for ROOT::Experimental::RLegend::REntry:
[legend]

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