v2.10-0 (21000JUN2005)

Go4GUI
Class TGo4WindowEditSlots


class TGo4WindowEditSlots
derived from TGo4SlotsBaseClass

Author:
Mohammad Al-Turany, Joern Adamczewski
Since: 14.07.03

Field Summary
 private Bool_tfbHideAll
          If true, all visible conditions are not shown
 private Bool_tfbInitDone
          If true, dynamic arrays have been initialized
 private Bool_tfbNeedsUpdate
          true ifcondition values have been changed since last refresh.
 private Bool_tfbPickArray
          Sets condition limits pick mode to record whole array
 private Int_tfiCurrentPad
          index of currently used working pad
 private Go4MouseMode_tfiMouseMode
          This switches mouse modes:
0: normal (root) mode
1: pick mode for cursor
2: pick mode for condition limits (integration)
see Go4MouseModes.h
 private Int_tfiNumPads
          maximum number of working pads at the moment
 private UInt_tfuPickCounter
          Used to count number of clicks for recording condition limits
 private TH1*fxHisto
          reference to currently used histogram
 private vectorfxPad
          references to assigned working pads.
 private TGo4GUIRegistry*fxTGo4GUIRegistry
           
 private TGo4WindowEdit*fxTGo4WindowEdit
           
 private TGo4WindowEditStatus*fxTGo4WindowEditStatus
           
 private TGo4PreviewPanel*fxView
          reference to active viewpanel of main window
 private TGo4PreviewPanel*fxWorkView
          reference to currently used viewpanel

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4WindowEditSlots(const char * name, const char * title, TGo4WindowEdit* p)
           

Destructor Summary
 virtual synchronized ~TGo4WindowEditSlots()
           

Method Summary
 voidAddObject(TNamed* )
           
 voidAssignWorkViewPanel(TGo4PreviewPanel* view)
          Conditions in the pad options of view will be set as working conditions.
 voidClearConditions(Bool_t keeplabels)
          Clear all condition related information from the working pad.
 voidClearCounters()
          Reset the counter of the condition under edit.
 voidClick(TGo4PreviewPanel* view, TPad* pad)
          framework calls this method whenever mouse clicks on pad
 voidCreateNewCondition(const Text_t* name, const Text_t* classname, Int_t num, Int_t dim)
          Create new condition name of class classname and put it into
current editor (central mode only).
 voidDrawConditions()
          Draw conditions to the working pad.
 voidDrawMarkers()
          Draw all visible information to the working pad.
 voidEnterEvent()
          Called when mouse event resizes box
 private TPad*FindObjectSubpad(TObject* obj, TPad* parent)
          Find the subpad of parent which really contains object obj.
