BioDynaMo  v1.05.120-25dc9790
Public Member Functions | Private Member Functions | Private Attributes | List of all members
bdm::experimental::Style Class Reference

#include <style.h>

Inheritance diagram for bdm::experimental::Style:
[legend]
Collaboration diagram for bdm::experimental::Style:
[legend]

Public Member Functions

 Style ()
 
 ~Style ()
 
 operator TStyle * () const
 
TStyle * GetTStyle () const
 

Private Member Functions

void ToTStyle () const
 
void FromTStyle (TStyle *style)
 
 ClassDefNV (Style, 1)
 

Private Attributes

TStyle * tstyle_ = nullptr
 
TAttAxis fXaxis
 X axis attributes. More...
 
TAttAxis fYaxis
 Y axis attributes. More...
 
TAttAxis fZaxis
 Z axis attributes. More...
 
Float_t fBarWidth
 Width of bar for graphs. More...
 
Float_t fBarOffset
 Offset of bar for graphs. More...
 
Int_t fColorModelPS
 PostScript color model: 0 = RGB, 1 = CMYK. More...
 
Int_t fDrawBorder
 Flag to draw border(=1) or not (0) More...
 
Int_t fOptLogx
 True if log scale in X. More...
 
Int_t fOptLogy
 True if log scale in y. More...
 
Int_t fOptLogz
 True if log scale in z. More...
 
Int_t fOptDate
 True if date option is selected. More...
 
Int_t fOptStat
 True if option Stat is selected. More...
 
Int_t fOptTitle
 True if option Title is selected. More...
 
Int_t fOptFile
 True if option File is selected. More...
 
Int_t fOptFit
 True if option Fit is selected. More...
 
Int_t fShowEventStatus
 Show event status panel. More...
 
Int_t fShowEditor
 Show pad editor. More...
 
Int_t fShowToolBar
 Show toolbar. More...
 
Int_t fNumberContours
 Default number of contours for 2-d plots. More...
 
TAttText fAttDate
 Canvas date attribute. More...
 
Float_t fDateX
 X position of the date in the canvas (in NDC) More...
 
Float_t fDateY
 Y position of the date in the canvas (in NDC) More...
 
Float_t fEndErrorSize
 Size of lines at the end of error bars. More...
 
Float_t fErrorX
 Per cent of bin width for errors along X. More...
 
Color_t fFuncColor
 Function color. More...
 
Style_t fFuncStyle
 Function style. More...
 
Width_t fFuncWidth
 Function line width. More...
 
Color_t fGridColor
 Grid line color (if 0 use axis line color) More...
 
Style_t fGridStyle
 Grid line style. More...
 
Width_t fGridWidth
 Grid line width. More...
 
Width_t fLegendBorderSize
 Legend box border size. More...
 
Color_t fLegendFillColor
 Legend fill color. More...
 
Style_t fLegendFont
 Legend font style. More...
 
Double_t fLegendTextSize
 
Int_t fHatchesLineWidth
 Hatches line width for hatch styles > 3100. More...
 
Double_t fHatchesSpacing
 Hatches spacing for hatch styles > 3100. More...
 
Color_t fFrameFillColor
 Pad frame fill color. More...
 
Color_t fFrameLineColor
 Pad frame line color. More...
 
Style_t fFrameFillStyle
 Pad frame fill style. More...
 
Style_t fFrameLineStyle
 Pad frame line style. More...
 
Width_t fFrameLineWidth
 Pad frame line width. More...
 
Width_t fFrameBorderSize
 Pad frame border size. More...
 
Int_t fFrameBorderMode
 Pad frame border mode. More...
 
Color_t fHistFillColor
 Histogram fill color. More...
 
Color_t fHistLineColor
 Histogram line color. More...
 
Style_t fHistFillStyle
 Histogram fill style. More...
 
Style_t fHistLineStyle
 Histogram line style. More...
 
Width_t fHistLineWidth
 Histogram line width. More...
 
Bool_t fHistMinimumZero
 
Double_t fHistTopMargin
 Margin between histogram's top and pad's top. More...
 
Bool_t fCanvasPreferGL
 If true, rendering in canvas is with GL. More...
 
Color_t fCanvasColor
 Canvas color. More...
 
Width_t fCanvasBorderSize
 Canvas border size. More...
 
