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);
46 void DrawManuMotif(Bool_t popup = kFALSE);
47 void DrawQuadrant(Option_t* option, Bool_t popup = kFALSE);
48 void DrawSlat(Option_t* option, Bool_t popup = kFALSE);
51 void UpdateNameView();
52 void PopUpManuMotif(AliMpSlat* slat);
53 void PopUpManuMotif(AliMpSector* sector);
56 void SaveLogMessage();
57 void ClearLogMessage();
59 void HandleMovement(Int_t eventType, Int_t eventX, Int_t eventY, TObject* select);
63 const TGWindow* fkMainWindow; //!< main window
64 TGMainFrame* fMain; //!< main frame
65 TRootEmbeddedCanvas* fEcanvas; //!< canvas for detection elt
67 TGComboBox* fChamberCombo; //!< chamber botton
68 TGComboBox* fDECombo; //!< DE botton
69 TGNumberEntry* fNumberEntry; //!< manu id button
70 TGCheckButton* fPlaneButton; //!< check button for NB plane, defaultwise B plane
71 TGTextView* fNameDEView; //!< name of the DE
72 TGTextView* fLogMessage; //!< log message
73 TGTextEntry* fLogFile; //!< text entry for log file name
74 TList fTrashList; //!< list of transient windows to delete
76 TArrayI fDEComboIdx; //!< array for index vs DE id
78 AliMp::PlaneType fCurrentPlane; //!< current plane type
79 Int_t fCurrentDetElem; //!< current DE
80 TString fCurrentDEName; //!< current DE name
82 const AliMpVSegmentation* fSegmentation; //!< segmentation instance
83 AliMpDDLStore* fDDLStore; //!< DDL Store
85 enum {kChamberCombo, kDECombo, kPlaneType, kDEName, kManuEntries, kLogMessage};
88 AliMpDEVisu(const AliMpDEVisu& src);
89 AliMpDEVisu& operator=(const AliMpDEVisu& src);
91 ClassDef(AliMpDEVisu,1)