used to locate the draw panel in a picture
 Double_tGetCMax()
          Value of currently active Histogram.
 TGo4WindowEdit*GetGUI()
           
 const const Text_t*GetHistogramName()
          Delivers name of currently active Histogram.
 Double_tGetIntegral()
          Value of currently active Histogram.
 const const Text_t*GetLinkedHistogramName()
          Delivers name of linked histogram.
 Double_tGetMean(Int_t axis)
          Value of currently active Histogram.
 Go4MouseMode_tGetMouseMode()
           
 Int_tGetNumPads()
           
 Double_tGetRMS(Int_t axis)
          Value of currently active Histogram.
 TGo4Status*GetStatus()
           
 TGo4Condition*GetWorkPadCondition(Int_t index)
          access to condition stored in the padoptions of a working pad.
 Double_tGetXMax()
          Value of currently active Histogram.
 Double_tGetYMax()
          Value of currently active Histogram.
 voidHighlightCondition(Int_t index)
          Highlight the active condition of index.
 Bool_tIsCMaxDraw()
           
 Bool_tIsHideMode()
           
 Bool_tIsHistogramLink()
          True if currently edited condition is linked to a histogram
 Bool_tIsIntDraw()
           
 Bool_tIsLabelDraw()
           
 Bool_tIsLimitsDraw()
           
 Bool_tIsPickArray()
           
 Bool_tIsVisible()
          True if currently edited condition is visible
 Bool_tIsXMaxDraw()
           
 Bool_tIsXMeanDraw()
           
 Bool_tIsXRMSDraw()
           
 Bool_tIsYMaxDraw()
           
 Bool_tIsYMeanDraw()
           
 Bool_tIsYRMSDraw()
           
 Bool_tNeedsUpdate()
           
 voidRemoveViewPanel(TGo4PreviewPanel* view)
          framework calls this method when view was deleted.
 voidSendRefreshCommand(const Text_t* newname)
           
 voidSendUpdateCommand(const Text_t* newname)
           
 voidSetCMaxDraw(Bool_t on)
           
 voidSetCurrentPad(Int_t index)
          Set pad from the list of workings pads with index as actual working pad.
 voidSetGUI(TGo4WindowEdit* GUI)
           
 voidSetHideMode(Bool_t on)
           
 voidSetHistogram()
          Set currently active histogram
 voidSetHistogramLink(Bool_t on)
          Link name of current histogram to this condition
 voidSetIntDraw(Bool_t on)
           
 voidSetInvertMode(Int_t mode)
          Change the result mode of working condition
 voidSetLabelDraw(Bool_t on)
           
 voidSetLimits(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)
          Change the limits of the currently edited condition
 voidSetLimitsDraw(Bool_t on)
           
 voidSetMouseMode(Go4MouseMode_t mode)
           
 voidSetNewTCutG(Bool_t editmode, Bool_t cancel)
          Assign newly created cutg on working pad to current polygon condition.
 voidSetPickArray(Bool_t on)
           
 voidSetPickCounter(UInt_t val)
           
 voidSetResultMode(Int_t mode)
          Change the result mode of working condition
 voidSetViewPanel(TGo4PreviewPanel* view)
          framework calls this method whenever view focus changes
 voidSetVisible(Bool_t on)
          Change visibility on canvas for currently edited con
 voidSetWorkingPad()
          Set currently active pad as working pad for window display
 voidSetWorkPadCondition(TGo4Condition* con)
          Stor condition con into options of current working pad
 voidSetXMaxDraw(Bool_t on)
           
 voidSetXMeanDraw(Bool_t on)
           
 voidSetXRMSDraw(Bool_t on)
           
 voidSetYMaxDraw(Bool_t on)
           
 voidSetYMeanDraw(Bool_t on)
           
 voidSetYRMSDraw(Bool_t on)
           
 voidStatusChanged(TGo4Status* status)
           
 TPad*WorkingPad(Int_t index)
          Delivers working pad indexed in vector of registered pads.

Methods inherited from class Go4GUIBase.TGo4SlotsBaseClass
AddObject, AddObjectToLocalList, AddObjectToRemoteList

Methods inherited from class TNamed
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fbHideAll

private Bool_t fbHideAll
If true, all visible conditions are not shown

fbInitDone

private Bool_t fbInitDone
If true, dynamic arrays have been initialized

fbNeedsUpdate

private Bool_t fbNeedsUpdate
true ifcondition values have been changed since last refresh.

fbPickArray

private Bool_t fbPickArray
Sets condition limits pick mode to record whole array

fiCurrentPad

private Int_t fiCurrentPad
index of currently used working pad

fiMouseMode

private Go4MouseMode_t fiMouseMode
This switches mouse modes:
0: normal (root) mode
1: pick mode for cursor
2: pick mode for condition limits (integration)
see Go4MouseModes.h

fiNumPads

private Int_t fiNumPads
maximum number of working pads at the moment

fuPickCounter

private UInt_t fuPickCounter
Used to count number of clicks for recording condition limits

fxHisto

private TH1* fxHisto
reference to currently used histogram

fxPad

