25 #define GW_LINK_H Gw_Link
30 #ifndef ROOT_TPolyLine
31 #include <TPolyLine.h>
33 #ifndef ROOT_TSeqCollection
34 #include <TSeqCollection.h>
47 #define MAX_LINK_LABEL 2
65 class Link :
public TPolyLine
80 static Bool_t
IsMovable() {
return fgMovable ==
true; }
83 static Color_t fgDefaultColor;
84 static Bool_t fgMovable;
86 static Color_t fgDefaultLabelColor;
87 static Float_t fgDefaultLabelSize;
141 virtual void SetPoints(Double_t xi, Double_t xf);
171 virtual Int_t
DoCascade(TSeqCollection &, Option_t * =
"")
177 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
191 virtual void SetLabels(
const char *l0,
const char *l1,
const char *l2) ;
207 virtual const char*
GetLabel0() {
return fLabel0.GetTitle(); }
208 virtual const char*
GetLabel1() {
return fLabel1.GetTitle(); }
209 virtual const char*
GetLabel2() {
return fLabel2.GetTitle(); }
212 virtual void SetLabel(
const char *, Int_t);
245 virtual void Draw(Option_t* option =
"");
246 virtual void Paint(Option_t* option =
"");
249 virtual void ls(Option_t* =
"")
const {
return; }
252 void Delete(
const Option_t* =
"") {
return; }
257 virtual Int_t
Compare(
const TObject* obj)
const;
virtual const char * GetLabel2()
virtual void RefreshPoints()
virtual void Paint(Option_t *option="")
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
to execute an event for this link
static void DisableMove()
virtual Bool_t IsModified()
return modified
virtual void DeSelected()
unselected link
static void SetDefaultLabelSize(Float_t size)
virtual void Draw(Option_t *option="")
draw
static Color_t GetDefaultLabelColor()
virtual void SetLabels(const char *l0, const char *l1, const char *l2)
set label titles
virtual void SetLabelsSize(Float_t size)
set all labels size
ClassDef(Link, 5)
rootcint dictionary
virtual TLatex & GetLabel(Int_t)
All labels are shifted when moving a level to another position.
virtual Level * GetIL()
to get the initial level
virtual const char * GetLabel1()
Base class for a Log message.
virtual void ls(Option_t *="") const
ls on link
virtual void SetAdvancedStylePoints(Double_t xi, Double_t xf)
virtual Level * GetFL()
to get the final level
virtual Bool_t IsVisible()
return visible
virtual void SetDefaultLabels()
Set default labels.
virtual Bool_t IsAmbiguous()
template that defines a general Measure
header file for GwLogMessage.cpp
virtual void SetPoints()
to set points from the levels and the Strength
A link between two levels.
static void SetDefaultColor(Color_t color)
virtual void SetAmbiguous(Bool_t isambiguous=true)
virtual Int_t DoCascade(TSeqCollection &, Option_t *="")
to add this link to a cascade
Link & operator=(const Link &)
virtual const char * GetVisLabel()
Used to determine which label should be drawn.
virtual void SetVisLabel(const char *)
Used to determine which label should be drawn.
Bool_t IsSortable() const
Return true as the function Compare is implemented.
virtual void UpdatePoints()
update points respect to a modified level (for future application)
static Float_t GetDefaultLabelSize()
static Color_t GetDefaultColor()
static void SetDefaultLabelColor(Color_t color)
header file for a general Level
static Bool_t IsMovable()
virtual void SetVertical()
virtual Bool_t IsSelected()
return selection
virtual Measure< Float_t > & GetTau()
to get the characteritic time and modify it if it is needed
virtual Measure< Float_t > & GetStrength()
to get the strength and modify it if it is needed
virtual void SetLabelsColor(Color_t color)
set all labels color
virtual Int_t Compare(const TObject *obj) const
virtual const char * GetLabel0()
Get labels title.
virtual Level * GetFL() const
to get the final level
Level * fInitial
log message
Measure< Float_t > fStrength
virtual Level * SetFL(Level *final)
to change the final level - return the previous one
virtual void SetBasicStylePoints(Double_t xi, Double_t xf)
virtual void SetModified()
Set link modified.
virtual void SetVisible()
Set link visible.
virtual Int_t GetArrowStyle()
define arrow style
virtual void Selected()
Selected link.
virtual void SetUnvisible()
Set link unvisble.
virtual void SetLabel(const char *, Int_t)
to set labels
static const Short_t fgkMaxLinkLabel
virtual Level * GetIL() const
virtual void SetUnmdified()
Set link unvisble.
virtual void SetArrowStyle(Int_t style)
virtual Level * SetIL(Level *initial)
to change the final level - return the previous one
void Delete(const Option_t *="")
Delete, redifined to avoid appearence in Menu.
Base class describing a general level.