Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:29

0001 // @(#)root/gpad:$Id$
0002 // Author: Olivier Couet   03/05/23
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TAnnotation
0013 #define ROOT_TAnnotation
0014 
0015 
0016 #include "TLatex.h"
0017 
0018 class TAnnotation : public TLatex {
0019 
0020 protected:
0021    double fZ{0}; ///< Z position of text
0022 
0023 public:
0024 
0025    TAnnotation() {}
0026    TAnnotation(Double_t x, Double_t y, Double_t z, const char *text);
0027    ~TAnnotation() override;
0028    virtual TAnnotation *DrawAnnotation(Double_t x, Double_t y, Double_t z, const char *text);
0029    void ls(Option_t *option="") const override;
0030    void Paint(Option_t *option="") override;
0031    void PaintAnnotation(Double_t x, Double_t y, Double_t z, Double_t angle, Double_t size, const Char_t *text);
0032    void Print(Option_t *option="") const override;
0033 
0034    void SetZ(double z) { fZ = z; } // *MENU*
0035    double GetZ() const { return fZ; }
0036 
0037    ClassDefOverride(TAnnotation,1)  //Annotation in 2d or 3D
0038 };
0039 
0040 #endif