KaliVeda
Toolkit for HIC analysis
KVNucleusBox.h
1 
4 #ifndef __KVNUCLEUSBOX_H
5 #define __KVNUCLEUSBOX_H
6 
7 #include "TBox.h"
8 #include "KVNucleus.h"
9 #include "KVNuclearChart.h"
10 #include "TLatex.h"
11 
19 class KVNucleusBox : public TBox {
20 protected:
28 
29 public:
30  KVNucleusBox(Int_t Z, Int_t N, Double_t size = 0.4, Int_t colStable = kBlack, Int_t colRadio = kGray + 1);
31  KVNucleusBox(KVNucleus* nuc, Double_t size = 0.4, Bool_t owner = kTRUE);
32 
33  KVNucleusBox(const KVNucleusBox&) ;
34  virtual ~KVNucleusBox();
35  void Copy(TObject&) const;
36 
37  void ExecuteEvent(Int_t event, Int_t px, Int_t py);
38  void SetDrawMode(Bool_t DrawSame);
39  void SetNuclearChart(KVNuclearChart* nuclearchart)
40  {
41  fNuclearChart = nuclearchart;
42  }
43  void EnableToolTip();
44 
46  {
47  return fShowSymbol;
48  }
49  void SetShowSymbol(Bool_t value = kTRUE); // *TOGGLE*
50  void SetSymbolSize(Float_t size = 0.02)
51  {
53  }
54 
55  virtual void Delete(Option_t* option = "")
56  {
58  }
59  virtual void DrawClass() const
60  {
62  }
63  virtual TObject* DrawClone(Option_t* option = "") const
64  {
65  return TBox::DrawClone(option);
66  }
67  virtual void Dump() const
68  {
69  TBox::Dump();
70  }
71 
72  virtual void Inspect() const
73  {
74  TBox::Inspect();
75  }
76  virtual void SaveAs(const char* filename = "", Option_t* option = "") const
77  {
79  }
80  virtual void SetDrawOption(Option_t* option = "")
81  {
83  }
84 
85  virtual void SetLineAttributes()
86  {
88  }
89  virtual void SetFillAttributes()
90  {
92  }
93  void Paint(Option_t* option = "");
94 
95 
96  ClassDef(KVNucleusBox, 1) //A TBox representing a nucleus in a KVNuclearChart
97 };
98 
99 #endif
int Int_t
size_t size(const MatrixT &matrix)
bool Bool_t
float Float_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Used to draw nuclear chart.
A TBox representing a nucleus in a KVNuclearChart.
Definition: KVNucleusBox.h:19
TLatex fSymbol
Definition: KVNucleusBox.h:27
virtual ~KVNucleusBox()
Destructor.
void SetShowSymbol(Bool_t value=kTRUE)
virtual void Delete(Option_t *option="")
Definition: KVNucleusBox.h:55
virtual void Dump() const
Definition: KVNucleusBox.h:67
void SetDrawMode(Bool_t DrawSame)
virtual void SetLineAttributes()
Definition: KVNucleusBox.h:85
KVNuclearChart * fNuclearChart
Definition: KVNucleusBox.h:26
void EnableToolTip()
virtual TObject * DrawClone(Option_t *option="") const
Definition: KVNucleusBox.h:63
Bool_t fOwnNucleus
Definition: KVNucleusBox.h:23
Bool_t fShowSymbol
Definition: KVNucleusBox.h:24
KVNucleusBox(Int_t Z, Int_t N, Double_t size=0.4, Int_t colStable=kBlack, Int_t colRadio=kGray+1)
Constructor with Z,N of a Nucleus.
virtual void SetDrawOption(Option_t *option="")
Definition: KVNucleusBox.h:80
Int_t GetShowSymbol()
Definition: KVNucleusBox.h:45
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual void SetFillAttributes()
Definition: KVNucleusBox.h:89
void Copy(TObject &) const
void SetSymbolSize(Float_t size=0.02)
Definition: KVNucleusBox.h:50
virtual void DrawClass() const
Definition: KVNucleusBox.h:59
void SetNuclearChart(KVNuclearChart *nuclearchart)
Definition: KVNucleusBox.h:39
KVNucleus * fNucleus
Definition: KVNucleusBox.h:25
virtual void Inspect() const
Definition: KVNucleusBox.h:72
void Paint(Option_t *option="")
Bool_t fDrawSame
Definition: KVNucleusBox.h:22
virtual void SaveAs(const char *filename="", Option_t *option="") const
Definition: KVNucleusBox.h:76
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:126
virtual void SetFillAttributes()
virtual void SetLineAttributes()
virtual void SetTextSize(Float_t tsize=1)
virtual void Inspect() const
virtual void Dump() const
virtual TObject * DrawClone(Option_t *option="") const
virtual void SaveAs(const char *filename="", Option_t *option="") const
virtual void Delete(Option_t *option="")
virtual void SetDrawOption(Option_t *option="")
virtual void DrawClass() const