Int_t fCanvasBorderMode
 Canvas border mode. More...
 
Int_t fCanvasDefH
 Default canvas height. More...
 
Int_t fCanvasDefW
 Default canvas width. More...
 
Int_t fCanvasDefX
 Default canvas top X position. More...
 
Int_t fCanvasDefY
 Default canvas top Y position. More...
 
Color_t fPadColor
 Pad color. More...
 
Width_t fPadBorderSize
 Pad border size. More...
 
Int_t fPadBorderMode
 Pad border mode. More...
 
Float_t fPadBottomMargin
 Pad bottom margin. More...
 
Float_t fPadTopMargin
 Pad top margin. More...
 
Float_t fPadLeftMargin
 Pad left margin. More...
 
Float_t fPadRightMargin
 Pad right margin. More...
 
Bool_t fPadGridX
 True to get the grid along X. More...
 
Bool_t fPadGridY
 True to get the grid along Y. More...
 
Int_t fPadTickX
 True to set special pad ticks along X. More...
 
Int_t fPadTickY
 True to set special pad ticks along Y. More...
 
Float_t fPaperSizeX
 PostScript paper size along X. More...
 
Float_t fPaperSizeY
 PostScript paper size along Y. More...
 
Float_t fScreenFactor
 Multiplication factor for canvas size and position. More...
 
Color_t fStatColor
 Stat fill area color. More...
 
Color_t fStatTextColor
 Stat text color. More...
 
Width_t fStatBorderSize
 Border size of Stats PaveLabel. More...
 
Style_t fStatFont
 Font style of Stats PaveLabel. More...
 
Float_t fStatFontSize
 Font size in pixels for fonts with precision type 3. More...
 
Style_t fStatStyle
 Fill area style of Stats PaveLabel. More...
 
TString fStatFormat
 Printing format for stats. More...
 
Float_t fStatX
 X position of top right corner of stat box. More...
 
Float_t fStatY
 Y position of top right corner of stat box. More...
 
Float_t fStatW
 Width of stat box. More...
 
Float_t fStatH
 Height of stat box. More...
 
Bool_t fStripDecimals
 Strip decimals in axis labels. More...
 
Int_t fTitleAlign
 Title box alignment. More...
 
Color_t fTitleColor
 Title fill area color. More...
 
Color_t fTitleTextColor
 Title text color. More...
 
Width_t fTitleBorderSize
 Border size of Title PavelLabel. More...
 
Style_t fTitleFont
 Font style of Title PaveLabel. More...
 
Float_t fTitleFontSize
 Font size in pixels for fonts with precision type 3. More...
 
Style_t fTitleStyle
 Fill area style of title PaveLabel. More...
 
Float_t fTitleX
 X position of top left corner of title box. More...
 
Float_t fTitleY
 Y position of top left corner of title box. More...
 
Float_t fTitleW
 Width of title box. More...
 
Float_t fTitleH
 Height of title box. More...
 
Float_t fLegoInnerR
 Inner radius for cylindrical legos. More...
 
TString fHeaderPS
 User defined additional Postscript header. More...
 
TString fTitlePS
 User defined Postscript file title. More...
 
TString fFitFormat
 Printing format for fit parameters. More...
 
TString fPaintTextFormat
 Printing format for TH2::PaintText. More...
 
Float_t fLineScalePS
 Line scale factor when drawing lines on Postscript. More...
 
Int_t fJoinLinePS
 
Int_t fCapLinePS
 
Double_t fTimeOffset
 Time offset to the beginning of an axis. More...
 
Float_t fImageScaling
 

Detailed Description

This is just a replacement for TStyle until a bug related to JSON deserialization is resolved.

See also
https://root-forum.cern.ch/t/error-restoring-tstyle-from-json/44879

Definition at line 26 of file style.h.

Constructor & Destructor Documentation

◆ Style()

bdm::experimental::Style::Style ( )

Definition at line 21 of file style.cc.

◆ ~Style()

bdm::experimental::Style::~Style ( )

Definition at line 26 of file style.cc.

Member Function Documentation

◆ ClassDefNV()

bdm::experimental::Style::ClassDefNV ( Style  ,
 
)
private

◆ FromTStyle()

void bdm::experimental::Style::FromTStyle ( TStyle *  style)
private

