1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \brief GUI for drawing detection element segmentation
11 #ifndef ALI_MP_DE_VISU_H
12 #define ALI_MP_DE_VISU_H
15 #include "AliMpPlaneType.h"
21 class TRootEmbeddedCanvas;
31 class AliMpVSegmentation;
35 class AliMpDEVisu : public TGFrame {
39 AliMpDEVisu(UInt_t w = 1200, UInt_t h = 600);
40 virtual ~AliMpDEVisu();
44 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
47 void DrawManuMotif(Bool_t popup = kFALSE);
48 void DrawQuadrant(Option_t* option, Bool_t popup = kFALSE);
49 void DrawSlat(Option_t* option, Bool_t popup = kFALSE);
52 void UpdateNameView();
53 void PopUpManuMotif(AliMpSlat* slat);
54 void PopUpManuMotif(AliMpSector* sector);
56 void ClosedPopUpMotif(Int_t id);
59 void SaveLogMessage();
60 void ClearLogMessage();
62 void HandleMovement(Int_t eventType, Int_t eventX, Int_t eventY, TObject* select);
66 const TGWindow* fkMainWindow; //!< main window
67 TGMainFrame* fMain; //!< main frame
68 TRootEmbeddedCanvas* fEcanvas; //!< canvas for detection elt
70 TGComboBox* fChamberCombo; //!< chamber botton
71 TGComboBox* fDECombo; //!< DE botton
72 TGNumberEntry* fNumberEntry; //!< manu id button
73 TGCheckButton* fPlaneButton; //!< check button for NB plane, defaultwise B plane
74 TGTextView* fNameDEView; //!< name of the DE
75 TGTextView* fLogMessage; //!< log message
76 TGTextEntry* fLogFile; //!< text entry for log file name
77 TList fTrashList; //!< list of transient windows to delete
79 TArrayI fDEComboIdx; //!< array for index vs DE id
81 AliMp::PlaneType fCurrentPlane; //!< current plane type
82 Int_t fCurrentDetElem; //!< current DE
83 TString fCurrentDEName; //!< current DE name
85 const AliMpVSegmentation* fSegmentation; //!< segmentation instance
86 AliMpDDLStore* fDDLStore; //!< DDL Store
88 Int_t fNumberOfPopUp; //!< number of manu motif popup window open
90 enum {kChamberCombo, kDECombo, kPlaneType, kDEName, kManuEntries, kLogMessage};
93 AliMpDEVisu(const AliMpDEVisu& src);
94 AliMpDEVisu& operator=(const AliMpDEVisu& src);
96 ClassDef(AliMpDEVisu,1)