private vector fxPad
references to assigned working pads. Multiple pads support for pictures.

fxTGo4GUIRegistry

private TGo4GUIRegistry* fxTGo4GUIRegistry
supplierCardinality 1

fxTGo4WindowEdit

private TGo4WindowEdit* fxTGo4WindowEdit

fxTGo4WindowEditStatus

private TGo4WindowEditStatus* fxTGo4WindowEditStatus

fxView

private TGo4PreviewPanel* fxView
reference to active viewpanel of main window

fxWorkView

private TGo4PreviewPanel* fxWorkView
reference to currently used viewpanel
Constructor Detail

TGo4WindowEditSlots

public TGo4WindowEditSlots(const char * name, const char * title, TGo4WindowEdit* p)
Method Detail

~TGo4WindowEditSlots

public virtual synchronized ~TGo4WindowEditSlots()
Method Detail

AddObject

public void AddObject(TNamed* )

AssignWorkViewPanel

public void AssignWorkViewPanel(TGo4PreviewPanel* view)
Conditions in the pad options of view will be set as working conditions.
Evaluates list of working pads.

ClearConditions

public void ClearConditions(Bool_t keeplabels)
Clear all condition related information from the working pad.
If keeplabels is true, label boxes are restored.

ClearCounters

public void ClearCounters()
Reset the counter of the condition under edit.

Click

public void Click(TGo4PreviewPanel* view, TPad* pad)
framework calls this method whenever mouse clicks on pad

CreateNewCondition

public void CreateNewCondition(const Text_t* name, const Text_t* classname, Int_t num, Int_t dim)
Create new condition name of class classname and put it into
current editor (central mode only). If num>1, an condition array of the type
is created. Dimension dim specifies window condition dimension

DrawConditions

public void DrawConditions()
Draw conditions to the working pad. Use TGo4Condition::Draw

DrawMarkers

public void DrawMarkers()
Draw all visible information to the working pad.

EnterEvent

public void EnterEvent()
Called when mouse event resizes box

FindObjectSubpad

private TPad* FindObjectSubpad(TObject* obj, TPad* parent)
Find the subpad of parent which really contains object obj.
used to locate the draw panel in a picture

GetCMax

public Double_t GetCMax()
Value of currently active Histogram.

GetGUI

public TGo4WindowEdit* GetGUI()

GetHistogramName

public const const Text_t* GetHistogramName()
Delivers name of currently active Histogram.

GetIntegral

public Double_t GetIntegral()
Value of currently active Histogram.

GetLinkedHistogramName

public const const Text_t* GetLinkedHistogramName()
Delivers name of linked histogram.

GetMean

public Double_t GetMean(Int_t axis)
Value of currently active Histogram.

GetMouseMode

public Go4MouseMode_t GetMouseMode()

GetNumPads

public Int_t GetNumPads()

GetRMS

public Double_t GetRMS(Int_t axis)
Value of currently active Histogram.

GetStatus

public TGo4Status* GetStatus()

GetWorkPadCondition

public TGo4Condition* GetWorkPadCondition(Int_t index)
access to condition stored in the padoptions of a working pad.
The pad is taken by index from vector of registered working pads. Negative index(default)
will deliver condition in the current working pad.

GetXMax

public Double_t GetXMax()
Value of currently active Histogram.

GetYMax

public Double_t GetYMax()
Value of currently active Histogram.

HighlightCondition

public void HighlightCondition(Int_t index)
Highlight the active condition of index.

IsCMaxDraw

public Bool_t IsCMaxDraw()

IsHideMode

public Bool_t IsHideMode()

IsHistogramLink

public Bool_t IsHistogramLink()
True if currently edited condition is linked to a histogram

IsIntDraw

public Bool_t IsIntDraw()

IsLabelDraw

public Bool_t IsLabelDraw()

IsLimitsDraw

public Bool_t IsLimitsDraw()

IsPickArray

public Bool_t IsPickArray()