Definition at line 194 of file style.cc.

◆ GetTStyle()

TStyle * bdm::experimental::Style::GetTStyle ( ) const

Definition at line 33 of file style.cc.

◆ operator TStyle *()

bdm::experimental::Style::operator TStyle * ( ) const

Definition at line 42 of file style.cc.

◆ ToTStyle()

void bdm::experimental::Style::ToTStyle ( ) const
private

Definition at line 45 of file style.cc.

Member Data Documentation

◆ fAttDate

TAttText bdm::experimental::Style::fAttDate
private

Canvas date attribute.

Definition at line 62 of file style.h.

◆ fBarOffset

Float_t bdm::experimental::Style::fBarOffset
private

Offset of bar for graphs.

Definition at line 46 of file style.h.

◆ fBarWidth

Float_t bdm::experimental::Style::fBarWidth
private

Width of bar for graphs.

Definition at line 45 of file style.h.

◆ fCanvasBorderMode

Int_t bdm::experimental::Style::fCanvasBorderMode
private

Canvas border mode.

Definition at line 98 of file style.h.

◆ fCanvasBorderSize

Width_t bdm::experimental::Style::fCanvasBorderSize
private

Canvas border size.

Definition at line 97 of file style.h.

◆ fCanvasColor

Color_t bdm::experimental::Style::fCanvasColor
private

Canvas color.

Definition at line 96 of file style.h.

◆ fCanvasDefH

Int_t bdm::experimental::Style::fCanvasDefH
private

Default canvas height.

Definition at line 99 of file style.h.

◆ fCanvasDefW

Int_t bdm::experimental::Style::fCanvasDefW
private

Default canvas width.

Definition at line 100 of file style.h.

◆ fCanvasDefX

Int_t bdm::experimental::Style::fCanvasDefX
private

Default canvas top X position.

Definition at line 101 of file style.h.

◆ fCanvasDefY

Int_t bdm::experimental::Style::fCanvasDefY
private

Default canvas top Y position.

Definition at line 102 of file style.h.

◆ fCanvasPreferGL

Bool_t bdm::experimental::Style::fCanvasPreferGL
private

If true, rendering in canvas is with GL.

Definition at line 95 of file style.h.

◆ fCapLinePS

Int_t bdm::experimental::Style::fCapLinePS
private

Determines the appearance of line caps on PostScript, PDF and SVG

Definition at line 154 of file style.h.

◆ fColorModelPS

Int_t bdm::experimental::Style::fColorModelPS
private

PostScript color model: 0 = RGB, 1 = CMYK.

Definition at line 47 of file style.h.

◆ fDateX

Float_t bdm::experimental::Style::fDateX
private

X position of the date in the canvas (in NDC)

Definition at line 63 of file style.h.

◆ fDateY

Float_t bdm::experimental::Style::fDateY
private

Y position of the date in the canvas (in NDC)

Definition at line 64 of file style.h.

◆ fDrawBorder

Int_t bdm::experimental::Style::fDrawBorder
private

Flag to draw border(=1) or not (0)

Definition at line 48 of file style.h.

◆ fEndErrorSize

Float_t bdm::experimental::Style::fEndErrorSize
private

Size of lines at the end of error bars.

Definition at line 65 of file style.h.

◆ fErrorX

Float_t bdm::experimental::Style::fErrorX
private

Per cent of bin width for errors along X.

Definition at line 66 of file style.h.

◆ fFitFormat

TString bdm::experimental::Style::fFitFormat
private

Printing format for fit parameters.

Definition at line 149 of file style.h.

◆ fFrameBorderMode

Int_t bdm::experimental::Style::fFrameBorderMode
private

Pad frame border mode.

Definition at line 86 of file style.h.

◆ fFrameBorderSize

Width_t bdm::experimental::Style::fFrameBorderSize
private

Pad frame border size.

Definition at line 85 of file style.h.

◆ fFrameFillColor

Color_t bdm::experimental::Style::fFrameFillColor
private

Pad frame fill color.

Definition at line 80 of file style.h.

◆ fFrameFillStyle

Style_t bdm::experimental::Style::fFrameFillStyle
private

Pad frame fill style.

Definition at line 82 of file style.h.

◆ fFrameLineColor

