![]() |
AliRoot Core
7e03155 (7e03155)
|
GUI for drawing detection element segmentation. More...
#include <AliMpDEVisu.h>
Public Member Functions | |
AliMpDEVisu (UInt_t w=1200, UInt_t h=600) | |
virtual | ~AliMpDEVisu () |
void | UpdateComboCH () |
void | UpdateComboDE () |
Bool_t | ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2) |
void | DrawDE (Bool_t info=kTRUE) |
void | NextDE () |
void | DrawManuMotif (Bool_t popup=kFALSE) |
void | DrawQuadrant (Option_t *option, Bool_t popup=kFALSE) |
void | DrawSlat (Option_t *option, Bool_t popup=kFALSE) |
void | ResetManu () |
void | UpdateNameView (Bool_t firstTime=kFALSE) |
void | PopUpManuMotif (AliMpSlat *slat) |
void | PopUpManuMotif (AliMpSector *sector) |
void | PopUpZoom (Int_t ix0, Int_t iy0, Int_t ix1, Int_t iy1) |
void | ClosePopupWindow (Int_t id) |
void | InfoDE () |
void | InfoManuMotif (AliMpMotifPosition *motifPos) |
void | DeletePopUp () |
void | SaveLogMessage () |
void | ClearLogMessage () |
void | HandleMovement (Int_t eventType, Int_t eventX, Int_t eventY, TObject *select) |
Private Types | |
enum | { kChamberCombo, kDECombo, kPlaneType, kDEName, kManuEntries, kLogMessage, kZoomMode } |
Private Member Functions | |
void | EventToReal (Int_t eventX, Int_t eventY, Double_t &x, Double_t &y) const |
void | CreatePopupWindow (Int_t w, Int_t h, const char *title, AliMpVPainter *painter, const char *option) |
AliMpDEVisu (const AliMpDEVisu &src) | |
Not implemented. More... | |
AliMpDEVisu & | operator= (const AliMpDEVisu &src) |
Not implemented. More... | |
Private Attributes | |
const TGWindow * | fkMainWindow |
! main window More... | |
TGMainFrame * | fMain |
! main frame More... | |
TRootEmbeddedCanvas * | fEcanvas |
! canvas for detection elt More... | |
TGComboBox * | fChamberCombo |
! chamber botton More... | |
TGComboBox * | fDECombo |
! DE botton More... | |
TGNumberEntry * | fNumberEntry |
! manu id button More... | |
TGCheckButton * | fPlaneButton |
! check button for NB plane, defaultwise B plane More... | |
TGCheckButton * | fZoomButton |
! check button to activate zoom mode, default wise disable More... | |
TGComboBox * | fNameDECombo |
! name of the DE More... | |
TGTextView * | fLogMessage |
! log message More... | |
TGTextEntry * | fLogFile |
! text entry for log file name More... | |
TObjArray | fTrashList |
! list of transient windows to delete More... | |
TArrayI | fDEComboIdx |
! array for index vs DE id More... | |
TString | fNameDEComboIdx [156] |
! array for index vs DE names More... | |
TArrayI | fDEOccurrence |
! occurrence of DE More... | |
AliMp::PlaneType | fCurrentPlane |
! current plane type More... | |
Int_t | fCurrentDetElem |
! current DE More... | |
TString | fCurrentDEName |
! current DE name More... | |
const AliMpVSegmentation * | fkSegmentation |
! segmentation instance More... | |
AliMpDDLStore * | fDDLStore |
! DDL Store More... | |
AliMpManuStore * | fManuStore |
! Manu Store More... | |
Bool_t | fZoomMode |
! flag for zoom mode on canvas instead of click mode More... | |
GUI for drawing detection element segmentation.
Definition at line 39 of file AliMpDEVisu.h.
|
private |
Enumerator | |
---|---|
kChamberCombo | |
kDECombo | |
kPlaneType | |
kDEName | |
kManuEntries | |
kLogMessage | |
kZoomMode |
Definition at line 111 of file AliMpDEVisu.h.
AliMpDEVisu::AliMpDEVisu | ( | UInt_t | w = 1200 , |
UInt_t | h = 600 |
||
) |
Standard constructor
Definition at line 76 of file AliMpDEVisu.cxx.
|
virtual |
Clean up used widgets: frames, buttons, layouthints
Definition at line 280 of file AliMpDEVisu.cxx.
|
private |
Not implemented.
void AliMpDEVisu::ClearLogMessage | ( | ) |
clear log message
Definition at line 579 of file AliMpDEVisu.cxx.
void AliMpDEVisu::ClosePopupWindow | ( | Int_t | id | ) |
close signal
Definition at line 965 of file AliMpDEVisu.cxx.
|
private |
Create transient frame
Definition at line 776 of file AliMpDEVisu.cxx.
Referenced by PopUpManuMotif(), and PopUpZoom().
void AliMpDEVisu::DeletePopUp | ( | ) |
void AliMpDEVisu::DrawDE | ( | Bool_t | info = kTRUE | ) |
Draws function graphics in randomly choosen interval
Definition at line 379 of file AliMpDEVisu.cxx.
Referenced by NextDE(), and ProcessMessage().
void AliMpDEVisu::DrawManuMotif | ( | Bool_t | popup = kFALSE | ) |
Draw manu motif in yellow and popup channel motif window
Definition at line 408 of file AliMpDEVisu.cxx.
Referenced by HandleMovement().
void AliMpDEVisu::DrawQuadrant | ( | Option_t * | option, |
Bool_t | popup = kFALSE |
||
) |
draw quadrant segmentation
Definition at line 472 of file AliMpDEVisu.cxx.
Referenced by DrawDE(), and DrawManuMotif().
void AliMpDEVisu::DrawSlat | ( | Option_t * | option, |
Bool_t | popup = kFALSE |
||
) |
draw slat segmentation
Definition at line 436 of file AliMpDEVisu.cxx.
Referenced by DrawDE(), and DrawManuMotif().
|
private |
estimate graphic pad sizes
Definition at line 509 of file AliMpDEVisu.cxx.
Referenced by HandleMovement(), and PopUpZoom().
void AliMpDEVisu::HandleMovement | ( | Int_t | eventType, |
Int_t | eventX, | ||
Int_t | eventY, | ||
TObject * | select | ||
) |
handle cursor mouvement
Definition at line 296 of file AliMpDEVisu.cxx.
void AliMpDEVisu::InfoDE | ( | ) |
info concerning the whole DE
Definition at line 588 of file AliMpDEVisu.cxx.
Referenced by DrawDE().
void AliMpDEVisu::InfoManuMotif | ( | AliMpMotifPosition * | motifPos | ) |
info for popup manu motif
Definition at line 901 of file AliMpDEVisu.cxx.
Referenced by PopUpManuMotif().
void AliMpDEVisu::NextDE | ( | ) |
select next DE
Definition at line 685 of file AliMpDEVisu.cxx.
|
private |
Not implemented.
void AliMpDEVisu::PopUpManuMotif | ( | AliMpSlat * | slat | ) |
pop up manu window motif painter for slat
Definition at line 798 of file AliMpDEVisu.cxx.
Referenced by DrawQuadrant(), and DrawSlat().
void AliMpDEVisu::PopUpManuMotif | ( | AliMpSector * | sector | ) |
pop up manu window motif painter for sector
Definition at line 842 of file AliMpDEVisu.cxx.
void AliMpDEVisu::PopUpZoom | ( | Int_t | ix0, |
Int_t | iy0, | ||
Int_t | ix1, | ||
Int_t | iy1 | ||
) |
Bool_t AliMpDEVisu::ProcessMessage | ( | Long_t | msg, |
Long_t | parm1, | ||
Long_t | parm2 | ||
) |
process message from widgets actions/entries
Definition at line 621 of file AliMpDEVisu.cxx.
void AliMpDEVisu::ResetManu | ( | ) |
reset manu search entry
Definition at line 543 of file AliMpDEVisu.cxx.
void AliMpDEVisu::SaveLogMessage | ( | ) |
save log message into log file
Definition at line 567 of file AliMpDEVisu.cxx.
void AliMpDEVisu::UpdateComboCH | ( | ) |
update Chamber/DE in respect to DE Name
Definition at line 701 of file AliMpDEVisu.cxx.
Referenced by ProcessMessage().
void AliMpDEVisu::UpdateComboDE | ( | ) |
update DE in respect to selected chamber
Definition at line 724 of file AliMpDEVisu.cxx.
Referenced by ProcessMessage(), and UpdateComboCH().
void AliMpDEVisu::UpdateNameView | ( | Bool_t | firstTime = kFALSE | ) |
update DE name in respect to selected DE id.
Definition at line 742 of file AliMpDEVisu.cxx.
Referenced by NextDE(), and ProcessMessage().
|
private |
! chamber botton
Definition at line 87 of file AliMpDEVisu.h.
Referenced by UpdateComboCH(), UpdateComboDE(), UpdateNameView(), and ~AliMpDEVisu().
|
private |
! current DE name
Definition at line 103 of file AliMpDEVisu.h.
Referenced by InfoDE(), UpdateComboCH(), and UpdateNameView().
|
private |
! current DE
Definition at line 102 of file AliMpDEVisu.h.
Referenced by DrawDE(), DrawManuMotif(), DrawQuadrant(), DrawSlat(), EventToReal(), HandleMovement(), InfoDE(), InfoManuMotif(), ProcessMessage(), UpdateComboCH(), and UpdateNameView().
|
private |
! current plane type
Definition at line 101 of file AliMpDEVisu.h.
Referenced by DrawQuadrant(), DrawSlat(), ProcessMessage(), UpdateComboCH(), and UpdateNameView().
|
private |
! DDL Store
Definition at line 106 of file AliMpDEVisu.h.
Referenced by InfoDE(), and InfoManuMotif().
|
private |
! DE botton
Definition at line 88 of file AliMpDEVisu.h.
Referenced by NextDE(), UpdateComboCH(), UpdateComboDE(), UpdateNameView(), and ~AliMpDEVisu().
|
private |
! array for index vs DE id
Definition at line 97 of file AliMpDEVisu.h.
Referenced by UpdateComboCH(), UpdateComboDE(), and UpdateNameView().
|
private |
! occurrence of DE
Definition at line 99 of file AliMpDEVisu.h.
Referenced by DrawDE(), and UpdateNameView().
|
private |
! canvas for detection elt
Definition at line 85 of file AliMpDEVisu.h.
Referenced by ClosePopupWindow(), DrawDE(), DrawManuMotif(), DrawQuadrant(), DrawSlat(), and HandleMovement().
|
private |
! main window
Definition at line 83 of file AliMpDEVisu.h.
|
private |
! segmentation instance
Definition at line 105 of file AliMpDEVisu.h.
Referenced by EventToReal(), HandleMovement(), PopUpZoom(), ProcessMessage(), UpdateComboCH(), and UpdateNameView().
|
private |
! text entry for log file name
Definition at line 94 of file AliMpDEVisu.h.
Referenced by SaveLogMessage(), and ~AliMpDEVisu().
|
private |
! log message
Definition at line 93 of file AliMpDEVisu.h.
Referenced by ClearLogMessage(), DeletePopUp(), DrawQuadrant(), DrawSlat(), HandleMovement(), InfoDE(), InfoManuMotif(), PopUpZoom(), ResetManu(), SaveLogMessage(), and ~AliMpDEVisu().
|
private |
|
private |
! Manu Store
Definition at line 107 of file AliMpDEVisu.h.
Referenced by InfoDE(), and InfoManuMotif().
|
private |
! name of the DE
Definition at line 92 of file AliMpDEVisu.h.
Referenced by DrawDE(), UpdateComboCH(), UpdateNameView(), and ~AliMpDEVisu().
|
private |
! array for index vs DE names
Definition at line 98 of file AliMpDEVisu.h.
Referenced by UpdateComboCH(), and UpdateNameView().
|
private |
! manu id button
Definition at line 89 of file AliMpDEVisu.h.
Referenced by DrawManuMotif(), HandleMovement(), InfoManuMotif(), PopUpManuMotif(), ProcessMessage(), ResetManu(), and ~AliMpDEVisu().
|
private |
! check button for NB plane, defaultwise B plane
Definition at line 90 of file AliMpDEVisu.h.
Referenced by ProcessMessage(), and ~AliMpDEVisu().
|
private |
! list of transient windows to delete
Definition at line 95 of file AliMpDEVisu.h.
Referenced by ClosePopupWindow(), CreatePopupWindow(), and DeletePopUp().
|
private |
! check button to activate zoom mode, default wise disable
Definition at line 91 of file AliMpDEVisu.h.
Referenced by ProcessMessage().
|
private |
! flag for zoom mode on canvas instead of click mode
Definition at line 109 of file AliMpDEVisu.h.
Referenced by HandleMovement(), and ProcessMessage().