TStyle objects may be created to define special styles.
By default ROOT creates a default style that can be accessed via the gStyle pointer.
This class includes functions to set some of the following object attributes.
All objects that can be drawn in a pad inherit from one or more attribute classes like TAttLine, TAttFill, TAttText, TAttMarker. When the objects are created, their default attributes are taken from the current style. The current style is an object of the classTStyle and can be referenced via the global variable gStyle (in TStyle.h).
ROOT provides two styles called "Default" and "Plain". The "Default" style is created simply by:
The Plain style can be used if you are working on a monochrome display or if you want to get a "conventional" Postscript output. These are the instructions in the ROOT constructor to create the Plain style.
You can set the current style with:
You can get a pointer to an existing style with:
You can create additional styles with:
In your rootlogon.C file, you can redefine the default parameters via statements like:
Note that when an object is created, its attributes are taken from the current style. For example, you may have created an histogram in a previous session, saved it in a file. Meanwhile, if you have changed the style, the histogram will be drawn with the old attributes. You can force the current style attributes to be set when you read an object from a file by calling:
before reading the objects from the file.
Let's assume you have a canvas or pad with your histogram or any other object, you can force these objects to get the attributes of the current style via:
The description of the style functions should be clear from the name of the TStyle Setters or Getters. Some functions have an extended description, in particular:
Public Types | |
| enum | { kSingleKey = (1ULL << (0)) , kOverwrite = (1ULL << (1)) , kWriteDelete = (1ULL << (2)) } |
| enum | { kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 , kBitMask = 0x00ffffff } |
| enum | EDeprecatedStatusBits { kObjInCanvas = (1ULL << (3)) } |
| enum | EPaperSize { kA4 , kUSLetter } |
| enum | EStatusBits { kCanDelete = (1ULL << (0)) , kMustCleanup = (1ULL << (3)) , kIsReferenced = (1ULL << (4)) , kHasUUID = (1ULL << (5)) , kCannotPick = (1ULL << (6)) , kNoContextMenu = (1ULL << (8)) , kInvalidObject = (1ULL << (13)) } |
Public Member Functions | |
| TStyle () | |
| Default constructor. | |
| TStyle (const char *name, const char *title) | |
| Create a new TStyle. | |
| TStyle (const TStyle &style) | |
| Copy constructor. | |
| virtual | ~TStyle () |
| Destructor. | |
| void | AbstractMethod (const char *method) const |
| Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it. | |
| virtual void | AppendPad (Option_t *option="") |
| Append graphics object to current pad. | |
| Int_t | AxisChoice (Option_t *axis) const |
| void | Browse (TBrowser *b) override |
| Browse the style object. | |
| virtual void | cd () |
| Change current style. | |
| ULong_t | CheckedHash () |
| Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. | |
| virtual const char * | ClassName () const |
| Returns name of class to which the object belongs. | |
| void | Clear (Option_t *option="") override |
| Set name and title to empty strings (""). | |
| TObject * | Clone (const char *newname="") const override |
| Make a clone of an object using the Streamer facility. | |
| Int_t | Compare (const TObject *obj) const override |
| Compare two TNamed objects. | |
| void | Copy (TAttFill &attfill) const |
| void | Copy (TAttLine &attline) const |
| void | Copy (TAttMarker &attmarker) const |
| void | Copy (TAttText &atttext) const |
| void | Copy (TObject &style) const override |
| Copy this style. | |
| virtual void | Delete (Option_t *option="") |
| Delete this object. | |
| Int_t | DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2) |
| Int_t | DistancetoPrimitive (Int_t px, Int_t py) override |
| Function used by the TStyle manager when drawing a canvas showing the current style. | |
| virtual void | Draw (Option_t *option="") |
| Default Draw method for all objects. | |
| virtual void | DrawClass () const |
| Draw class inheritance tree of the class to which this object belongs. | |
| virtual TObject * | DrawClone (Option_t *option="") const |
| Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1). | |
| virtual void | Dump () const |
| Dump contents of object on stdout. | |
| virtual void | Error (const char *method, const char *msgfmt,...) const |
| Issue error message. | |
| virtual void | Execute (const char *method, const char *params, Int_t *error=nullptr) |
| Execute method on this object with the given parameter string, e.g. | |
| virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr) |
| Execute method on this object with parameters stored in the TObjArray. | |
| virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
| Execute action corresponding to an event at (px,py). | |
| virtual void | Fatal (const char *method, const char *msgfmt,...) const |
| Issue fatal error message. | |
| virtual void | FillBuffer (char *&buffer) |
| Encode TNamed into output buffer. | |
| virtual TObject * | FindObject (const char *name) const |
| Must be redefined in derived classes. | |
| virtual TObject * | FindObject (const TObject *obj) const |
| Must be redefined in derived classes. | |
| TAttText * | GetAttDate () |
| Color_t | GetAxisColor (Option_t *axis="X") const |
| Return the axis color number in the axis. | |
| Int_t | GetAxisMaxDigits () const |
| Method returns maximum number of digits permitted for the axis labels above which the notation with 10^N is used. | |
| Float_t | GetBarOffset () const |
| Float_t | GetBarWidth () const |
| Double_t | GetCandleBoxRange () const |
| Int_t | GetCandleCircleLineWidth () const |
| Int_t | GetCandleCrossLineWidth () const |
| Bool_t | GetCandleScaled () const |
| Double_t | GetCandleWhiskerRange () const |
| Int_t | GetCanvasBorderMode () const |
| Width_t | GetCanvasBorderSize () const |
| Color_t | GetCanvasColor () const |
| Int_t | GetCanvasDefH () const |
| Int_t | GetCanvasDefW () const |
| Int_t | GetCanvasDefX () const |
| Int_t | GetCanvasDefY () const |
| Bool_t | GetCanvasPreferGL () const |
| Int_t | GetCapLinePS () const |
| Returns the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for details. | |
| Int_t | GetColorModelPS () const |
| Int_t | GetColorPalette (Int_t i) const |
| Return color number i in current palette. | |
| Float_t | GetDateX () const |
| Float_t | GetDateY () const |
| Int_t | GetDrawBorder () const |
| virtual Option_t * | GetDrawOption () const |
| Get option used by the graphics system to draw this object. | |
| Float_t | GetEndErrorSize () const |
| Float_t | GetErrorX () const |
| void | GetExponentOffset (Float_t &xoff, Float_t &yoff, Option_t *axis="X") const |
| Method returns X and Y offset of the axis 10^n notation. | |
| virtual Color_t | GetFillColor () const |
| Return the fill area color. | |
| virtual Style_t | GetFillStyle () const |
| Return the fill area style. | |
| const char * | GetFitFormat () const |
| Int_t | GetFrameBorderMode () const |
| Width_t | GetFrameBorderSize () const |
| Color_t | GetFrameFillColor () const |
| Style_t | GetFrameFillStyle () const |
| Color_t | GetFrameLineColor () const |
| Style_t | GetFrameLineStyle () const |
| Width_t | GetFrameLineWidth () const |
| Color_t | GetFuncColor () const |
| Style_t | GetFuncStyle () const |
| Width_t | GetFuncWidth () const |
| Color_t | GetGridColor () const |
| Style_t | GetGridStyle () const |
| Width_t | GetGridWidth () const |
| Int_t | GetHatchesLineWidth () const |
| Double_t | GetHatchesSpacing () const |
| const char * | GetHeaderPS () const |
| Color_t | GetHistFillColor () const |
| Style_t | GetHistFillStyle () const |
| Color_t | GetHistLineColor () const |
| Style_t | GetHistLineStyle () const |
| Width_t | GetHistLineWidth () const |
| Bool_t | GetHistMinimumZero () const |
| Double_t | GetHistTopMargin () const |
| virtual const char * | GetIconName () const |
| Returns mime type name of object. | |
| Float_t | GetImageScaling () const |
| Int_t | GetJoinLinePS () const |
| Returns the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin for details. | |
| Color_t | GetLabelColor (Option_t *axis="X") const |
| Return the label color number in the axis. | |
| Style_t | GetLabelFont (Option_t *axis="X") const |
| Return label font. | |
| Float_t | GetLabelOffset (Option_t *axis="X") const |
| Return label offset. | |
| Float_t | GetLabelSize (Option_t *axis="X") const |
| Return label size. | |
| Width_t | GetLegendBorderSize () const |
| Color_t | GetLegendFillColor () const |
| Style_t | GetLegendFillStyle () const |
| Style_t | GetLegendFont () const |
| Double_t | GetLegendTextSize () const |
| Float_t | GetLegoInnerR () const |
| virtual Color_t | GetLineColor () const |
| Return the line color. | |
| Float_t | GetLineScalePS () const |
| virtual Style_t | GetLineStyle () const |
| Return the line style. | |
| const char * | GetLineStyleString (Int_t i=1) const |
| Return line style string (used by PostScript). | |
| virtual Width_t | GetLineWidth () const |
| Return the line width. | |
| virtual Color_t | GetMarkerColor () const |
| Return the marker color. | |
| virtual Size_t | GetMarkerSize () const |
| Return the marker size. | |
| virtual Style_t | GetMarkerStyle () const |
| Return the marker style. | |
| const char * | GetName () const override |
| Returns name of object. | |
| Int_t | GetNdivisions (Option_t *axis="X") const |
| Return number of divisions. | |
| Int_t | GetNumberContours () const |
| Int_t | GetNumberOfColors () const |
| Return number of colors in the color palette. | |
| virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
| Returns string containing info about the object at position (px,py). | |
| Int_t | GetOptDate () const |
| Int_t | GetOptFile () const |
| Int_t | GetOptFit () const |
| virtual Option_t * | GetOption () const |
| Int_t | GetOptLogx () const |
| Int_t | GetOptLogy () const |
| Int_t | GetOptLogz () const |
| Int_t | GetOptStat () const |
| Int_t | GetOptTitle () const |
| Bool_t | GetOrthoCamera () const |
| Int_t | GetPadBorderMode () const |
| Width_t | GetPadBorderSize () const |
| Float_t | GetPadBottomMargin () const |
| Color_t | GetPadColor () const |
| Bool_t | GetPadGridX () const |
| Bool_t | GetPadGridY () const |
| Float_t | GetPadLeftMargin () const |
| Float_t | GetPadRightMargin () const |
| Int_t | GetPadTickX () const |
| Int_t | GetPadTickY () const |
| Float_t | GetPadTopMargin () const |
| const char * | GetPaintTextFormat () const |
| void | GetPaperSize (Float_t &xsize, Float_t &ysize) const |
| Set paper size for PostScript output. | |
| Float_t | GetScreenFactor () const |
| Int_t | GetShowEditor () const |
| Int_t | GetShowEventStatus () const |
| Int_t | GetShowToolBar () const |
| Width_t | GetStatBorderSize () const |
| Color_t | GetStatColor () const |
| Style_t | GetStatFont () const |
| Float_t | GetStatFontSize () const |
| const char * | GetStatFormat () const |
| Float_t | GetStatH () const |
| Style_t | GetStatStyle () const |
| Color_t | GetStatTextColor () const |
| Float_t | GetStatW () const |
| Float_t | GetStatX () const |
| Float_t | GetStatY () const |
| Int_t | GetStripDecimals () const |
| virtual Short_t | GetTextAlign () const |
| Return the text alignment. | |
| virtual Float_t | GetTextAngle () const |
| Return the text angle. | |
| virtual Color_t | GetTextColor () const |
| Return the text color. | |
| virtual Font_t | GetTextFont () const |
| Return the text font. | |
| virtual Float_t | GetTextSize () const |
| Return the text size. | |
| virtual Float_t | GetTextSizePercent (Float_t size) |
| Return the text in percent of the pad size. | |
| virtual Float_t | GetTextSizePixels (TVirtualPad &pad) const |
| Return the text size in pixels for specified pad. | |
| virtual Float_t | GetTextSizeRelative (TVirtualPad &pad) const |
| Return the text size in relative units. | |
| Float_t | GetTickLength (Option_t *axis="X") const |
| Return tick length. | |
| Double_t | GetTimeOffset () const |
| const char * | GetTitle () const override |
| Returns title of object. | |
| Int_t | GetTitleAlign () const |
| Width_t | GetTitleBorderSize () const |
| Color_t | GetTitleColor (Option_t *axis="X") const |
| Return title color. | |
| Color_t | GetTitleFillColor () const |
| Style_t | GetTitleFont (Option_t *axis="X") const |
| Return title font. | |
| Float_t | GetTitleFontSize () const |
| Float_t | GetTitleH () const |
| Float_t | GetTitleOffset (Option_t *axis="X") const |
| Return title offset. | |
| const char * | GetTitlePS () const |
| Float_t | GetTitleSize (Option_t *axis="X") const |
| Return title size. | |
| Style_t | GetTitleStyle () const |
| Color_t | GetTitleTextColor () const |
| Float_t | GetTitleW () const |
| Float_t | GetTitleX () const |
| Float_t | GetTitleXOffset () const |
| Float_t | GetTitleXSize () const |
| Float_t | GetTitleY () const |
| Float_t | GetTitleYOffset () const |
| Float_t | GetTitleYSize () const |
| virtual UInt_t | GetUniqueID () const |
| Return the unique object id. | |
| Bool_t | GetViolinScaled () const |
| virtual Bool_t | HandleTimer (TTimer *timer) |
| Execute action in response of a timer timing out. | |
| ULong_t | Hash () const override |
| Return hash value for this object. | |
| Bool_t | HasInconsistentHash () const |
| Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. | |
| virtual void | Info (const char *method, const char *msgfmt,...) const |
| Issue info message. | |
| virtual Bool_t | InheritsFrom (const char *classname) const |
| Returns kTRUE if object inherits from class "classname". | |
| virtual Bool_t | InheritsFrom (const TClass *cl) const |
| Returns kTRUE if object inherits from TClass cl. | |
| virtual void | Inspect () const |
| Dump contents of this object in a graphics canvas. | |
| void | InvertBit (UInt_t f) |
| TClass * | IsA () const override |
| Bool_t | IsDestructed () const |
| IsDestructed. | |
| virtual Bool_t | IsEqual (const TObject *obj) const |
| Default equal comparison (objects are equal if they have the same address in memory). | |
| virtual Bool_t | IsFolder () const |
| Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). | |
| Bool_t | IsOnHeap () const |
| Bool_t | IsReading () const |
| Bool_t | IsSortable () const override |
| virtual Bool_t | IsTransparent () const |
| Bool_t | IsZombie () const |
| void | ls (Option_t *option="") const override |
| List TNamed name and title. | |
| void | MayNotUse (const char *method) const |
| Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). | |
| virtual void | Modify () |
| virtual void | Modify () |
| virtual void | Modify () |
| virtual void | Modify () |
| virtual void | ModifyOn (TVirtualPad &pad) |
| virtual void | ModifyOn (TVirtualPad &pad) |
| virtual void | ModifyOn (TVirtualPad &pad) |
| virtual void | ModifyOn (TVirtualPad &pad) |
| virtual Bool_t | Notify () |
| This method must be overridden to handle object notification (the base implementation is no-op). | |
| void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
| Use this method to declare a method obsolete. | |
| void | operator delete (void *, size_t) |
| Operator delete for sized deallocation. | |
| void | operator delete (void *ptr) |
| Operator delete. | |
| void | operator delete (void *ptr, void *vp) |
| Only called by placement new when throwing an exception. | |
| void | operator delete[] (void *, size_t) |
| Operator delete [] for sized deallocation. | |
| void | operator delete[] (void *ptr) |
| Operator delete []. | |
| void | operator delete[] (void *ptr, void *vp) |
| Only called by placement new[] when throwing an exception. | |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz, void *vp) |
| void * | operator new[] (size_t sz) |
| void * | operator new[] (size_t sz, void *vp) |
| TStyle & | operator= (const TStyle &style) |
| Assignment operator. | |
| void | Paint (Option_t *option="") override |
| Copy this style to gStyle. | |
| virtual void | Pop () |
| Pop on object drawn in a pad to the top of the display list. | |
| void | Print (Option_t *option="") const override |
| Print TNamed name and title. | |
| virtual Int_t | Read (const char *name) |
| Read contents of object with specified name from the current directory. | |
| virtual void | RecursiveRemove (TObject *obj) |
| Recursively remove this object from a list. | |
| virtual void | Reset (Option_t *option="") |
| Reset. | |
| virtual void | ResetAttFill (Option_t *option="") |
| virtual void | ResetAttLine (Option_t *option="") |
| virtual void | ResetAttMarker (Option_t *toption="") |
| virtual void | ResetAttText (Option_t *toption="") |
| void | ResetBit (UInt_t f) |
| virtual void | SaveAs (const char *filename="", Option_t *option="") const |
| Save this object in the file specified by filename. | |
| virtual void | SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001) |
| virtual void | SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1) |
| virtual void | SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1) |
| void | SavePrimitive (std::ostream &out, Option_t *="") override |
| Save primitive as a C++ statement(s) on output stream out. | |
| void | SaveSource (const char *filename, Option_t *option=nullptr) |
| Save the current style in a C++ macro file. | |
| virtual void | SaveTextAttributes (std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1) |
| void | SetAxisColor (Color_t color=1, Option_t *axis="X") |
| Set color to draw the axis line and tick marks. | |
| void | SetAxisMaxDigits (Int_t maxd=5) |
| Method set maximum number of digits permitted for the axis labels above which the notation with 10^N is used. | |
| void | SetBarOffset (Float_t baroff=0.5) |
| void | SetBarWidth (Float_t barwidth=0.5) |
| void | SetBit (UInt_t f) |
| void | SetBit (UInt_t f, Bool_t set) |
| Set or unset the user status bits as specified in f. | |
| void | SetCandleBoxRange (Double_t bRange=0.5) |
| By setting box-range for candle plot, one can force the box of the candle-chart to cover that given fraction of the distribution. | |
| void | SetCandleCircleLineWidth (Int_t CircleLineWidth=1) |
| Set the line width of the circle marker of a candle plot ([1,5]). | |
| void | SetCandleCrossLineWidth (Int_t CrossLineWidth=1) |
| Set the line width of the cross marker of a candle plot ([1,5]). | |
| void | SetCandleScaled (Bool_t on=kFALSE) |
| void | SetCandleWhiskerRange (Double_t wRange=1.0) |
| By setting whisker-range for candle plot, one can force the whiskers to cover the fraction of the distribution. | |
| void | SetCanvasBorderMode (Int_t mode=1) |
| void | SetCanvasBorderSize (Width_t size=1) |
| void | SetCanvasColor (Color_t color=19) |
| void | SetCanvasDefH (Int_t h=500) |
| void | SetCanvasDefW (Int_t w=700) |
| void | SetCanvasDefX (Int_t topx=10) |
| void | SetCanvasDefY (Int_t topy=10) |
| void | SetCanvasPreferGL (Bool_t prefer=kTRUE) |
| void | SetCapLinePS (Int_t capline=0) |
| Set the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for details. | |
| void | SetColorModelPS (Int_t c=0) |
| Define the color model used by TPostScript and TPDF (RGB or CMYK). | |
| void | SetDateX (Float_t x=0.01) |
| void | SetDateY (Float_t y=0.01) |
| void | SetDrawBorder (Int_t drawborder=1) |
| virtual void | SetDrawOption (Option_t *option="") |
| Set drawing option for object. | |
| void | SetEndErrorSize (Float_t np=2) |
| Set the size (in pixels) of the small lines drawn at the end of the error bars (TH1 or TGraphErrors). | |
| void | SetErrorX (Float_t errorx=0.5) |
| void | SetExponentOffset (Float_t xoff=0., Float_t yoff=0., Option_t *axis="XY") |
| Method set X and Y offset of the axis 10^n notation. | |
| virtual void | SetFillAttributes () |
| virtual void | SetFillColor (Color_t fcolor) |
| Set the fill area color. | |
| void | SetFillColor (TColorNumber) |
| virtual void | SetFillColorAlpha (Color_t fcolor, Float_t falpha) |
| virtual void | SetFillStyle (Style_t fstyle) |
| Set the fill area style. | |
| void | SetFitFormat (const char *format="5.4g") |
| void | SetFrameBorderMode (Int_t mode=1) |
| void | SetFrameBorderSize (Width_t size=1) |
| void | SetFrameFillColor (Color_t color=1) |
| void | SetFrameFillStyle (Style_t styl=0) |
| void | SetFrameLineColor (Color_t color=1) |
| void | SetFrameLineStyle (Style_t styl=0) |
| void | SetFrameLineWidth (Width_t width=1) |
| void | SetFuncColor (Color_t color=1) |
| void | SetFuncStyle (Style_t style=1) |
| void | SetFuncWidth (Width_t width=4) |
| void | SetGridColor (Color_t color=0) |
| void | SetGridStyle (Style_t style=3) |
| void | SetGridWidth (Width_t width=1) |
| void | SetHatchesLineWidth (Int_t l) |
| void | SetHatchesSpacing (Double_t h) |
| void | SetHeaderPS (const char *header) |
| Define a string to be inserted in the Postscript header. | |
| void | SetHistFillColor (Color_t color=1) |
| void | SetHistFillStyle (Style_t styl=0) |
| void | SetHistLineColor (Color_t color=1) |
| void | SetHistLineStyle (Style_t styl=0) |
| void | SetHistLineWidth (Width_t width=1) |
| void | SetHistMinimumZero (Bool_t zero=kTRUE) |
| If the argument zero=kTRUE the minimum value for the Y axis of 1-d histograms is set to 0. | |
| void | SetHistTopMargin (Double_t hmax=0.05) |
| void | SetImageScaling (Float_t s) |
| void | SetIsReading (Bool_t reading=kTRUE) |
| Sets the fIsReading member to reading (default=kTRUE). | |
| void | SetJoinLinePS (Int_t joinline=0) |
| Set the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin for details. | |
| void | SetLabelColor (Color_t color=1, Option_t *axis="X") |
| Set axis labels color. | |
| void | SetLabelFont (Style_t font=62, Option_t *axis="X") |
| Set font number used to draw axis labels. | |
| void | SetLabelOffset (Float_t offset=0.005, Option_t *axis="X") |
| Set offset between axis and axis labels. | |
| void | SetLabelSize (Float_t size=0.04, Option_t *axis="X") |
| Set size of axis labels. | |
| void | SetLegendBorderSize (Width_t size=4) |
| void | SetLegendFillColor (Color_t color=0) |
| void | SetLegendFillStyle (Style_t style=1001) |
| void | SetLegendFont (Style_t font=62) |
| void | SetLegendTextSize (Double_t size=0.) |
| void | SetLegoInnerR (Float_t rad=0.5) |
| virtual void | SetLineAttributes () |
| virtual void | SetLineColor (Color_t lcolor) |
| Set the line color. | |
| void | SetLineColor (TColorNumber lcolor) |
| virtual void | SetLineColorAlpha (Color_t lcolor, Float_t lalpha) |
| void | SetLineScalePS (Float_t scale=3) |
| virtual void | SetLineStyle (Style_t lstyle) |
| Set the line style. | |
| void | SetLineStyleString (Int_t i, const char *text) |
| Set line style string using the PostScript convention. | |
| virtual void | SetLineWidth (Width_t lwidth) |
| Set the line width. | |
| virtual void | SetMarkerAttributes () |
| virtual void | SetMarkerColor (Color_t mcolor=1) |
| Set the marker color. | |
| void | SetMarkerColor (TColorNumber lcolor) |
| virtual void | SetMarkerColorAlpha (Color_t mcolor, Float_t malpha) |
| virtual void | SetMarkerSize (Size_t msize=1) |
| Set the marker size. | |
| virtual void | SetMarkerStyle (Style_t mstyle=1) |
| Set the marker style. | |
| virtual void | SetName (const char *name) |
| Set the name of the TNamed. | |
| virtual void | SetNameTitle (const char *name, const char *title) |
| Set all the TNamed parameters (name and title). | |
| void | SetNdivisions (Int_t n=510, Option_t *axis="X") |
| Set the number of divisions to draw an axis. | |
| void | SetNumberContours (Int_t number=20) |
| Set the default number of contour levels when drawing 2-d plots. | |
| void | SetOptDate (Int_t datefl=1) |
| If optdate is non null, the current date/time will be printed in the canvas. | |
| void | SetOptFile (Int_t file=1) |
| void | SetOptFit (Int_t fit=1) |
| The type of information about fit parameters printed in the histogram statistics box can be selected via the parameter mode. | |
| void | SetOptLogx (Int_t logx=1) |
| void | SetOptLogy (Int_t logy=1) |
| void | SetOptLogz (Int_t logz=1) |
| void | SetOptStat (Int_t stat=1) |
| The type of information printed in the histogram statistics box can be selected via the parameter mode. | |
| void | SetOptStat (Option_t *stat) |
| The parameter mode can be any combination of kKsSiourRmMen. | |
| void | SetOptTitle (Int_t tit=1) |
| void | SetOrthoCamera (Bool_t on=kTRUE) |
| void | SetPadBorderMode (Int_t mode=1) |
| void | SetPadBorderSize (Width_t size=1) |
| void | SetPadBottomMargin (Float_t margin=0.1) |
| void | SetPadColor (Color_t color=19) |
| void | SetPadGridX (Bool_t gridx) |
| void | SetPadGridY (Bool_t gridy) |
| void | SetPadLeftMargin (Float_t margin=0.1) |
| void | SetPadRightMargin (Float_t margin=0.1) |
| void | SetPadTickX (Int_t tickx) |
| void | SetPadTickY (Int_t ticky) |
| void | SetPadTopMargin (Float_t margin=0.1) |
| void | SetPaintTextFormat (const char *format="g") |
| void | SetPalette (Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.) |
| See TColor::SetPalette. | |
| void | SetPalette (TString fileName, Float_t alpha=1.) |
| void | SetPaperSize (EPaperSize size) |
| Set paper size for PostScript output. | |
| void | SetPaperSize (Float_t xsize=20, Float_t ysize=26) |
| Set paper size for PostScript output. | |
| void | SetScreenFactor (Float_t factor=1) |
| void | SetStatBorderSize (Width_t size=2) |
| void | SetStatColor (Color_t color=19) |
| void | SetStatFont (Style_t font=62) |
| void | SetStatFontSize (Float_t size=0) |
| void | SetStatFormat (const char *format="6.4g") |
| void | SetStatH (Float_t h=0.1) |
| void | SetStatStyle (Style_t style=1001) |
| void | SetStatTextColor (Color_t color=1) |
| void | SetStatW (Float_t w=0.19) |
| void | SetStatX (Float_t x=0) |
| void | SetStatY (Float_t y=0) |
| void | SetStripDecimals (Bool_t strip=kTRUE) |
| Set option to strip decimals when drawing axis labels. | |
| virtual void | SetTextAlign (Short_t align=11) |
| Set the text alignment. | |
| virtual void | SetTextAngle (Float_t tangle=0) |
| Set the text angle. | |
| virtual void | SetTextAttributes () |
| virtual void | SetTextColor (Color_t tcolor=1) |
| Set the text color. | |
| void | SetTextColor (TColorNumber lcolor) |
| virtual void | SetTextColorAlpha (Color_t tcolor, Float_t talpha) |
| virtual void | SetTextFont (Font_t tfont=62) |
| Set the text font. | |
| virtual void | SetTextSize (Float_t tsize=1) |
| Set the text size. | |
| virtual void | SetTextSizePixels (Int_t npixels) |
| Set the text size in pixel. | |
| void | SetTickLength (Float_t length=0.03, Option_t *axis="X") |
| Set the tick marks length for an axis. | |
| void | SetTimeOffset (Double_t toffset) |
| Change the time offset for time plotting. | |
| virtual void | SetTitle (const char *title="") |
| Set the title of the TNamed. | |
| void | SetTitleAlign (Int_t a=13) |
| void | SetTitleBorderSize (Width_t size=2) |
| void | SetTitleColor (Color_t color=1, Option_t *axis="X") |
| void | SetTitleFillColor (Color_t color=1) |
| void | SetTitleFont (Style_t font=62, Option_t *axis="X") |
| void | SetTitleFontSize (Float_t size=0) |
| void | SetTitleH (Float_t h=0) |
| void | SetTitleOffset (Float_t offset=1, Option_t *axis="X") |
| Specify a parameter offset to control the distance between the axis and the axis title. | |
| void | SetTitlePS (const char *pstitle) |
| Define a string to be used in the %Title of the Postscript files. | |
| void | SetTitleSize (Float_t size=0.02, Option_t *axis="X") |
| void | SetTitleStyle (Style_t style=1001) |
| void | SetTitleTextColor (Color_t color=1) |
| void | SetTitleW (Float_t w=0) |
| void | SetTitleX (Float_t x=0) |
| void | SetTitleXOffset (Float_t offset=1) |
| void | SetTitleXSize (Float_t size=0.02) |
| void | SetTitleY (Float_t y=0.985) |
| void | SetTitleYOffset (Float_t offset=1) |
| void | SetTitleYSize (Float_t size=0.02) |
| virtual void | SetUniqueID (UInt_t uid) |
| Set the unique object id. | |
| void | SetViolinScaled (Bool_t on=kTRUE) |
| virtual Int_t | Sizeof () const |
| Return size of the TNamed part of the TObject. | |
| void | Streamer (TBuffer &) override |
| Stream an object of class TObject. | |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
| virtual void | SysError (const char *method, const char *msgfmt,...) const |
| Issue system error message. | |
| Bool_t | TestBit (UInt_t f) const |
| Int_t | TestBits (UInt_t f) const |
| void | ToggleEditor () |
| void | ToggleEventStatus () |
| void | ToggleToolBar () |
| virtual void | UseCurrentStyle () |
| Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. | |
| virtual void | Warning (const char *method, const char *msgfmt,...) const |
| Issue warning message. | |
| virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) |
| Write this object to the current directory. | |
| virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const |
| Write this object to the current directory. | |
Static Public Member Functions | |
| static void | BuildStyles () |
| Create some standard styles. | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
| static Longptr_t | GetDtorOnly () |
| Return destructor only flag. | |
| static Width_t | GetMarkerLineWidth (Style_t style) |
| static Style_t | GetMarkerStyleBase (Style_t style) |
| static Bool_t | GetObjectStat () |
| Get status of object stat flag. | |
| static void | SetDtorOnly (void *obj) |
| Set destructor only flag. | |
| static void | SetObjectStat (Bool_t stat) |
| Turn on/off tracking of objects in the TObjectTable. | |
Protected Types | |
| enum | { kOnlyPrepStep = (1ULL << (3)) } |
Protected Member Functions | |
| virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
| Interface to ErrorHandler (protected). | |
| void | MakeZombie () |
| void | SavePrimitiveNameTitle (std::ostream &out, const char *variable_name) |
| Save object name and title into the output stream "out". | |
Static Protected Member Functions | |
| static void | SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE) |
| Save object constructor in the output stream "out". | |
| static void | SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr) |
| Save invocation of primitive Draw() method Skipped if option contains "nodraw" string. | |
| static TString | SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0) |
| Save array in the output stream "out" as vector. | |
Protected Attributes | |
| Color_t | fFillColor |
| Fill area color. | |
| Style_t | fFillStyle |
| Fill area style. | |
| Color_t | fLineColor |
| Line color. | |
| Width_t | fLineWidth |
| Line width. | |
| Color_t | fMarkerColor |
| Marker color. | |
| Size_t | fMarkerSize |
| Marker size. | |
| Style_t | fMarkerStyle |
| Marker style. | |
| TString | fName |
| Short_t | fTextAlign |
| Text alignment. | |
| Float_t | fTextAngle |
| Text angle. | |
| Color_t | fTextColor |
| Text color. | |
| Font_t | fTextFont |
| Text font. | |
| Float_t | fTextSize |
| Text size. | |
| TString | fTitle |
Static Private Member Functions | |
| static void | AddToTObjectTable (TObject *) |
| Private helper function which will dispatch to TObjectTable::AddObj. | |
Private Attributes | |
| TAttText | fAttDate |
| Canvas date attribute. | |
| Int_t | fAxisMaxDigits |
| Number of digits above which the 10^N notation is used for axis. | |
| Float_t | fBarOffset |
| Offset of bar for graphs. | |
| Float_t | fBarWidth |
| Width of bar for graphs. | |
| UInt_t | fBits |
| bit field status word | |
| Double_t | fCandleBoxRange |
| Candle plot, The fraction which is covered by the box (0 < x < 1), default 0.5. | |
| Int_t | fCandleCircleLineWidth |
| Line width of the circle marker of a candle plot ([1,5]). | |
| Int_t | fCandleCrossLineWidth |
| Line width of the cross marker of a candle plot ([1,5]). | |
| Bool_t | fCandleScaled |
| Candle plot, shall the box-width be scaled to each other by the integral of a box? | |
| Double_t | fCandleWhiskerRange |
| Candle plot, the fraction which is covered by the whiskers (0 < x < 1), default 1. | |
| Int_t | fCanvasBorderMode |
| Canvas border mode. | |
| Width_t | fCanvasBorderSize |
| Canvas border size. | |
| Color_t | fCanvasColor |
| Canvas color. | |
| Int_t | fCanvasDefH |
| Default canvas height. | |
| Int_t | fCanvasDefW |
| Default canvas width. | |
| Int_t | fCanvasDefX |
| Default canvas top X position. | |
| Int_t | fCanvasDefY |
| Default canvas top Y position. | |
| Bool_t | fCanvasPreferGL |
| If true, rendering in canvas is with GL. | |
| Int_t | fCapLinePS |
| Determines the appearance of line caps on PostScript, PDF and SVG. | |
| Int_t | fColorModelPS |
| PostScript color model: 0 = RGB, 1 = CMYK. | |
| Float_t | fDateX |
| X position of the date in the canvas (in NDC). | |
| Float_t | fDateY |
| Y position of the date in the canvas (in NDC). | |
| Int_t | fDrawBorder |
| Flag to draw border(=1) or not (0). | |
| Float_t | fEndErrorSize |
| Size of lines at the end of error bars. | |
| Float_t | fErrorX |
| Per cent of bin width for errors along X. | |
| TString | fFitFormat |
| Printing format for fit parameters. | |
| Int_t | fFrameBorderMode |
| Pad frame border mode. | |
| Width_t | fFrameBorderSize |
| Pad frame border size. | |
| Color_t | fFrameFillColor |
| Pad frame fill color. | |
| Style_t | fFrameFillStyle |
| Pad frame fill style. | |
| Color_t | fFrameLineColor |
| Pad frame line color. | |
| Style_t | fFrameLineStyle |
| Pad frame line style. | |
| Width_t | fFrameLineWidth |
| Pad frame line width. | |
| Color_t | fFuncColor |
| Function color. | |
| Style_t | fFuncStyle |
| Function style. | |
| Width_t | fFuncWidth |
| Function line width. | |
| Color_t | fGridColor |
| Grid line color (if 0 use axis line color). | |
| Style_t | fGridStyle |
| Grid line style. | |
| Width_t | fGridWidth |
| Grid line width. | |
| Int_t | fHatchesLineWidth |
| Hatches line width for hatch styles > 3100. | |
| Double_t | fHatchesSpacing |
| Hatches spacing for hatch styles > 3100. | |
| TString | fHeaderPS |
| User defined additional Postscript header. | |
| Color_t | fHistFillColor |
| Histogram fill color. | |
| Style_t | fHistFillStyle |
| Histogram fill style. | |
| Color_t | fHistLineColor |
| Histogram line color. | |
| Style_t | fHistLineStyle |
| Histogram line style. | |
| Width_t | fHistLineWidth |
| Histogram line width. | |
| Bool_t | fHistMinimumZero |
| True if default minimum is 0, false if minimum is automatic. | |
| Double_t | fHistTopMargin |
| Margin between histogram's top and pad's top. | |
| Float_t | fImageScaling |
| Image scaling to produce high definition bitmap images. | |
| Bool_t | fIsReading |
| ! Set to FALSE when userclass::UseCurrentStyle is called by the style manager | |
| Int_t | fJoinLinePS |
| Determines the appearance of joining lines on PostScript, PDF and SVG. | |
| Width_t | fLegendBorderSize |
| Legend box border size. | |
| Color_t | fLegendFillColor |
| Legend fill color. | |
| Style_t | fLegendFillStyle |
| Legend fill style. | |
| Style_t | fLegendFont |
| Legend font style. | |
| Double_t | fLegendTextSize |
| Legend text size. If 0 the size is computed automatically. | |
| Float_t | fLegoInnerR |
| Inner radius for cylindrical legos. | |
| Float_t | fLineScalePS |
| Line scale factor when drawing lines on Postscript. | |
| TString | fLineStyle [30] |
| String describing line style i (for postScript). | |
| Int_t | fNumberContours |
| Default number of contours for 2-d plots. | |
| Int_t | fOptDate |
| True if date option is selected. | |
| Int_t | fOptFile |
| True if option File is selected. | |
| Int_t | fOptFit |
| True if option Fit is selected. | |
| Int_t | fOptLogx |
| True if log scale in X. | |
| Int_t | fOptLogy |
| True if log scale in y. | |
| Int_t | fOptLogz |
| True if log scale in z. | |
| Int_t | fOptStat |
| True if option Stat is selected. | |
| Int_t | fOptTitle |
| True if option Title is selected. | |
| Bool_t | fOrthoCamera |
| Use orthographic camera with web display. | |
| Int_t | fPadBorderMode |
| Pad border mode. | |
| Width_t | fPadBorderSize |
| Pad border size. | |
| Float_t | fPadBottomMargin |
| Pad bottom margin. | |
| Color_t | fPadColor |
| Pad color. | |
| Bool_t | fPadGridX |
| True to get the grid along X. | |
| Bool_t | fPadGridY |
| True to get the grid along Y. | |
| Float_t | fPadLeftMargin |
| Pad left margin. | |
| Float_t | fPadRightMargin |
| Pad right margin. | |
| Int_t | fPadTickX |
| True to set special pad ticks along X. | |
| Int_t | fPadTickY |
| True to set special pad ticks along Y. | |
| Float_t | fPadTopMargin |
| Pad top margin. | |
| TString | fPaintTextFormat |
| Printing format for TH2::PaintText. | |
| Float_t | fPaperSizeX |
| PostScript paper size along X. | |
| Float_t | fPaperSizeY |
| PostScript paper size along Y. | |
| Float_t | fScreenFactor |
| Multiplication factor for canvas size and position. | |
| Int_t | fShowEditor |
| Show pad editor. | |
| Int_t | fShowEventStatus |
| Show event status panel. | |
| Int_t | fShowToolBar |
| Show toolbar. | |
| Width_t | fStatBorderSize |
| Border size of Stats PaveLabel. | |
| Color_t | fStatColor |
| Stat fill area color. | |
| Style_t | fStatFont |
| Font style of Stats PaveLabel. | |
| Float_t | fStatFontSize |
| Font size in pixels for fonts with precision type 3. | |
| TString | fStatFormat |
| Printing format for stats. | |
| Float_t | fStatH |
| Height of stat box. | |
| Style_t | fStatStyle |
| Fill area style of Stats PaveLabel. | |
| Color_t | fStatTextColor |
| Stat text color. | |
| Float_t | fStatW |
| Width of stat box. | |
| Float_t | fStatX |
| X position of top right corner of stat box. | |
| Float_t | fStatY |
| Y position of top right corner of stat box. | |
| Bool_t | fStripDecimals |
| Strip decimals in axis labels. | |
| Double_t | fTimeOffset |
| Time offset to the beginning of an axis. | |
| Int_t | fTitleAlign |
| Title box alignment. | |
| Width_t | fTitleBorderSize |
| Border size of Title PavelLabel. | |
| Color_t | fTitleColor |
| Title fill area color. | |
| Style_t | fTitleFont |
| Font style of Title PaveLabel. | |
| Float_t | fTitleFontSize |
| Font size in pixels for fonts with precision type 3. | |
| Float_t | fTitleH |
| Height of title box. | |
| TString | fTitlePS |
| User defined Postscript file title. | |
| Style_t | fTitleStyle |
| Fill area style of title PaveLabel. | |
| Color_t | fTitleTextColor |
| Title text color. | |
| Float_t | fTitleW |
| Width of title box. | |
| Float_t | fTitleX |
| X position of top left corner of title box. | |
| Float_t | fTitleY |
| Y position of top left corner of title box. | |
| UInt_t | fUniqueID |
| object unique identifier | |
| Bool_t | fViolinScaled |
| Violin plot, shall the violin or histos be scaled to each other by the maximum height? | |
| TAttAxis | fXaxis |
| X axis attributes. | |
| Float_t | fXAxisExpXOffset |
| X axis exponent label X offset. | |
| Float_t | fXAxisExpYOffset |
| X axis exponent label Y offset. | |
| TAttAxis | fYaxis |
| Y axis attributes. | |
| Float_t | fYAxisExpXOffset |
| Y axis exponent label X offset. | |
| Float_t | fYAxisExpYOffset |
| Y axis exponent label Y offset. | |
| TAttAxis | fZaxis |
| Z axis attributes. | |
Static Private Attributes | |
| static Longptr_t | fgDtorOnly = 0 |
| object for which to call dtor only (i.e. no delete) | |
| static Bool_t | fgObjectStat = kTRUE |
| if true keep track of objects in TObjectTable | |
#include <TStyle.h>
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
| enum TStyle::EPaperSize |
|
inherited |
| TStyle::TStyle | ( | ) |
Default constructor.
Definition at line 144 of file TStyle.cxx.
| TStyle::TStyle | ( | const char * | name, |
| const char * | title ) |
Create a new TStyle.
The following names are reserved to create special styles:
Note a side-effect of calling gStyle->SetFillColor(0). This is nearly equivalent of selecting the "Plain" style.
Many graphics attributes may be set via the TStyle, see in particular
The current style is pointed by gStyle.
When calling myStyle->cd(), gStyle is set to myStyle.
One can also use gROOT to change the current style, e.g.
gROOT->SetStyle("Plain") will change the current style gStyle to the "Plain" style
See also TROOT::ForceStyle and TROOT::UseCurrentStyle
Definition at line 198 of file TStyle.cxx.
| TStyle::TStyle | ( | const TStyle & | style | ) |
Copy constructor.
Definition at line 488 of file TStyle.cxx.
|
virtual |
Destructor.
Definition at line 478 of file TStyle.cxx.
|
inherited |
Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.
In other word, this method acts as a "runtime purely virtual" warning instead of a "compiler purely virtual" error.
Definition at line 1149 of file TObject.cxx.
|
staticprivateinherited |
Private helper function which will dispatch to TObjectTable::AddObj.
Included here to avoid circular dependency between header files.
Definition at line 195 of file TObject.cxx.
|
virtualinherited |
Append graphics object to current pad.
In case no current pad is set yet, create a default canvas with the name "c1".
Definition at line 204 of file TObject.cxx.
Definition at line 506 of file TStyle.cxx.
|
overridevirtual |
|
static |
Create some standard styles.
Definition at line 524 of file TStyle.cxx.
|
virtual |
Change current style.
Definition at line 542 of file TStyle.cxx.
|
inlineinherited |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
The intent is for this routine to be called instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();
(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.
|
static |
|
static |
|
inlinestaticconstexpr |
|
virtualinherited |
Returns name of class to which the object belongs.
Definition at line 227 of file TObject.cxx.
|
overridevirtualinherited |
Set name and title to empty strings ("").
Reimplemented from TObject.
Reimplemented in TPrincipal, TProcessID, TStreamerInfo, TTask, TVirtualFitter, and TVirtualStreamerInfo.
Definition at line 63 of file TNamed.cxx.
|
overridevirtualinherited |
Make a clone of an object using the Streamer facility.
If newname is specified, this will be the name of the new object.
Reimplemented from TObject.
Reimplemented in TStreamerInfo, and TTreeIndex.
Definition at line 73 of file TNamed.cxx.
Compare two TNamed objects.
Returns 0 when equal, -1 when this is smaller and +1 when bigger (like strcmp).
Reimplemented from TObject.
Reimplemented in TStructNodeProperty.
Definition at line 84 of file TNamed.cxx.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
overridevirtual |
|
inlinestatic |
|
virtualinherited |
Delete this object.
Typically called as a command via the interpreter. Normally use "delete" operator when object has been allocated on the heap.
Reimplemented in RooLinkedList, TAxis, TBtree, TCanvas, TClonesArray, TCollection, TDirectory, TDirectoryFile, TExMap, TFile, TGFrame, TGItemContext, TGTextEdit, THashList, THashTable, TKey, TKeySQL, TKeyXML, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TMap, TMVA::Results, TObjArray, TObjectTable, TOrdCollection, TProtoClass, TQCommand, TRefArray, TSystemDirectory, TSystemFile, TThread, TTree, TTreeViewer, TViewPubDataMembers, and TViewPubFunctions.
Definition at line 268 of file TObject.cxx.
|
inherited |
Function used by the TStyle manager when drawing a canvas showing the current style.
Reimplemented from TObject.
Definition at line 686 of file TStyle.cxx.
|
protectedvirtualinherited |
Interface to ErrorHandler (protected).
Reimplemented in TThread, and TTreeViewer.
Definition at line 1059 of file TObject.cxx.
|
virtualinherited |
Default Draw method for all objects.
Reimplemented in RooAbsData, RooPlot, RooStats::HypoTestInverterPlot, RooStats::SamplingDistPlot, ROOT::Experimental::XRooFit::xRooNLLVar::xRooHypoPoint, ROOT::Experimental::XRooFit::xRooNLLVar::xRooHypoSpace, ROOT::Experimental::XRooFit::xRooNode, ROOT::RGeoPainter, TArrow, TASImage, TBox, TBrowser, TButton, TCanvas, TChain, TClass, TClassTree, TCollection, TColorWheel, TDiamond, TDirectory, TEfficiency, TEllipse, TEveGeoNode, TEveGeoTopNode, TF1, TF2, TF3, TFile, TFITSHDU, TFrame, TGenerator, TGeoBatemanSol, TGeometry, TGeoNode, TGeoOverlap, TGeoPainter, TGeoParallelWorld, TGeoPhysicalNode, TGeoPolygon, TGeoShape, TGeoTrack, TGeoVGShape, TGeoVolume, TGItemContext, TGListTree, TGPicture, TGraph2D, TGraph, TGraphPolar, TGraphPolargram, TGraphStruct, TGraphTime, TH1, THelix, THStack, TLegend, TMarker, TMatrixTBase< Element >, TMatrixTBase< Double_t >, TMatrixTBase< Float_t >, TMultiDimFit, TMultiGraph, TMultiLayerPerceptron, TNode, TNodeDiv, TPad, TParallelCoord, TParallelCoordRange, TParallelCoordVar, TPave, TPaveLabel, TPavesText, TPaveText, TPie, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TRatioPlot, TSpider, TSpline, TStructViewer, TStructViewerGUI, TTree, TTreePerfStats, TVectorT< Element >, TVectorT< Double_t >, TVectorT< Float_t >, TVirtualPad, and TWbox.
Definition at line 293 of file TObject.cxx.
|
virtualinherited |
Draw class inheritance tree of the class to which this object belongs.
If a class B inherits from a class A, description of B is drawn on the right side of description of A. Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function. The following picture is the class inheritance tree of class TPaveLabel:
Reimplemented in TGFrame, TSystemDirectory, and TSystemFile.
Definition at line 308 of file TObject.cxx.
Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
If pad was not selected - gPad will be used.
Reimplemented in TAxis, TCanvas, TGFrame, TSystemDirectory, and TSystemFile.
Definition at line 319 of file TObject.cxx.
|
virtualinherited |
Dump contents of object on stdout.
Using the information in the object dictionary (class TClass) each data member is interpreted. If a data member is a pointer, the pointer value is printed
The following output is the Dump of a TArrow object:
Reimplemented in TClass, TCollection, TGFrame, TGPack, and TSystemFile.
Definition at line 367 of file TObject.cxx.
|
virtualinherited |
Issue error message.
Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.
Reimplemented in TFitResult.
Definition at line 1098 of file TObject.cxx.
|
virtualinherited |
Execute method on this object with the given parameter string, e.g.
"3.14,1,\"text\"".
Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.
Definition at line 378 of file TObject.cxx.
|
virtualinherited |
Execute method on this object with parameters stored in the TObjArray.
The TObjArray should contain an argv vector like:
Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.
Definition at line 398 of file TObject.cxx.
Execute action corresponding to an event at (px,py).
This method must be overridden if an object can react to graphics events.
Reimplemented in TASImage, TASPaletteEditor::LimitLine, TAxis3D, TAxis, TBox, TButton, TCanvas, TCrown, TCurlyArc, TCurlyLine, TDiamond, TEfficiency, TEllipse, TF1, TF2, TF3, TFrame, TGenerator, TGeoManager, TGeoNode, TGeoOverlap, TGeoShape, TGeoTrack, TGeoVolume, TGL5DDataSet, TGLEventHandler, TGLHistPainter, TGLParametricEquation, TGLScenePad, TGLTH3Composition, TGLViewer, TGraph2D, TGraph, TGraphEdge, TGraphNode, TGraphPolargram, TGroupButton, TH1, THistPainter, TLine, TLink, TMarker3DBox, TMarker, TNode, TPad, TPaletteAxis, TParallelCoord, TParallelCoordRange, TParallelCoordVar, TParticle, TPave, TPie, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TPrimary, TScatter2D, TScatter, TSliderBox, TSpider, TSpline, TText, TTreePerfStats, TView3D, TView, TVirtualHistPainter, and TWbox.
Definition at line 415 of file TObject.cxx.
|
virtualinherited |
Issue fatal error message.
Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.
Definition at line 1126 of file TObject.cxx.
|
virtualinherited |
Encode TNamed into output buffer.
Reimplemented in TDirectoryFile, TFile, TKey, TKeySQL, TKeyXML, TSQLFile, and TXMLFile.
Definition at line 103 of file TNamed.cxx.
|
virtualinherited |
Must be redefined in derived classes.
This function is typically used with TCollections, but can also be used to find an object by name inside this object.
Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.
Definition at line 425 of file TObject.cxx.
Must be redefined in derived classes.
This function is typically used with TCollections, but can also be used to find an object inside this object.
Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.
Definition at line 435 of file TObject.cxx.
Return the axis color number in the axis.
Definition at line 1090 of file TStyle.cxx.
| Int_t TStyle::GetAxisMaxDigits | ( | ) | const |
Method returns maximum number of digits permitted for the axis labels above which the notation with 10^N is used.
See SetAxisMaxDigits for more details
Definition at line 1158 of file TStyle.cxx.
|
inline |
Return color number i in current palette.
Definition at line 1102 of file TStyle.cxx.
|
virtualinherited |
Get option used by the graphics system to draw this object.
Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.
Reimplemented in TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.
Definition at line 445 of file TObject.cxx.
|
staticinherited |
Return destructor only flag.
Definition at line 1196 of file TObject.cxx.
Method returns X and Y offset of the axis 10^n notation.
It applies on axis belonging to an histogram (TAxis)
Definition at line 1856 of file TStyle.cxx.
|
inlinevirtualinherited |
Return the fill area color.
Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.
Definition at line 32 of file TAttFill.h.
|
inlinevirtualinherited |
Return the fill area style.
Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.
Definition at line 33 of file TAttFill.h.
|
virtualinherited |
Returns mime type name of object.
Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.
Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TASImage, TBranch, TBranchElement, TGeoVolume, TGMainFrame, TKey, TMethodBrowsable, TSystemFile, and TVirtualBranchBrowsable.
Definition at line 472 of file TObject.cxx.
|
inline |
Return the label color number in the axis.
Definition at line 1110 of file TStyle.cxx.
Return label font.
Definition at line 1122 of file TStyle.cxx.
Return label offset.
Definition at line 1134 of file TStyle.cxx.
Return label size.
Definition at line 1146 of file TStyle.cxx.
|
inlinevirtualinherited |
Return the line color.
Reimplemented in TGraphMultiErrors, and TGWin32VirtualXProxy.
Definition at line 36 of file TAttLine.h.
|
inlinevirtualinherited |
Return the line style.
Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.
Definition at line 37 of file TAttLine.h.
| const char * TStyle::GetLineStyleString | ( | Int_t | i = 1 | ) | const |
Return line style string (used by PostScript).
See SetLineStyleString for more explanations
Definition at line 1167 of file TStyle.cxx.
|
inlinevirtualinherited |
Return the line width.
Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.
Definition at line 38 of file TAttLine.h.
|
inlinevirtualinherited |
Return the marker color.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 33 of file TAttMarker.h.
|
inlinevirtualinherited |
Return the marker size.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 35 of file TAttMarker.h.
|
inlinevirtualinherited |
Return the marker style.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 34 of file TAttMarker.h.
|
inlineoverridevirtualinherited |
Return number of divisions.
Definition at line 1078 of file TStyle.cxx.
| Int_t TStyle::GetNumberOfColors | ( | ) | const |
Return number of colors in the color palette.
Definition at line 1176 of file TStyle.cxx.
Returns string containing info about the object at position (px,py).
This method is typically overridden by classes of which the objects can report peculiarities for different positions. Returned string will be re-used (lock in MT environment).
Reimplemented in TASImage, TAxis3D, TColorWheel, TF1, TF2, TFileDrawMap, TGeoNode, TGeoTrack, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph, TH1, THistPainter, TNode, TPaletteAxis, TParallelCoordVar, and TVirtualHistPainter.
Definition at line 491 of file TObject.cxx.
|
staticinherited |
Get status of object stat flag.
Definition at line 1181 of file TObject.cxx.
|
inlinevirtualinherited |
Reimplemented in TArrow, TAxis3D, TFile, TGaxis, TGeoVolume, TH1, THelix, TLegendEntry, TMapFile, TNode, TPave, TPoints3DABC, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TPSocket, TSelector, TSocket, and TUDPSocket.
Set paper size for PostScript output.
Definition at line 1184 of file TStyle.cxx.
|
inlinevirtualinherited |
Return the text alignment.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 35 of file TAttText.h.
|
inlinevirtualinherited |
Return the text angle.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 36 of file TAttText.h.
|
inlinevirtualinherited |
Return the text color.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 37 of file TAttText.h.
|
inlinevirtualinherited |
Return the text font.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 38 of file TAttText.h.
|
inlinevirtualinherited |
Return the text size.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 39 of file TAttText.h.
Return the text in percent of the pad size.
|
virtualinherited |
Return the text size in pixels for specified pad.
|
virtualinherited |
Return the text size in relative units.
Return tick length.
Definition at line 1193 of file TStyle.cxx.
|
inlineoverridevirtualinherited |
Return title color.
Definition at line 1205 of file TStyle.cxx.
Return title font.
Definition at line 1217 of file TStyle.cxx.
Return title offset.
Definition at line 1229 of file TStyle.cxx.
Return title size.
Definition at line 1241 of file TStyle.cxx.
|
virtualinherited |
Return the unique object id.
Definition at line 480 of file TObject.cxx.
Execute action in response of a timer timing out.
This method must be overridden if an object has to react to timers.
Reimplemented in TGCommandPlugin, TGDNDManager, TGFileContainer, TGHtml, TGLEventHandler, TGPopupMenu, TGraphTime, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGuiBldDragManager, TGWindow, and TTreeViewer.
Definition at line 516 of file TObject.cxx.
|
inlineoverridevirtualinherited |
Return hash value for this object.
Note: If this routine is overloaded in a derived class, this derived class should also add
Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like
Reimplemented from TObject.
|
inlineinherited |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
missing call to RecursiveRemove in destructor).
Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)
|
virtualinherited |
Issue info message.
Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.
Definition at line 1072 of file TObject.cxx.
|
virtualinherited |
Returns kTRUE if object inherits from class "classname".
Reimplemented in TClass.
Definition at line 549 of file TObject.cxx.
Returns kTRUE if object inherits from TClass cl.
Reimplemented in TClass.
Definition at line 557 of file TObject.cxx.
|
virtualinherited |
Dump contents of this object in a graphics canvas.
Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.
The following picture is the Inspect of a histogram object:
Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TGFrame, TInspectorObject, and TSystemFile.
Definition at line 570 of file TObject.cxx.
|
inlineoverridevirtual |
|
inlineinherited |
IsDestructed.
Default equal comparison (objects are equal if they have the same address in memory).
More complicated classes might want to override this function.
Reimplemented in TGObject, TObjString, TPair, and TQCommand.
Definition at line 589 of file TObject.cxx.
|
virtualinherited |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Reimplemented in ROOT::Experimental::XRooFit::xRooNode, ROOT::Internal::THnBaseBrowsable, TApplicationRemote, TAxis3D, TBaseClass, TBranch, TBranchClones, TBranchElement, TBranchObject, TBranchSTL, TBrowserObject, TCanvas, TClass, TCollection, TDatabasePDG, TDirectory, TFolder, TGeoManager, TGeometry, TGeoNode, TGeoNodeMatrix, TGeoOverlap, TGeoTrack, TGeoVolume, THbookFile, THbookKey, THnBase, TKey, TMapFile, TMultiDimFit, TNode, TPad, TPair, TParticleClassPDG, TPrincipal, TRemoteObject, TROOT, TRootIconList, TSPlot, TSystemDirectory, TTask, TTree, and TVirtualBranchBrowsable.
Definition at line 579 of file TObject.cxx.
|
inlineoverridevirtualinherited |
Reimplemented from TObject.
Reimplemented in TStructNodeProperty.
|
inlinevirtualinherited |
Reimplemented in TGWin32VirtualXProxy.
Definition at line 49 of file TAttFill.h.
|
overridevirtualinherited |
List TNamed name and title.
Reimplemented from TObject.
Reimplemented in ROOT::Experimental::XRooFit::xRooBrowser, TNode, TROOT, TStreamerBase, TStreamerElement, TStreamerInfo, TStreamerSTL, TTask, TText, and TVirtualStreamerInfo.
Definition at line 112 of file TNamed.cxx.
|
inherited |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
Definition at line 1160 of file TObject.cxx.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
This method must be overridden to handle object notification (the base implementation is no-op).
Different objects in ROOT use the Notify method for different purposes, in coordination with other objects that call this method at the appropriate time.
For example, TLeaf uses it to load class information; TBranchRef to load contents of referenced branches TBranchRef; most notably, based on Notify, TChain implements a callback mechanism to inform interested parties when it switches to a new sub-tree.
Reimplemented in h1analysis, h1analysisTreeReader, TARInterruptHandler, TASInputHandler, TASInterruptHandler, TASLogHandler, TASSigPipeHandler, TBlinkTimer, TBranchElement, TBranchRef, TBreakLineCom, TBrowserTimer, TCollection, TDelCharCom, TDelTextCom, TFileHandler, TGContainerKeyboardTimer, TGContainerScrollTimer, TGInputHandler, TGLRedrawTimer, TGTextEditHist, TGuiBldDragManagerRepeatTimer, TIdleTimer, TInsCharCom, TInsTextCom, TInterruptHandler, TLeafObject, TMessageHandler, TNotifyLink< Type >, TNotifyLink< RNoCleanupNotifierHelper >, TNotifyLink< ROOT::Detail::TBranchProxy >, TNotifyLink< TTreeReader >, TPopupDelayTimer, TProcessEventTimer, TRefTable, TRepeatTimer, TSBRepeatTimer, TSelector, TSelectorDraw, TSelectorEntries, TSignalHandler, TSingleShotCleaner, TSocketHandler, TStdExceptionHandler, TSysEvtHandler, TTermInputHandler, TThreadTimer, TTimeOutTimer, TTimer, TTipDelayTimer, TTree, TTreeFormula, TTreeFormulaManager, TTreeReader, TViewTimer, and TViewUpdateTimer.
Definition at line 618 of file TObject.cxx.
|
inherited |
Use this method to declare a method obsolete.
Specify as of which version the method is obsolete and as from which version it will be removed.
Definition at line 1169 of file TObject.cxx.
|
inherited |
Operator delete for sized deallocation.
Definition at line 1234 of file TObject.cxx.
|
inherited |
Operator delete.
Definition at line 1212 of file TObject.cxx.
|
inherited |
Only called by placement new when throwing an exception.
Definition at line 1266 of file TObject.cxx.
|
inherited |
Operator delete [] for sized deallocation.
Definition at line 1245 of file TObject.cxx.
|
inherited |
Operator delete [].
Definition at line 1223 of file TObject.cxx.
|
inherited |
Only called by placement new[] when throwing an exception.
Definition at line 1274 of file TObject.cxx.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Assignment operator.
Definition at line 496 of file TStyle.cxx.
|
overridevirtual |
|
virtualinherited |
Pop on object drawn in a pad to the top of the display list.
I.e. it will be drawn last and on top of all other primitives.
Reimplemented in TFrame, TPad, and TVirtualPad.
Definition at line 640 of file TObject.cxx.
|
overridevirtualinherited |
Print TNamed name and title.
Reimplemented from TObject.
Reimplemented in ROOT::Experimental::XRooFit::xRooNLLVar::xRooHypoPoint, ROOT::Experimental::XRooFit::xRooNLLVar::xRooHypoSpace, ROOT::Experimental::XRooFit::xRooNode, TParallelCoordRange, TParallelCoordVar, TParticleClassPDG, TParticlePDG, TPrincipal, TScatter2D, TScatter, TSpectrum2, TSpectrum3, TSpectrum, TSQLColumnInfo, TSQLFile, TSQLTableInfo, TText, TTree, TTreeIndex, TXMLFile, and TXTRU.
Definition at line 127 of file TNamed.cxx.
|
virtualinherited |
Read contents of object with specified name from the current directory.
First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().
Reimplemented in TBuffer, TKey, TKeySQL, and TKeyXML.
Definition at line 673 of file TObject.cxx.
|
virtualinherited |
Recursively remove this object from a list.
Typically implemented by classes that can contain multiple references to a same object.
Reimplemented in RooAbsCollection, RooAbsData, RooLinkedList, RooMCStudy, ROOT::Internal::TCheckHashRecursiveRemoveConsistency, ROOT::RBrowserDataCleanup, RooWorkspace, TBrowser, TChain, TCling, TCollection, TDialogCanvas, TDirectory, TEfficiency, TFileMerger, TFitEditor, TFolder, TFriendElement, TGedEditor, TGeometry, TGFileBrowser, TGraph2D, TGraph, TH1, TH1Editor, TH2Editor, THashList, THistPainter, THStack, TInspectCanvas, TLegend, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TMultiGraph, TNode, TObjArray, TObjectRefSpy, TObjectSpy, TPad, TProcessID, TROOT, TRootBrowser, TRootBrowserHistory, TRootBrowserLite, TRootContextMenu, TTree, TTreePlayer, TViewPubDataMembers, TViewPubFunctions, and TVirtualPad.
Definition at line 684 of file TObject.cxx.
|
virtual |
Reset.
Definition at line 695 of file TStyle.cxx.
|
virtualinherited |
Reimplemented in TGWin32VirtualXProxy.
|
virtualinherited |
Reimplemented in TGWin32VirtualXProxy.
|
virtualinherited |
Reimplemented in TGWin32VirtualXProxy.
|
virtualinherited |
Reimplemented in TGWin32VirtualXProxy.
|
virtualinherited |
Save this object in the file specified by filename.
otherwise the object is written to filename as a CINT/C++ script. The C++ code to rebuild this object is generated via SavePrimitive(). The "option" parameter is passed to SavePrimitive. By default it is an empty string. It can be used to specify the Draw option in the code generated by SavePrimitive.
The function is available via the object context menu.
Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TClassTree, TFolder, TGeoVolume, TGObject, TGraph, TH1, TPad, TPaveClass, TSpline3, TSpline5, TSpline, TTreePerfStats, and TVirtualPad.
Definition at line 708 of file TObject.cxx.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
overridevirtual |
Save primitive as a C++ statement(s) on output stream out.
Reimplemented from TObject.
Definition at line 2042 of file TStyle.cxx.
|
staticprotectedinherited |
Save object constructor in the output stream "out".
Can be used as first statement when implementing SavePrimitive() method for the object
Definition at line 777 of file TObject.cxx.
|
staticprotectedinherited |
Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
Definition at line 845 of file TObject.cxx.
|
protectedinherited |
Save object name and title into the output stream "out".
Definition at line 135 of file TNamed.cxx.
|
staticprotectedinherited |
Save array in the output stream "out" as vector.
Create unique variable name based on prefix value Returns name of vector which can be used in constructor or in other places of C++ code If flag === kTRUE, just add empty line If flag === 111, check if array is empty and return nullptr or <vectorname>.data()
Definition at line 796 of file TObject.cxx.
| void TStyle::SaveSource | ( | const char * | filename, |
| Option_t * | option = nullptr ) |
Save the current style in a C++ macro file.
Definition at line 1997 of file TStyle.cxx.
|
virtualinherited |
Set color to draw the axis line and tick marks.
axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1324 of file TStyle.cxx.
| void TStyle::SetAxisMaxDigits | ( | Int_t | maxd = 5 | ) |
Method set maximum number of digits permitted for the axis labels above which the notation with 10^N is used.
For example, to accept 6 digits number like 900000 on an axis call gStyle->SetAxisMaxDigits(6). The default value is 5. Warning: this function changes the max number of digits in all axes. If you only want to change the digits of the current TGaxis instance, use axis->SetNdivisions(N*1000000 + (axis->GetNdiv()%1000000)) instead of gStyle->SetAxisMaxDigits(N).
Definition at line 1881 of file TStyle.cxx.
Set or unset the user status bits as specified in f.
Definition at line 888 of file TObject.cxx.
| void TStyle::SetCandleBoxRange | ( | Double_t | bRange = 0.5 | ) |
By setting box-range for candle plot, one can force the box of the candle-chart to cover that given fraction of the distribution.
Set bRange between 0 and 1. Default is 0.5 gStyle->SetCandleBoxRange(0.68) will set all candle-charts to cover 68% of the distribution by the box
Definition at line 1957 of file TStyle.cxx.
| void TStyle::SetCandleCircleLineWidth | ( | Int_t | CircleLineWidth = 1 | ) |
Set the line width of the circle marker of a candle plot ([1,5]).
Definition at line 1970 of file TStyle.cxx.
| void TStyle::SetCandleCrossLineWidth | ( | Int_t | CrossLineWidth = 1 | ) |
Set the line width of the cross marker of a candle plot ([1,5]).
Definition at line 1983 of file TStyle.cxx.
| void TStyle::SetCandleWhiskerRange | ( | Double_t | wRange = 1.0 | ) |
By setting whisker-range for candle plot, one can force the whiskers to cover the fraction of the distribution.
Set wRange between 0 and 1. Default is 1 gStyle->SetCandleWhiskerRange(0.95) will set all candle-charts to cover 95% of the distribution with the whiskers. Can only be used with the standard-whisker definition
Definition at line 1940 of file TStyle.cxx.
|
inline |
|
inline |
| void TStyle::SetColorModelPS | ( | Int_t | c = 0 | ) |
Define the color model used by TPostScript and TPDF (RGB or CMYK).
CMY and CMYK models are subtractive color models unlike RGB which is additive. They are mainly used for printing purposes. CMY means Cyan Magenta Yellow. To convert RGB to CMY it is enough to do: C=1-R, M=1-G and Y=1-B. CMYK has one more component K (black). The conversion from RGB to CMYK is:
CMYK adds the black component which allows better quality for black printing. PostScript and PDF support the CMYK model.
Definition at line 1276 of file TStyle.cxx.
|
virtualinherited |
Set drawing option for object.
This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().
Reimplemented in RooPlot, TAxis, TBrowser, TGedFrame, TGFrame, TPad, TPaveStats, TRootBrowserLite, TSystemDirectory, and TSystemFile.
Definition at line 871 of file TObject.cxx.
|
staticinherited |
Set destructor only flag.
Definition at line 1204 of file TObject.cxx.
| void TStyle::SetEndErrorSize | ( | Float_t | np = 2 | ) |
Set the size (in pixels) of the small lines drawn at the end of the error bars (TH1 or TGraphErrors).
The default value is 2 pixels. Set np=0 to remove these lines
Definition at line 1341 of file TStyle.cxx.
Method set X and Y offset of the axis 10^n notation.
It applies on axis belonging to an histogram (TAxis). It has no effect on standalone TGaxis. It is in % of the pad size. It can be negative. axis specifies which axis ("x","y"), default = "x" if axis="xz" set the two axes
Definition at line 1837 of file TStyle.cxx.
|
virtualinherited |
Reimplemented in TGWin32VirtualXProxy.
|
inlinevirtualinherited |
Set the fill area color.
Reimplemented in TGQuartz, TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, TGX11, TPDF, TPostScript, TSpider, TSVG, TTeXDump, and TVirtualX.
Definition at line 40 of file TAttFill.h.
|
inherited |
Reimplemented in TGraphMultiErrors.
|
inlinevirtualinherited |
Set the fill area style.
Reimplemented in TGQuartz, TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, TGX11, TPad, TSpider, and TVirtualX.
Definition at line 42 of file TAttFill.h.
|
inline |
| void TStyle::SetHeaderPS | ( | const char * | header | ) |
Define a string to be inserted in the Postscript header.
The string in header will be added to the Postscript file immediately following the %Page line For example, this string may contain special Postscript instructions like
the following header string will print the string "my annotation" at the bottom left corner of the page (outside the user area)
This information is used in TPostScript::Initialize
Definition at line 1363 of file TStyle.cxx.
If the argument zero=kTRUE the minimum value for the Y axis of 1-d histograms is set to 0.
If the minimum bin content is greater than 0 and TH1::SetMinimum has not been called. Otherwise the minimum is based on the minimum bin content.
Definition at line 1289 of file TStyle.cxx.
|
inline |
Sets the fIsReading member to reading (default=kTRUE).
fIsReading (used via gStyle->IsReading()) can be used in the functions myclass::UseCurrentStyle to read from the current style or write to the current style
Definition at line 1375 of file TStyle.cxx.
|
inline |
Set axis labels color.
axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1394 of file TStyle.cxx.
Set font number used to draw axis labels.
Definition at line 1414 of file TStyle.cxx.
Set offset between axis and axis labels.
The offset is expressed as a percent of the pad height. axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1430 of file TStyle.cxx.
Set size of axis labels.
The size is expressed as a percent of the pad height. axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1445 of file TStyle.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
virtualinherited |
Reimplemented in TGWin32VirtualXProxy.
|
inlinevirtualinherited |
Set the line color.
Reimplemented in ROOT::Experimental::REveLine, ROOT::Experimental::REveStraightLineSet, ROOT::Experimental::REveTrackList, TEveLine, TEveStraightLineSet, TEveTrackList, TGeoVolume, TGeoVolumeMulti, TGQuartz, TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, TGX11, TParallelCoordRange, TPDF, TPostScript, TSpider, TSVG, TTeXDump, and TVirtualX.
Definition at line 44 of file TAttLine.h.
|
inherited |
Reimplemented in TGraphMultiErrors.
|
inlinevirtualinherited |
Set the line style.
Reimplemented in ROOT::Experimental::REveLine, ROOT::Experimental::REveTrackList, TEveLine, TEveTrackList, TGeoVolume, TGeoVolumeMulti, TGQuartz, TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, TGX11, TPDF, TPostScript, TSpider, TSVG, TTeXDump, and TVirtualX.
Definition at line 46 of file TAttLine.h.
| void TStyle::SetLineStyleString | ( | Int_t | i, |
| const char * | text ) |
Set line style string using the PostScript convention.
A line is a suite of segments, each segment is described by the number of pixels. The initial and alternating elements (second, fourth, and so on) are the dashes, and the others spaces between dashes.
Default fixed line styles are pre-defined as:
For example the following lines define the line style 5 to 9.
Note:
Definition at line 1484 of file TStyle.cxx.
|
inlinevirtualinherited |
Set the line width.
Reimplemented in ROOT::Experimental::REveLine, ROOT::Experimental::REveTrackList, TEveLine, TEveTrackList, TGeoVolume, TGeoVolumeMulti, TGQuartz, TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, TGX11, TPaletteAxis, TParallelCoordRange, TPDF, TPostScript, TSpider, TSVG, TTeXDump, and TVirtualX.
Definition at line 47 of file TAttLine.h.
|
virtualinherited |
Reimplemented in TGWin32VirtualXProxy.
|
inlinevirtualinherited |
Set the marker color.
Reimplemented in ROOT::Experimental::REveLine, ROOT::Experimental::REvePointSet, ROOT::Experimental::REvePointSetArray, ROOT::Experimental::REveTrackList, TEveLine, TEvePointSet, TEvePointSetArray, TEveTrackList, TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, TPDF, TPostScript, TSVG, TTeXDump, and TVirtualX.
Definition at line 41 of file TAttMarker.h.
|
inherited |
|
inlinevirtualinherited |
Set the marker size.
Note that the marker styles number 1 6 and 7 (the dots), cannot be scaled. They are meant to be very fast to draw and are always drawn with the same number of pixels; therefore this method does not apply on them.
Reimplemented in ROOT::Experimental::REvePointSet, ROOT::Experimental::REvePointSetArray, ROOT::Experimental::REveTrackList, TEvePointSet, TEvePointSetArray, TEveTrackList, TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, TTeXDump, and TVirtualX.
Definition at line 48 of file TAttMarker.h.
|
inlinevirtualinherited |
Set the marker style.
Reimplemented in ROOT::Experimental::REvePointSet, ROOT::Experimental::REvePointSetArray, ROOT::Experimental::REveTrackList, TEvePointSet, TEvePointSetArray, TEveTrackList, TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TVirtualX.
Definition at line 43 of file TAttMarker.h.
|
virtualinherited |
Set the name of the TNamed.
WARNING: if the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.
Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, ROOT::Experimental::XRooFit::xRooNode, TChain, TColor, TDirectory, TEfficiency, TEventList, TEveScene, TFormula, TGraph2D, TGraph, TH1, TNode, TRotMatrix, TShape, TSystemDirectory, TSystemFile, and TTree.
Definition at line 149 of file TNamed.cxx.
|
virtualinherited |
Set all the TNamed parameters (name and title).
WARNING: if the name is changed and the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.
Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, TContextMenu, TGraph2D, TGraph, TH1, and TNode.
Definition at line 163 of file TNamed.cxx.
Set the number of divisions to draw an axis.
ndiv : Number of divisions.
axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1310 of file TStyle.cxx.
| void TStyle::SetNumberContours | ( | Int_t | number = 20 | ) |
Set the default number of contour levels when drawing 2-d plots.
Definition at line 1501 of file TStyle.cxx.
|
staticinherited |
Turn on/off tracking of objects in the TObjectTable.
Definition at line 1188 of file TObject.cxx.
| void TStyle::SetOptDate | ( | Int_t | optdate = 1 | ) |
If optdate is non null, the current date/time will be printed in the canvas.
The position of the date string can be controlled by: optdate = 10*format + mode
examples:
The date position can also be controlled by: gStyle->SetDateX(x); x in NDC gStyle->SetDateY(y); y in NDC
The date text attributes can be changed with:
The current date attributes can be obtained via:
When the date option is active, a text object is created when the pad paint its list of primitives. The text object is named "DATE". The DATE attributes can also be edited interactively (position and attributes) via the normal context menu.
Definition at line 1547 of file TStyle.cxx.
| void TStyle::SetOptFit | ( | Int_t | mode = 1 | ) |
The type of information about fit parameters printed in the histogram statistics box can be selected via the parameter mode.
The parameter mode can be = pcev:
see also SetOptStat below.
Definition at line 1594 of file TStyle.cxx.
| void TStyle::SetOptStat | ( | Int_t | mode = 1 | ) |
The type of information printed in the histogram statistics box can be selected via the parameter mode.
The parameter mode can be = ksiourmen
Example: gStyle->SetOptStat(11); print only name of histogram and number of entries. gStyle->SetOptStat(1101); displays the name of histogram, mean value and RMS.
Definition at line 1641 of file TStyle.cxx.
| void TStyle::SetOptStat | ( | Option_t * | stat | ) |
The parameter mode can be any combination of kKsSiourRmMen.
Example: gStyle->SetOptStat("ne"); print only name of histogram and number of entries.
Definition at line 1677 of file TStyle.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
See TColor::SetPalette.
Definition at line 1889 of file TStyle.cxx.
Definition at line 1896 of file TStyle.cxx.
| void TStyle::SetPaperSize | ( | EPaperSize | size | ) |
Set paper size for PostScript output.
Definition at line 1705 of file TStyle.cxx.
Set paper size for PostScript output.
The paper size is specified in centimeters. Default is 20x26. See also TPad::Print
Definition at line 1725 of file TStyle.cxx.
|
inline |
Set option to strip decimals when drawing axis labels.
By default, TGaxis::PaintAxis removes trailing 0s after a dot in the axis labels. Ex: {0,0.5,1,1.5,2,2.5, etc} If this function is called with strip=kFALSE, TGAxis::PaintAxis will draw labels with the same number of digits after the dot Ex: (0.0,0.5,1.0,1.5,2.0,2.5,etc}
Definition at line 1927 of file TStyle.cxx.
|
inlinevirtualinherited |
Set the text alignment.
Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TVirtualX.
Definition at line 48 of file TAttText.h.
|
inlinevirtualinherited |
Set the text angle.
Reimplemented in TGraphNode, and TGWin32VirtualXProxy.
Definition at line 49 of file TAttText.h.
|
virtualinherited |
Reimplemented in TGWin32VirtualXProxy.
|
inlinevirtualinherited |
Set the text color.
Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, TPDF, TPostScript, TSVG, TTeXDump, and TVirtualX.
Definition at line 50 of file TAttText.h.
|
inherited |
|
inlinevirtualinherited |
Set the text font.
Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TVirtualX.
Definition at line 52 of file TAttText.h.
|
inlinevirtualinherited |
Set the text size.
Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TVirtualX.
Definition at line 53 of file TAttText.h.
|
virtualinherited |
Set the text size in pixel.
Reimplemented in TGWin32VirtualXProxy.
Set the tick marks length for an axis.
axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1736 of file TStyle.cxx.
| void TStyle::SetTimeOffset | ( | Double_t | toffset | ) |
Change the time offset for time plotting.
Times are expressed in seconds. The corresponding numbers usually have 9 digits (or more if one takes into account fractions of seconds). Thus, since it is very inconvenient to plot very large numbers on a scale, one has to set an offset time that will be added to the axis beginning, in order to plot times correctly and conveniently. A convenient way to set the time offset is to use TDatime::Convert().
By default the time offset is set to 788918400 which corresponds to 01/01/1995. This allows to have valid dates until 2072. The standard UNIX time offset in 1970 allows only valid dates until 2030.
Definition at line 1914 of file TStyle.cxx.
|
virtualinherited |
Set the title of the TNamed.
Reimplemented in Axis2, RooPlot, ROOT::Experimental::XRooFit::xRooNode, ROOT::TSchemaRule::TSources, TASImage, TEfficiency, TF1, TGraph2D, TGraph, TH1, THnBase, TParallelCoordVar, TSystemDirectory, and TSystemFile.
Definition at line 173 of file TNamed.cxx.
any other value of axis will set the pad title color
if axis="xyz" set all 3 axes
Definition at line 1755 of file TStyle.cxx.
any other value of axis will set the pad title font
if axis="xyz" set all 3 axes
Definition at line 1776 of file TStyle.cxx.
Specify a parameter offset to control the distance between the axis and the axis title.
axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1799 of file TStyle.cxx.
| void TStyle::SetTitlePS | ( | const char * | pstitle | ) |
Define a string to be used in the %Title of the Postscript files.
If this string is not defined, ROOT will use the canvas title.
Definition at line 1384 of file TStyle.cxx.
any other value of axis will set the pad title size
if axis="xyz" set all 3 axes
Definition at line 1818 of file TStyle.cxx.
|
virtualinherited |
Set the unique object id.
Definition at line 899 of file TObject.cxx.
|
virtualinherited |
Return size of the TNamed part of the TObject.
Reimplemented in TDirectory, TDirectoryFile, TFile, TKey, TSQLFile, and TXMLFile.
Definition at line 182 of file TNamed.cxx.
|
overridevirtual |
Stream an object of class TObject.
Reimplemented from TNamed.
|
inline |
|
virtualinherited |
Issue system error message.
Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.
Definition at line 1112 of file TObject.cxx.
|
virtualinherited |
|
virtualinherited |
Issue warning message.
Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.
Definition at line 1084 of file TObject.cxx.
|
virtualinherited |
Write this object to the current directory.
For more see the const version of this method.
Reimplemented in ROOT::TBufferMergerFile, TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.
Definition at line 989 of file TObject.cxx.
|
virtualinherited |
Write this object to the current directory.
The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".
Writing an object to a file involves the following steps:
Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.
If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().
The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. NOTE: Neither kOverwrite nor kWriteDelete reduces the size of a TFile– the space is simply freed up to be overwritten; in the case of a TTree, it is more complicated. If one opens a TTree, appends some entries, then writes it out, the behaviour is effectively the same. If, however, one creates a new TTree and writes it out in this way, only the metadata is replaced, effectively making the old data invisible without deleting it. TTree::Delete() can be used to mark all disk space occupied by a TTree as free before overwriting its metadata this way. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.
An object is read from the file into memory via TKey::Read() or via TObject::Read().
The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.
Reimplemented in TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.
Definition at line 964 of file TObject.cxx.
|
private |
|
private |
|
privateinherited |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protectedinherited |
Fill area color.
Definition at line 24 of file TAttFill.h.
|
protectedinherited |
Fill area style.
Definition at line 25 of file TAttFill.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivateinherited |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protectedinherited |
Line color.
Definition at line 24 of file TAttLine.h.
|
private |
|
private |
|
protectedinherited |
Line width.
Definition at line 26 of file TAttLine.h.
|
protectedinherited |
Marker color.
Definition at line 24 of file TAttMarker.h.
|
protectedinherited |
Marker size.
Definition at line 26 of file TAttMarker.h.
|
protectedinherited |
Marker style.
Definition at line 25 of file TAttMarker.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protectedinherited |
Text alignment.
Definition at line 26 of file TAttText.h.
|
protectedinherited |
Text angle.
Definition at line 24 of file TAttText.h.
|
protectedinherited |
Text color.
Definition at line 27 of file TAttText.h.
|
protectedinherited |
Text font.
Definition at line 28 of file TAttText.h.
|
protectedinherited |
Text size.
Definition at line 25 of file TAttText.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
privateinherited |
|
private |
|
private |
|
private |
|
private |
|
private |