AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpDEVisu Class Reference

GUI for drawing detection element segmentation. More...

#include <AliMpDEVisu.h>

Inheritance diagram for AliMpDEVisu:

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...
 
AliMpDEVisuoperator= (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 AliMpVSegmentationfkSegmentation
 ! segmentation instance More...
 
AliMpDDLStorefDDLStore
 ! DDL Store More...
 
AliMpManuStorefManuStore
 ! Manu Store More...
 
Bool_t fZoomMode
 ! flag for zoom mode on canvas instead of click mode More...
 

Detailed Description

GUI for drawing detection element segmentation.

Author
Ch. Finck

Definition at line 39 of file AliMpDEVisu.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
kChamberCombo 
kDECombo 
kPlaneType 
kDEName 
kManuEntries 
kLogMessage 
kZoomMode 

Definition at line 111 of file AliMpDEVisu.h.

Constructor & Destructor Documentation

AliMpDEVisu::AliMpDEVisu ( UInt_t  w = 1200,
UInt_t  h = 600 
)

Standard constructor

Definition at line 76 of file AliMpDEVisu.cxx.

AliMpDEVisu::~AliMpDEVisu ( )
virtual

Clean up used widgets: frames, buttons, layouthints

Definition at line 280 of file AliMpDEVisu.cxx.

AliMpDEVisu::AliMpDEVisu ( const AliMpDEVisu src)
private

Not implemented.

Member Function Documentation

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.

void AliMpDEVisu::CreatePopupWindow ( Int_t  w,
Int_t  h,
const char *  title,
AliMpVPainter painter,
const char *  option 
)
private

Create transient frame

Definition at line 776 of file AliMpDEVisu.cxx.

Referenced by PopUpManuMotif(), and PopUpZoom().

void AliMpDEVisu::DeletePopUp ( )

delete motif popup windows

Definition at line 553 of file AliMpDEVisu.cxx.

Referenced by DrawDE().

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().

void AliMpDEVisu::EventToReal ( Int_t  eventX,
Int_t  eventY,
Double_t &  x,
Double_t &  y 
) const
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.

AliMpDEVisu& AliMpDEVisu::operator= ( const AliMpDEVisu src)
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 
)

popup zoom window

Definition at line 926 of file AliMpDEVisu.cxx.

Referenced by HandleMovement().

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().

Member Data Documentation

TGComboBox* AliMpDEVisu::fChamberCombo
private

! chamber botton

Definition at line 87 of file AliMpDEVisu.h.

Referenced by UpdateComboCH(), UpdateComboDE(), UpdateNameView(), and ~AliMpDEVisu().

TString AliMpDEVisu::fCurrentDEName
private

! current DE name

Definition at line 103 of file AliMpDEVisu.h.

Referenced by InfoDE(), UpdateComboCH(), and UpdateNameView().

Int_t AliMpDEVisu::fCurrentDetElem
private
AliMp::PlaneType AliMpDEVisu::fCurrentPlane
private

! current plane type

Definition at line 101 of file AliMpDEVisu.h.

Referenced by DrawQuadrant(), DrawSlat(), ProcessMessage(), UpdateComboCH(), and UpdateNameView().

AliMpDDLStore* AliMpDEVisu::fDDLStore
private

! DDL Store

Definition at line 106 of file AliMpDEVisu.h.

Referenced by InfoDE(), and InfoManuMotif().

TGComboBox* AliMpDEVisu::fDECombo
private

! DE botton

Definition at line 88 of file AliMpDEVisu.h.

Referenced by NextDE(), UpdateComboCH(), UpdateComboDE(), UpdateNameView(), and ~AliMpDEVisu().

TArrayI AliMpDEVisu::fDEComboIdx
private

! array for index vs DE id

Definition at line 97 of file AliMpDEVisu.h.

Referenced by UpdateComboCH(), UpdateComboDE(), and UpdateNameView().

TArrayI AliMpDEVisu::fDEOccurrence
private

! occurrence of DE

Definition at line 99 of file AliMpDEVisu.h.

Referenced by DrawDE(), and UpdateNameView().

TRootEmbeddedCanvas* AliMpDEVisu::fEcanvas
private

! canvas for detection elt

Definition at line 85 of file AliMpDEVisu.h.

Referenced by ClosePopupWindow(), DrawDE(), DrawManuMotif(), DrawQuadrant(), DrawSlat(), and HandleMovement().

const TGWindow* AliMpDEVisu::fkMainWindow
private

! main window

Definition at line 83 of file AliMpDEVisu.h.

const AliMpVSegmentation* AliMpDEVisu::fkSegmentation
private

! segmentation instance

Definition at line 105 of file AliMpDEVisu.h.

Referenced by EventToReal(), HandleMovement(), PopUpZoom(), ProcessMessage(), UpdateComboCH(), and UpdateNameView().

TGTextEntry* AliMpDEVisu::fLogFile
private

! text entry for log file name

Definition at line 94 of file AliMpDEVisu.h.

Referenced by SaveLogMessage(), and ~AliMpDEVisu().

TGTextView* AliMpDEVisu::fLogMessage
private
TGMainFrame* AliMpDEVisu::fMain
private

! main frame

Definition at line 84 of file AliMpDEVisu.h.

Referenced by ~AliMpDEVisu().

AliMpManuStore* AliMpDEVisu::fManuStore
private

! Manu Store

Definition at line 107 of file AliMpDEVisu.h.

Referenced by InfoDE(), and InfoManuMotif().

TGComboBox* AliMpDEVisu::fNameDECombo
private

! name of the DE

Definition at line 92 of file AliMpDEVisu.h.

Referenced by DrawDE(), UpdateComboCH(), UpdateNameView(), and ~AliMpDEVisu().

TString AliMpDEVisu::fNameDEComboIdx[156]
private

! array for index vs DE names

Definition at line 98 of file AliMpDEVisu.h.

Referenced by UpdateComboCH(), and UpdateNameView().

TGNumberEntry* AliMpDEVisu::fNumberEntry
private

! manu id button

Definition at line 89 of file AliMpDEVisu.h.

Referenced by DrawManuMotif(), HandleMovement(), InfoManuMotif(), PopUpManuMotif(), ProcessMessage(), ResetManu(), and ~AliMpDEVisu().

TGCheckButton* AliMpDEVisu::fPlaneButton
private

! check button for NB plane, defaultwise B plane

Definition at line 90 of file AliMpDEVisu.h.

Referenced by ProcessMessage(), and ~AliMpDEVisu().

TObjArray AliMpDEVisu::fTrashList
private

! list of transient windows to delete

Definition at line 95 of file AliMpDEVisu.h.

Referenced by ClosePopupWindow(), CreatePopupWindow(), and DeletePopUp().

TGCheckButton* AliMpDEVisu::fZoomButton
private

! check button to activate zoom mode, default wise disable

Definition at line 91 of file AliMpDEVisu.h.

Referenced by ProcessMessage().

Bool_t AliMpDEVisu::fZoomMode
private

! flag for zoom mode on canvas instead of click mode

Definition at line 109 of file AliMpDEVisu.h.

Referenced by HandleMovement(), and ProcessMessage().


The documentation for this class was generated from the following files: