File indexing completed on 2025-01-18 10:11:43
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TEveText
0013 #define ROOT_TEveText
0014
0015 #include "TNamed.h"
0016 #include "TAtt3D.h"
0017 #include "TAttBBox.h"
0018
0019 #include "TEveElement.h"
0020
0021 class TEveText : public TEveElement,
0022 public TNamed,
0023 public TAtt3D,
0024 public TAttBBox
0025 {
0026 private:
0027 TEveText(const TEveText&);
0028 TEveText& operator=(const TEveText&);
0029
0030 protected:
0031 TString fText;
0032 Color_t fTextColor;
0033
0034 Int_t fFontSize;
0035 Int_t fFontFile;
0036 Int_t fFontMode;
0037
0038 Float_t fExtrude;
0039
0040 Bool_t fAutoLighting;
0041 Bool_t fLighting;
0042
0043 Float_t fPolygonOffset[2];
0044
0045 public:
0046 TEveText(const char* txt="");
0047 ~TEveText() override {}
0048
0049 Int_t GetFontSize() const { return fFontSize; }
0050 Int_t GetFontFile() const { return fFontFile; }
0051 Int_t GetFontMode() const { return fFontMode; }
0052 void SetFontSize(Int_t size, Bool_t validate = kTRUE);
0053 void SetFontFile(Int_t file){ fFontFile = file; }
0054 void SetFontFile(const char* name);
0055 void SetFontMode(Int_t mode);
0056
0057 const char* GetText() const { return fText.Data(); }
0058 void SetText(const char* t) { fText = t; }
0059
0060 Bool_t GetLighting() const { return fLighting; }
0061 void SetLighting(Bool_t isOn) { fLighting = isOn; }
0062
0063 Bool_t GetAutoLighting() const { return fAutoLighting; }
0064 void SetAutoLighting(Bool_t isOn) { fAutoLighting = isOn; }
0065
0066 Float_t GetExtrude() const { return fExtrude; }
0067 void SetExtrude(Float_t x) { fExtrude = x; }
0068
0069 Float_t GetPolygonOffset(Int_t i) const { return fPolygonOffset[i]; }
0070 void SetPolygonOffset(Float_t factor, Float_t units);
0071
0072 void Paint(Option_t* option="") override;
0073 void ComputeBBox() override;
0074
0075 const TGPicture* GetListTreeIcon(Bool_t open=kFALSE) override;
0076
0077 ClassDefOverride(TEveText, 0);
0078 };
0079
0080 #endif