Color_t bdm::experimental::Style::fFrameLineColor
private

Pad frame line color.

Definition at line 81 of file style.h.

◆ fFrameLineStyle

Style_t bdm::experimental::Style::fFrameLineStyle
private

Pad frame line style.

Definition at line 83 of file style.h.

◆ fFrameLineWidth

Width_t bdm::experimental::Style::fFrameLineWidth
private

Pad frame line width.

Definition at line 84 of file style.h.

◆ fFuncColor

Color_t bdm::experimental::Style::fFuncColor
private

Function color.

Definition at line 67 of file style.h.

◆ fFuncStyle

Style_t bdm::experimental::Style::fFuncStyle
private

Function style.

Definition at line 68 of file style.h.

◆ fFuncWidth

Width_t bdm::experimental::Style::fFuncWidth
private

Function line width.

Definition at line 69 of file style.h.

◆ fGridColor

Color_t bdm::experimental::Style::fGridColor
private

Grid line color (if 0 use axis line color)

Definition at line 70 of file style.h.

◆ fGridStyle

Style_t bdm::experimental::Style::fGridStyle
private

Grid line style.

Definition at line 71 of file style.h.

◆ fGridWidth

Width_t bdm::experimental::Style::fGridWidth
private

Grid line width.

Definition at line 72 of file style.h.

◆ fHatchesLineWidth

Int_t bdm::experimental::Style::fHatchesLineWidth
private

Hatches line width for hatch styles > 3100.

Definition at line 78 of file style.h.

◆ fHatchesSpacing

Double_t bdm::experimental::Style::fHatchesSpacing
private

Hatches spacing for hatch styles > 3100.

Definition at line 79 of file style.h.

◆ fHeaderPS

TString bdm::experimental::Style::fHeaderPS
private

User defined additional Postscript header.

Definition at line 147 of file style.h.

◆ fHistFillColor

Color_t bdm::experimental::Style::fHistFillColor
private

Histogram fill color.

Definition at line 87 of file style.h.

◆ fHistFillStyle

Style_t bdm::experimental::Style::fHistFillStyle
private

Histogram fill style.

Definition at line 89 of file style.h.

◆ fHistLineColor

Color_t bdm::experimental::Style::fHistLineColor
private

Histogram line color.

Definition at line 88 of file style.h.

◆ fHistLineStyle

Style_t bdm::experimental::Style::fHistLineStyle
private

Histogram line style.

Definition at line 90 of file style.h.

◆ fHistLineWidth

Width_t bdm::experimental::Style::fHistLineWidth
private

Histogram line width.

Definition at line 91 of file style.h.

◆ fHistMinimumZero

Bool_t bdm::experimental::Style::fHistMinimumZero
private

True if default minimum is 0, false if minimum is automatic

Definition at line 92 of file style.h.

◆ fHistTopMargin

Double_t bdm::experimental::Style::fHistTopMargin
private

Margin between histogram's top and pad's top.

Definition at line 94 of file style.h.

◆ fImageScaling

Float_t bdm::experimental::Style::fImageScaling
private

Image scaling to produce high definition bitmap images

Definition at line 157 of file style.h.

◆ fJoinLinePS

Int_t bdm::experimental::Style::fJoinLinePS
private

Determines the appearance of joining lines on PostScript, PDF and SVG

Definition at line 152 of file style.h.

◆ fLegendBorderSize

Width_t bdm::experimental::Style::fLegendBorderSize
private

Legend box border size.

Definition at line 73 of file style.h.

◆ fLegendFillColor

Color_t bdm::experimental::Style::fLegendFillColor
private

Legend fill color.

Definition at line 74 of file style.h.

◆ fLegendFont

Style_t bdm::experimental::Style::fLegendFont
private

Legend font style.

Definition at line 75 of file style.h.

◆ fLegendTextSize

Double_t bdm::experimental::Style::fLegendTextSize
private

Legend text size. If 0 the size is computed automatically

Definition at line 76 of file style.h.

◆ fLegoInnerR

Float_t bdm::experimental::Style::fLegoInnerR
private

Inner radius for cylindrical legos.

Definition at line 143 of file style.h.

◆ fLineScalePS

Float_t bdm::experimental::Style::fLineScalePS
private

Line scale factor when drawing lines on Postscript.

Definition at line 151 of file style.h.

