AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpDEVisu.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 
10 
11 #ifndef ALI_MP_DE_VISU_H
12 #define ALI_MP_DE_VISU_H
13 
14 #include <TGFrame.h>
15 
16 #include "AliMpPlaneType.h"
17 
18 #include <TArrayI.h>
19 #include <TObjArray.h>
20 
21 class TObject;
22 class TString;
23 class TRootEmbeddedCanvas;
24 class TGComboBox;
25 class TGMainFrame;
26 class TGWindow;
27 class AliMpVPainter;
28 class TGNumberEntry;
29 class TGCheckButton;
30 class TGTextView;
31 class AliMpSlat;
32 class AliMpSector;
33 class AliMpVSegmentation;
34 class AliMpDDLStore;
35 class AliMpManuStore;
36 class TGTextEntry;
37 class AliMpMotifPosition;
38 
39 class AliMpDEVisu : public TGFrame
40 {
41 
42 public:
43  AliMpDEVisu(UInt_t w = 1200, UInt_t h = 600);
44  virtual ~AliMpDEVisu();
45 
46 
47  void UpdateComboCH();
48  void UpdateComboDE();
49  Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
50  void DrawDE(Bool_t info = kTRUE);
51  void NextDE();
52  void DrawManuMotif(Bool_t popup = kFALSE);
53  void DrawQuadrant(Option_t* option, Bool_t popup = kFALSE);
54  void DrawSlat(Option_t* option, Bool_t popup = kFALSE);
55 
56  void ResetManu();
57  void UpdateNameView(Bool_t firstTime = kFALSE);
58  void PopUpManuMotif(AliMpSlat* slat);
60  void PopUpZoom(Int_t ix0, Int_t iy0, Int_t ix1, Int_t iy1);
61 
62  void ClosePopupWindow(Int_t id);
63  void InfoDE();
64  void InfoManuMotif(AliMpMotifPosition* motifPos);
65  void DeletePopUp();
66  void SaveLogMessage();
67  void ClearLogMessage();
68 
69  void HandleMovement(Int_t eventType, Int_t eventX, Int_t eventY, TObject* select);
70 
71 private:
72  void EventToReal(Int_t eventX, Int_t eventY, Double_t& x, Double_t& y) const;
73  void CreatePopupWindow(Int_t w, Int_t h, const char* title,
74  AliMpVPainter* painter,
75  const char* option);
76 
77 private:
79  AliMpDEVisu(const AliMpDEVisu& src);
81  AliMpDEVisu& operator=(const AliMpDEVisu& src);
82 
83  const TGWindow* fkMainWindow;
84  TGMainFrame* fMain;
85  TRootEmbeddedCanvas* fEcanvas;
86 
87  TGComboBox* fChamberCombo;
88  TGComboBox* fDECombo;
89  TGNumberEntry* fNumberEntry;
90  TGCheckButton* fPlaneButton;
91  TGCheckButton* fZoomButton;
92  TGComboBox* fNameDECombo;
93  TGTextView* fLogMessage;
94  TGTextEntry* fLogFile;
96 
97  TArrayI fDEComboIdx;
98  TString fNameDEComboIdx[156];
99  TArrayI fDEOccurrence;
100 
103  TString fCurrentDEName;
104 
108 
109  Bool_t fZoomMode;
110 
112 
113  ClassDef(AliMpDEVisu,1) //GUI for drawing detection element segmentation
114 };
115 #endif
116 
TGTextEntry * fLogFile
! text entry for log file name
Definition: AliMpDEVisu.h:94
sector
Definition: AliFMDv1.cxx:91
#define TObjArray
TGComboBox * fChamberCombo
! chamber botton
Definition: AliMpDEVisu.h:87
AliMpDDLStore * fDDLStore
! DDL Store
Definition: AliMpDEVisu.h:106
The top container class for DDLs, det elements and bus patched.
Definition: AliMpDDLStore.h:35
Int_t fCurrentDetElem
! current DE
Definition: AliMpDEVisu.h:102
AliMpDEVisu(UInt_t w=1200, UInt_t h=600)
Definition: AliMpDEVisu.cxx:76
void ClearLogMessage()
void DrawDE(Bool_t info=kTRUE)
void InfoManuMotif(AliMpMotifPosition *motifPos)
TGMainFrame * fMain
! main frame
Definition: AliMpDEVisu.h:84
A slat (building block of stations 3, 4 and 5)
Definition: AliMpSlat.h:51
TObjArray fTrashList
! list of transient windows to delete
Definition: AliMpDEVisu.h:95
TGComboBox * fDECombo
! DE botton
Definition: AliMpDEVisu.h:88
TArrayI fDEOccurrence
! occurrence of DE
Definition: AliMpDEVisu.h:99
void UpdateComboDE()
void DeletePopUp()
TGComboBox * fNameDECombo
! name of the DE
Definition: AliMpDEVisu.h:92
void ClosePopupWindow(Int_t id)
TArrayI fDEComboIdx
! array for index vs DE id
Definition: AliMpDEVisu.h:97
AliMpDEVisu & operator=(const AliMpDEVisu &src)
Not implemented.
void UpdateNameView(Bool_t firstTime=kFALSE)
void PopUpZoom(Int_t ix0, Int_t iy0, Int_t ix1, Int_t iy1)
virtual ~AliMpDEVisu()
TGCheckButton * fZoomButton
! check button to activate zoom mode, default wise disable
Definition: AliMpDEVisu.h:91
A placed motif.
void HandleMovement(Int_t eventType, Int_t eventX, Int_t eventY, TObject *select)
AliMp::PlaneType fCurrentPlane
! current plane type
Definition: AliMpDEVisu.h:101
The container class for manu serial numbers.
Abstract base class for drawing objects into canvas.
Definition: AliMpVPainter.h:21
void DrawSlat(Option_t *option, Bool_t popup=kFALSE)
TGCheckButton * fPlaneButton
! check button for NB plane, defaultwise B plane
Definition: AliMpDEVisu.h:90
void PopUpManuMotif(AliMpSlat *slat)
void CreatePopupWindow(Int_t w, Int_t h, const char *title, AliMpVPainter *painter, const char *option)
A sector (quadrant) of the MUON chamber of stations 1 and 2.
Definition: AliMpSector.h:34
TString fNameDEComboIdx[156]
! array for index vs DE names
Definition: AliMpDEVisu.h:98
TRootEmbeddedCanvas * fEcanvas
! canvas for detection elt
Definition: AliMpDEVisu.h:85
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Bool_t fZoomMode
! flag for zoom mode on canvas instead of click mode
Definition: AliMpDEVisu.h:109
AliMpManuStore * fManuStore
! Manu Store
Definition: AliMpDEVisu.h:107
The abstract base class for the segmentation.
TString fCurrentDEName
! current DE name
Definition: AliMpDEVisu.h:103
GUI for drawing detection element segmentation.
Definition: AliMpDEVisu.h:39
void DrawManuMotif(Bool_t popup=kFALSE)
TGNumberEntry * fNumberEntry
! manu id button
Definition: AliMpDEVisu.h:89
void DrawQuadrant(Option_t *option, Bool_t popup=kFALSE)
void EventToReal(Int_t eventX, Int_t eventY, Double_t &x, Double_t &y) const
const TGWindow * fkMainWindow
! main window
Definition: AliMpDEVisu.h:83
void SaveLogMessage()
void ResetManu()
TGTextView * fLogMessage
! log message
Definition: AliMpDEVisu.h:93
void UpdateComboCH()
const AliMpVSegmentation * fkSegmentation
! segmentation instance
Definition: AliMpDEVisu.h:105
return kTRUE
Definition: AliFMDv1.cxx:97