4#include "KVNucleusBox.h"
30 fSymbol.SetText(fN, fZ, fNucleus->GetLatexSymbol());
31 fSymbol.SetTextAlign(22);
32 fSymbol.SetTextSize(.02);
34 if (fNucleus->IsStable()) {
39 else if (fNucleus->GetLifeTime() > 1.e-06) {
182 cc->GetContextMenu()->Popup(px, py,
fNuclearChart, cc, cc->cd());
size_t size(const MatrixT &matrix)
Option_t Option_t SetLineWidth
Option_t Option_t SetLineColor
Option_t Option_t SetFillColor
char * Form(const char *fmt,...)
TCanvas with mouse-controlled dynamic zoom and pan & scan.
void SetCurrentNuc(KVNucleus *nuc)
void ShowNucleusInfo(KVNucleus *nuc)
A TBox representing a nucleus in a KVNuclearChart.
virtual ~KVNucleusBox()
Destructor.
void SetShowSymbol(Bool_t value=kTRUE)
void SetDrawMode(Bool_t DrawSame)
KVNuclearChart * fNuclearChart
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.
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
void Copy(TObject &) const
void Paint(Option_t *option="")
Description of properties and kinematics of atomic nuclei.
const Char_t * GetSymbol(Option_t *opt="") const
Int_t GetN() const
Return the number of neutron.
void SetZandA(Int_t z, Int_t a)
Set atomic number and mass number.
const Char_t * GetLatexSymbol(Option_t *opt="") const
Bool_t IsStable(Double_t min_lifetime=1.0e+15) const
Int_t GetZ() const
Return the number of proton / atomic number.
Double_t GetLifeTime(Int_t z=-1, Int_t a=-1) const
virtual void SetFillColor(Color_t fcolor)
virtual void SetFillStyle(Style_t fstyle)
virtual void SetLineWidth(Width_t lwidth)
virtual void SetLineColor(Color_t lcolor)
virtual void SetTextAlign(Short_t align=11)
virtual void SetTextSize(Float_t tsize=1)
virtual void SetToolTipText(const char *text, Long_t delayms=1000)
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
void Paint(Option_t *option="") override
void Copy(TObject &box) const override
void Paint(Option_t *option="") override
virtual void SetText(Double_t x, Double_t y, const char *text)