◆ fNumberContours

Int_t bdm::experimental::Style::fNumberContours
private

Default number of contours for 2-d plots.

Definition at line 61 of file style.h.

◆ fOptDate

Int_t bdm::experimental::Style::fOptDate
private

True if date option is selected.

Definition at line 52 of file style.h.

◆ fOptFile

Int_t bdm::experimental::Style::fOptFile
private

True if option File is selected.

Definition at line 55 of file style.h.

◆ fOptFit

Int_t bdm::experimental::Style::fOptFit
private

True if option Fit is selected.

Definition at line 56 of file style.h.

◆ fOptLogx

Int_t bdm::experimental::Style::fOptLogx
private

True if log scale in X.

Definition at line 49 of file style.h.

◆ fOptLogy

Int_t bdm::experimental::Style::fOptLogy
private

True if log scale in y.

Definition at line 50 of file style.h.

◆ fOptLogz

Int_t bdm::experimental::Style::fOptLogz
private

True if log scale in z.

Definition at line 51 of file style.h.

◆ fOptStat

Int_t bdm::experimental::Style::fOptStat
private

True if option Stat is selected.

Definition at line 53 of file style.h.

◆ fOptTitle

Int_t bdm::experimental::Style::fOptTitle
private

True if option Title is selected.

Definition at line 54 of file style.h.

◆ fPadBorderMode

Int_t bdm::experimental::Style::fPadBorderMode
private

Pad border mode.

Definition at line 105 of file style.h.

◆ fPadBorderSize

Width_t bdm::experimental::Style::fPadBorderSize
private

Pad border size.

Definition at line 104 of file style.h.

◆ fPadBottomMargin

Float_t bdm::experimental::Style::fPadBottomMargin
private

Pad bottom margin.

Definition at line 106 of file style.h.

◆ fPadColor

Color_t bdm::experimental::Style::fPadColor
private

Pad color.

Definition at line 103 of file style.h.

◆ fPadGridX

Bool_t bdm::experimental::Style::fPadGridX
private

True to get the grid along X.

Definition at line 110 of file style.h.

◆ fPadGridY

Bool_t bdm::experimental::Style::fPadGridY
private

True to get the grid along Y.

Definition at line 111 of file style.h.

◆ fPadLeftMargin

Float_t bdm::experimental::Style::fPadLeftMargin
private

Pad left margin.

Definition at line 108 of file style.h.

◆ fPadRightMargin

Float_t bdm::experimental::Style::fPadRightMargin
private

Pad right margin.

Definition at line 109 of file style.h.

◆ fPadTickX

Int_t bdm::experimental::Style::fPadTickX
private

True to set special pad ticks along X.

Definition at line 112 of file style.h.

◆ fPadTickY

Int_t bdm::experimental::Style::fPadTickY
private

True to set special pad ticks along Y.

Definition at line 113 of file style.h.

◆ fPadTopMargin

Float_t bdm::experimental::Style::fPadTopMargin
private

Pad top margin.

Definition at line 107 of file style.h.

◆ fPaintTextFormat

TString bdm::experimental::Style::fPaintTextFormat
private

Printing format for TH2::PaintText.

Definition at line 150 of file style.h.

◆ fPaperSizeX

Float_t bdm::experimental::Style::fPaperSizeX
private

PostScript paper size along X.

Definition at line 114 of file style.h.

◆ fPaperSizeY

Float_t bdm::experimental::Style::fPaperSizeY
private

PostScript paper size along Y.

Definition at line 115 of file style.h.

◆ fScreenFactor

Float_t bdm::experimental::Style::fScreenFactor
private

Multiplication factor for canvas size and position.

Definition at line 117 of file style.h.

◆ fShowEditor

Int_t bdm::experimental::Style::fShowEditor
private

Show pad editor.

Definition at line 58 of file style.h.

◆ fShowEventStatus

Int_t bdm::experimental::Style::fShowEventStatus
private

Show event status panel.

Definition at line 57 of file style.h.

◆ fShowToolBar

Int_t bdm::experimental::Style::fShowToolBar
private

Show toolbar.

Definition at line 59 of file style.h.

◆ fStatBorderSize

Width_t bdm::experimental::Style::fStatBorderSize
private

Border size of Stats PaveLabel.