IsVisible

public Bool_t IsVisible()
True if currently edited condition is visible

IsXMaxDraw

public Bool_t IsXMaxDraw()

IsXMeanDraw

public Bool_t IsXMeanDraw()

IsXRMSDraw

public Bool_t IsXRMSDraw()

IsYMaxDraw

public Bool_t IsYMaxDraw()

IsYMeanDraw

public Bool_t IsYMeanDraw()

IsYRMSDraw

public Bool_t IsYRMSDraw()

NeedsUpdate

public Bool_t NeedsUpdate()

RemoveViewPanel

public void RemoveViewPanel(TGo4PreviewPanel* view)
framework calls this method when view was deleted.
We cleanup possible references then!

SendRefreshCommand

public void SendRefreshCommand(const Text_t* newname)

SendUpdateCommand

public void SendUpdateCommand(const Text_t* newname)

SetCMaxDraw

public void SetCMaxDraw(Bool_t on)

SetCurrentPad

public void SetCurrentPad(Int_t index)
Set pad from the list of workings pads with index as actual working pad.

SetGUI

public void SetGUI(TGo4WindowEdit* GUI)

SetHideMode

public void SetHideMode(Bool_t on)

SetHistogram

public void SetHistogram()
Set currently active histogram

SetHistogramLink

public void SetHistogramLink(Bool_t on)
Link name of current histogram to this condition

SetIntDraw

public void SetIntDraw(Bool_t on)

SetInvertMode

public void SetInvertMode(Int_t mode)
Change the result mode of working condition

SetLabelDraw

public void SetLabelDraw(Bool_t on)

SetLimits

public void SetLimits(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)
Change the limits of the currently edited condition

SetLimitsDraw

public void SetLimitsDraw(Bool_t on)

SetMouseMode

public void SetMouseMode(Go4MouseMode_t mode)

SetNewTCutG

public void SetNewTCutG(Bool_t editmode, Bool_t cancel)
Assign newly created cutg on working pad to current polygon condition.
If editmode true, start root cutg editor. otherwise assign first cut on current pad
If cancel true, discard any new cut on current pad

SetPickArray

public void SetPickArray(Bool_t on)

SetPickCounter

public void SetPickCounter(UInt_t val)

SetResultMode

public void SetResultMode(Int_t mode)
Change the result mode of working condition

SetViewPanel

public void SetViewPanel(TGo4PreviewPanel* view)
framework calls this method whenever view focus changes

SetVisible

public void SetVisible(Bool_t on)
Change visibility on canvas for currently edited con

SetWorkingPad

public void SetWorkingPad()
Set currently active pad as working pad for window display

SetWorkPadCondition

public void SetWorkPadCondition(TGo4Condition* con)
Stor condition con into options of current working pad

SetXMaxDraw

public void SetXMaxDraw(Bool_t on)

SetXMeanDraw

public void SetXMeanDraw(Bool_t on)

SetXRMSDraw

public void SetXRMSDraw(Bool_t on)

SetYMaxDraw

public void SetYMaxDraw(Bool_t on)

SetYMeanDraw

public void SetYMeanDraw(Bool_t on)

SetYRMSDraw

public void SetYRMSDraw(Bool_t on)

StatusChanged

public void StatusChanged(TGo4Status* status)

WorkingPad

public TPad* WorkingPad(Int_t index)
Delivers working pad indexed in vector of registered pads.
Checks limits of workingpad array. Negative index (default) will deliver current working pad

Association Links

to Class TGo4GUIRegistry

Supplier Cardinality 1

to Class TGo4WindowEditStatus

to Class TPad

references to assigned working pads. Multiple pads support for pictures.

to Class TH1

reference to currently used histogram

to Class Go4MouseMode_t

This switches mouse modes:
0: normal (root) mode
1: pick mode for cursor
2: pick mode for condition limits (integration)
see Go4MouseModes.h

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005