Logo ROOT  
Reference Guide
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Authors: Alja & Matevz Tadel 2008
5 * Copyright (C) 1995-2007, 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 *************************************************************************/
12#ifndef ROOT_TEveText
13#define ROOT_TEveText
15#include "TNamed.h"
16#include "TAtt3D.h"
17#include "TAttBBox.h"
19#include "TEveElement.h"
21class TEveText : public TEveElement,
22 public TNamed,
23 public TAtt3D,
24 public TAttBBox
27 TEveText(const TEveText&); // Not implemented
28 TEveText& operator=(const TEveText&); // Not implemented
31 TString fText; // text
32 Color_t fTextColor; // text color
34 Int_t fFontSize; // FTFont face size
35 Int_t fFontFile; // FTFont file name
36 Int_t fFontMode; // FTFont FTGL class id
38 Float_t fExtrude; // extrude depth
40 Bool_t fAutoLighting; // use default lighting
41 Bool_t fLighting; // force lighting
43 Float_t fPolygonOffset[2]; // depth test
46 TEveText(const char* txt="");
47 virtual ~TEveText() {}
49 Int_t GetFontSize() const { return fFontSize; }
50 Int_t GetFontFile() const { return fFontFile; }
51 Int_t GetFontMode() const { return fFontMode; }
52 void SetFontSize(Int_t size, Bool_t validate = kTRUE);
54 void SetFontFile(const char* name);
57 const char* GetText() const { return fText.Data(); }
58 void SetText(const char* t) { fText = t; }
60 Bool_t GetLighting() const { return fLighting; }
61 void SetLighting(Bool_t isOn) { fLighting = isOn; }
64 void SetAutoLighting(Bool_t isOn) { fAutoLighting = isOn; }
66 Float_t GetExtrude() const { return fExtrude; }
70 void SetPolygonOffset(Float_t factor, Float_t units);
72 virtual void Paint(Option_t* option="");
73 virtual void ComputeBBox();
77 ClassDef(TEveText, 0); // Class for visualisation of text with FTGL font.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
bool Bool_t
Definition: RtypesCore.h:63
int Int_t
Definition: RtypesCore.h:45
short Color_t
Definition: RtypesCore.h:92
const Bool_t kFALSE
Definition: RtypesCore.h:101
float Float_t
Definition: RtypesCore.h:57
const Bool_t kTRUE
Definition: RtypesCore.h:100
const char Option_t
Definition: RtypesCore.h:66
#define ClassDef(name, id)
Definition: Rtypes.h:335
Option_t Option_t option
Option_t Option_t TPoint TPoint const char mode
char name[80]
Definition: TGX11.cxx:110
Use this attribute class when an object should have 3D capabilities.
Definition: TAtt3D.h:19
Helper for management of bounding-box information.
Definition: TAttBBox.h:18
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
Definition: TEveElement.h:36
TEveElement class used for displaying FreeType GL fonts.
Definition: TEveText.h:25
Bool_t fLighting
Definition: TEveText.h:41
virtual ~TEveText()
Definition: TEveText.h:47
virtual void ComputeBBox()
Fill bounding-box information.
Definition: TEveText.cxx:126
Bool_t fAutoLighting
Definition: TEveText.h:40
TString fText
Definition: TEveText.h:31
Float_t GetExtrude() const
Definition: TEveText.h:66
const char * GetText() const
Definition: TEveText.h:57
void SetAutoLighting(Bool_t isOn)
Definition: TEveText.h:64
Float_t fPolygonOffset[2]
Definition: TEveText.h:43
void SetFontFile(Int_t file)
Definition: TEveText.h:53
Bool_t GetAutoLighting() const
Definition: TEveText.h:63
void SetFontMode(Int_t mode)
Set FTFont class ID.
Definition: TEveText.cxx:93
virtual void Paint(Option_t *option="")
Paint this object. Only direct rendering is supported.
Definition: TEveText.cxx:116
void SetFontSize(Int_t size, Bool_t validate=kTRUE)
Set valid font size.
Definition: TEveText.cxx:60
Bool_t GetLighting() const
Definition: TEveText.h:60
void SetLighting(Bool_t isOn)
Definition: TEveText.h:61
Float_t fExtrude
Definition: TEveText.h:38
TEveText(const TEveText &)
Int_t GetFontSize() const
Definition: TEveText.h:49
Float_t GetPolygonOffset(Int_t i) const
Definition: TEveText.h:69
void SetPolygonOffset(Float_t factor, Float_t units)
Set the scale and units used to calculate depth values.
Definition: TEveText.cxx:107
Int_t GetFontFile() const
Definition: TEveText.h:50
Int_t fFontSize
Definition: TEveText.h:34
virtual const TGPicture * GetListTreeIcon(Bool_t open=kFALSE)
Return TEveText icon.
Definition: TEveText.cxx:134
Int_t fFontFile
Definition: TEveText.h:35
TEveText & operator=(const TEveText &)
void SetText(const char *t)
Definition: TEveText.h:58
Color_t fTextColor
Definition: TEveText.h:32
Int_t fFontMode
Definition: TEveText.h:36
void SetExtrude(Float_t x)
Definition: TEveText.h:67
Int_t GetFontMode() const
Definition: TEveText.h:51
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition: TGPicture.h:25
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
Basic string class.
Definition: TString.h:136
const char * Data() const
Definition: TString.h:369
Double_t x[n]
Definition: legend1.C:17
Definition: file.py:1