BaseLSPlayer to work on level scheme. More...
#include <BaseLSPlayer.h>
Public Types | |
enum | EDrawStyle { kRadware, kEnsdf, kUnknown } |
Public Member Functions | |
virtual Int_t | CollectCascades (Option_t *o="") |
Collect selected cascades. More... | |
virtual Int_t | CollectLevels (Option_t *o="") |
Collect selected leveks. More... | |
virtual Int_t | CollectLinks (Option_t *o="") |
Collect selected links. More... | |
Bool_t | Connect (TCanvas *c=0x0) |
Connect the Canvas to this to collect events. More... | |
virtual void | Delete (Option_t *) |
Intercept Delete. More... | |
virtual void | DeSelect () |
Deselect all objects. More... | |
Bool_t | Disconnect (TCanvas *c=0x0) |
Connect the Canvas to this to collect events. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Compute distance to object. More... | |
virtual void | DoStyle (EDrawStyle style) |
do style More... | |
virtual void | Draw (Option_t *opt="") |
to draw this level scheme More... | |
virtual void | DrawProjTot (Option_t *="") |
Draw projection total. More... | |
virtual LevelScheme * | GetLevelScheme () |
Get current liks. More... | |
virtual const char * | GetPathtoSaveLS () const |
to get the path where to save the data More... | |
virtual Cascade * | GetSelectedLinks () |
Get current links. More... | |
void | HandleMovement (Int_t eventType, Int_t eventX, Int_t eventY, TObject *select) |
Handle Movement. More... | |
virtual Int_t | ImportLevelScheme (const Char_t *, Option_t *) |
to init this level scheme from an existing formatted file (ENSDF, Radware ..) More... | |
virtual Bool_t | IsDrawStyle (EDrawStyle style) |
get style More... | |
virtual void | PopupAddFirstLevel () |
Popup AddFirstLevel menu. More... | |
virtual void | PopupAddGroundLevel () |
Popup AddGroundLevel. More... | |
virtual void | PopupAddLevel () |
Popup AddLevel menu. More... | |
virtual void | PopupAddLink () |
Popup AddLink menu. More... | |
virtual void | PopupDoProject () |
Popup DoProject menu. More... | |
virtual void | PopupWriteLS () |
Popup write LS menu. More... | |
virtual Int_t | ReadAGS (const Char_t *filename, Option_t *opt="152Dy") |
for backward compatibility More... | |
virtual Int_t | ReadENSDF (const Char_t *, Option_t *) |
for backward compatibility More... | |
virtual void | Select () |
Select all objects. More... | |
virtual void | SetDrawStyle (EDrawStyle style) |
set style More... | |
virtual TString | SetPathtoSaveLS (const char *) |
change url. It returns the previous one More... | |
virtual void | ShowGate (Option_t *="gate") |
Collect gates. More... | |
virtual | ~BaseLSPlayer () |
Static Public Member Functions | |
static Float_t * | GetDefaultSize () |
Get default size. More... | |
static Int_t | GetDefaultToggleColor () |
get default color for axis toggle More... | |
static Float_t | GetDefaultWidth () |
Get default width. More... | |
static Float_t | GetXAxis (Float_t xmin, Float_t xmax) |
Get position of axis in X. More... | |
static Float_t | GetXMax (Float_t xRmin, Float_t xRmax) |
static Float_t | GetXMin (Float_t xRmin, Float_t xRmax) |
Get size from range. More... | |
static Float_t | GetXRmax (Float_t xmin, Float_t xmax) |
static Float_t | GetXRmin (Float_t xmin, Float_t xmax) |
Get range from size. More... | |
static Float_t | GetYLabels (Float_t ymin, Float_t ymax) |
Get position of labels in Y. More... | |
static Float_t | GetYMax (Float_t yRmin, Float_t yRmax) |
static Float_t | GetYMin (Float_t yRmin, Float_t yRmax) |
static Float_t | GetYRmax (Float_t ymin, Float_t ymax) |
static Float_t | GetYRmin (Float_t ymin, Float_t ymax) |
static void | SetDefaultSize (Float_t xmin, Float_t xmax, Float_t ymin, Float_t ymax) |
set default size for level scheme More... | |
static void | SetDefaultToggleColor (Int_t color) |
set default color for axis toggle More... | |
static void | SetDefaultWidth (Float_t width) |
set default widths More... | |
Protected Member Functions | |
BaseLSPlayer (LevelScheme *levelScheme) | |
default constructor More... | |
ClassDef (BaseLSPlayer, 0) | |
log message More... | |
TList & | GetCascadeList () |
Cascade * | GetCurrentCascade () |
Level * | GetCurrentLevel () |
Link * | GetCurrentLink () |
virtual Int_t | GetLastX () |
set/get fLastX/fLastY More... | |
virtual Int_t | GetLastY () |
TList & | GetLevelList () |
TList & | GetLinkList () |
TLatex & | GetNameLatex () |
virtual void | Print (Option_t *) const |
Print out. More... | |
virtual void | SetLastXY (Int_t lastX, Int_t lastY) |
virtual void | SetTipText (TObject *select) |
set text for tool tip info More... | |
Protected Attributes | |
LSaxis * | fAxis |
Color_t | fCColorSelectedLink |
TContextMenu * | fContextMenu |
EDrawStyle | fDrawStyle |
pointer on level scheme More... | |
TGToolTip * | fInfoTip |
Bool_t | fIsLSSelected |
Bool_t | fIsOnAxis |
Bool_t | fIsTipsOn |
LevelScheme * | fLevelScheme |
LogMessage | fLog |
TList * | fNucleiList |
pointer to the selected levels More... | |
Float_t | fPositionLabels |
TList * | fSelectedCascades |
pointer to the selected levels More... | |
Cascade * | fSelectedLevels |
pointer to the selected links More... | |
Cascade * | fSelectedLinks |
Static Protected Attributes | |
static Float_t | fgDefaultSize [] = {28000, 32000, 0, 6000} |
size of the level scheme per default More... | |
static Int_t | fgDefaultToggleColor = 24 |
default color of axis when toggle is on More... | |
static Float_t | fgDefaultWidth = 600 |
default width for level, box etc... More... | |
BaseLSPlayer to work on level scheme.
Level scheme has by default a player that's at least draw the scheme. This class sets the pad range and connect the pad to the ProcessEvent method. The readers are also handle in this class.
A number of pressed keys start an action: 's': select a link/level/cascade '1/x': select a link for a gate on x-axis '2/y': select a link for a gate on y-axis '3/z': select a link for a gate on z-axis 'c': collect selected links (deprecated) 'l': popup add link dialogue box 'e': popup add level dialogue box 't': Toggle on/off active LS menu on canvas, and not only on the energy axis 'i': Toggle on/off information tips that appears when passing over an object
Definition at line 106 of file BaseLSPlayer.h.