Definition at line 120 of file style.h.

◆ fStatColor

Color_t bdm::experimental::Style::fStatColor
private

Stat fill area color.

Definition at line 118 of file style.h.

◆ fStatFont

Style_t bdm::experimental::Style::fStatFont
private

Font style of Stats PaveLabel.

Definition at line 121 of file style.h.

◆ fStatFontSize

Float_t bdm::experimental::Style::fStatFontSize
private

Font size in pixels for fonts with precision type 3.

Definition at line 123 of file style.h.

◆ fStatFormat

TString bdm::experimental::Style::fStatFormat
private

Printing format for stats.

Definition at line 125 of file style.h.

◆ fStatH

Float_t bdm::experimental::Style::fStatH
private

Height of stat box.

Definition at line 129 of file style.h.

◆ fStatStyle

Style_t bdm::experimental::Style::fStatStyle
private

Fill area style of Stats PaveLabel.

Definition at line 124 of file style.h.

◆ fStatTextColor

Color_t bdm::experimental::Style::fStatTextColor
private

Stat text color.

Definition at line 119 of file style.h.

◆ fStatW

Float_t bdm::experimental::Style::fStatW
private

Width of stat box.

Definition at line 128 of file style.h.

◆ fStatX

Float_t bdm::experimental::Style::fStatX
private

X position of top right corner of stat box.

Definition at line 126 of file style.h.

◆ fStatY

Float_t bdm::experimental::Style::fStatY
private

Y position of top right corner of stat box.

Definition at line 127 of file style.h.

◆ fStripDecimals

Bool_t bdm::experimental::Style::fStripDecimals
private

Strip decimals in axis labels.

Definition at line 130 of file style.h.

◆ fTimeOffset

Double_t bdm::experimental::Style::fTimeOffset
private

Time offset to the beginning of an axis.

Definition at line 156 of file style.h.

◆ fTitleAlign

Int_t bdm::experimental::Style::fTitleAlign
private

Title box alignment.

Definition at line 131 of file style.h.

◆ fTitleBorderSize

Width_t bdm::experimental::Style::fTitleBorderSize
private

Border size of Title PavelLabel.

Definition at line 134 of file style.h.

◆ fTitleColor

Color_t bdm::experimental::Style::fTitleColor
private

Title fill area color.

Definition at line 132 of file style.h.

◆ fTitleFont

Style_t bdm::experimental::Style::fTitleFont
private

Font style of Title PaveLabel.

Definition at line 135 of file style.h.

◆ fTitleFontSize

Float_t bdm::experimental::Style::fTitleFontSize
private

Font size in pixels for fonts with precision type 3.

Definition at line 137 of file style.h.

◆ fTitleH

Float_t bdm::experimental::Style::fTitleH
private

Height of title box.

Definition at line 142 of file style.h.

◆ fTitlePS

TString bdm::experimental::Style::fTitlePS
private

User defined Postscript file title.

Definition at line 148 of file style.h.

◆ fTitleStyle

Style_t bdm::experimental::Style::fTitleStyle
private

Fill area style of title PaveLabel.

Definition at line 138 of file style.h.

◆ fTitleTextColor

Color_t bdm::experimental::Style::fTitleTextColor
private

Title text color.

Definition at line 133 of file style.h.

◆ fTitleW

Float_t bdm::experimental::Style::fTitleW
private

Width of title box.

Definition at line 141 of file style.h.

◆ fTitleX

Float_t bdm::experimental::Style::fTitleX
private

X position of top left corner of title box.

Definition at line 139 of file style.h.

◆ fTitleY

Float_t bdm::experimental::Style::fTitleY
private

Y position of top left corner of title box.

Definition at line 140 of file style.h.

◆ fXaxis

TAttAxis bdm::experimental::Style::fXaxis
private

X axis attributes.

Definition at line 42 of file style.h.

◆ fYaxis

TAttAxis bdm::experimental::Style::fYaxis
private

Y axis attributes.

Definition at line 43 of file style.h.

◆ fZaxis

TAttAxis bdm::experimental::Style::fZaxis
private

Z axis attributes.

Definition at line 44 of file style.h.

◆ tstyle_

TStyle* bdm::experimental::Style::tstyle_ = nullptr
mutableprivate

Definition at line 38 of file style.h.


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