Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TAnnotation.h
Go to the documentation of this file.
1// @(#)root/gpad:$Id$
2// Author: Olivier Couet 03/05/23
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TAnnotation
13#define ROOT_TAnnotation
14
15
16#include "TLatex.h"
17
18class TAnnotation : public TLatex {
19
20protected:
21 double fZ{0}; ///< Z position of text
22
23public:
24
27 ~TAnnotation() override;
29 void ls(Option_t *option="") const override;
30 void Paint(Option_t *option="") override;
32 void Print(Option_t *option="") const override;
33 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
34
35 void SetZ(double z) { fZ = z; } // *MENU*
36 double GetZ() const { return fZ; }
37
38 ClassDefOverride(TAnnotation,1) //Annotation in 2d or 3D
39};
40
41#endif
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
char Char_t
Character 1 byte (char).
Definition RtypesCore.h:51
double Double_t
Double 8 bytes.
Definition RtypesCore.h:73
const char Option_t
Option string (const char).
Definition RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
void PaintAnnotation(Double_t x, Double_t y, Double_t z, Double_t angle, Double_t size, const Char_t *text)
~TAnnotation() override
double fZ
Z position of text.
Definition TAnnotation.h:21
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a primitive as a C++ statement(s) on output stream "out".
TAnnotation(Double_t x, Double_t y, Double_t z, const char *text)
void ls(Option_t *option="") const override
The ls function lists the contents of a class on stdout.
double GetZ() const
Definition TAnnotation.h:36
void SetZ(double z)
Definition TAnnotation.h:35
virtual TAnnotation * DrawAnnotation(Double_t x, Double_t y, Double_t z, const char *text)
void Print(Option_t *option="") const override
This method must be overridden when a class wants to print itself.
void Paint(Option_t *option="") override
This method must be overridden if a class wants to paint itself.
TText * text
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17