HistAction Class Reference

#include <histaction.h>

Inheritance diagram for HistAction:

TGMainFrame TGCompositeFrame TGCompositeFrame TGFrame TGFrame TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

 HistAction (const TGWindow *p, UInt_t w, UInt_t h)
virtual ~HistAction ()
virtual void CloseWindow ()
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
Int_t getNextTrueIndex ()
void resetIter ()
void resetFlags ()
void setCanvasDivision (Int_t number)
void drawHist ()
void processBoxB (Int_t par)
void doubleclickedBoxA (const char *text)
Bool_t importHist (const char *name)
Bool_t importFromFile (const char *filename)
void clearScan ()
void paintHist ()

Private Types

enum  

Private Member Functions

Bool_t toGreen (Window_t id)
Bool_t toDefault (Window_t id)
Bool_t isOverlap ()
Bool_t isLayout ()
void toScan ()

Private Attributes

TGCompositeFramefF0
TGCompositeFramefFA
TGCompositeFramefFB
TRootEmbeddedCanvasfCanvasA
TRootEmbeddedCanvasfCanvasB
TGListBoxfListBoxA
TGListBoxfListBoxB
TGCompositeFramefA1
TGCompositeFramefA2
TGCompositeFramefA3
TGCompositeFramefA4
TGCompositeFramefA5
TGCompositeFramefB1
TGCompositeFramefB2
TGCompositeFramefB3
TGCompositeFramefB4
TGCompositeFramefB5
TGButtonfCloseButton
TGButtonfSaveButton
TGButtonfEditButton
TGButtonfDrawButton
TGButtonfSelectButton
TGButtonfClearButtonA
TGButtonfPrevButtonA
TGButtonfNextButtonA
TGButtonfGetButton
TGButtonfClearButtonB
TGButtonfPrevButtonB
TGButtonfNextButtonB
TGButtonfLayoutButton [16]
TGCheckButtonfMultiButton
TGTextEntryfName
TGTextEntryfTitle
TGTextEntryfChan
TGTextEntryfRange
TGTextEntryfEntries
TGTextBufferfNameBuf
TGTextBufferfTitleBuf
TGTextBufferfChanBuf
TGTextBufferfRangeBuf
TGTextBufferfEntriesBuf
TGTextEntryfBinCont
TGTextEntryfBinRange
TGTextBufferfBinContBuf
TGTextBufferfBinRangeBuf
TGTabfTab
TGCompositeFramefC1
TGCompositeFramefC2
const TGPicturefPcdup
const TGPicturefPlist
const TGPicturefPdetail
TGPictureButtonfCdup
TGPictureButtonfListMode
TGPictureButtonfDetailMode
TGListBoxfDir
TGListViewfFileView
TGFileContainerfFileCont
TGComboBoxfFilterBox
TObjArrayfHisto
Int_t position
Bool_t flags [kMaxHist]
TPadpads [16]
Int_t histInd [16]
Int_t horLay [4]
Int_t verLay [4]
Int_t cursorIter
Int_t xDiv
Int_t yDiv

Detailed Description

Definition at line 57 of file histaction.h.


Member Enumeration Documentation

anonymous enum [private]

Definition at line 60 of file histaction.h.


Constructor & Destructor Documentation

HistAction::HistAction ( const TGWindow p,
UInt_t  w,
UInt_t  h 
)

Definition at line 42 of file histaction.cxx.

References TGCompositeFrame::AddFrame(), cA, cB, SetWindowAttributes_t::fBackgroundPixel, SetWindowAttributes_t::fMask, TString::Form(), gClient, TPad::GetCanvas(), TGClient::GetColorByName(), gSystem, gVirtualX, i, kButtonEngaged, kButtonUp, kHorizontalFrame, kLHintsCenterX, kLHintsExpandX, kLHintsExpandY, kLHintsLeft, kLHintsTop, kLVDetails, kSortByName, kTRUE, kVerticalFrame, kWABackPixel, M_CDUP, M_CLEAR_A, M_CLEAR_B, M_CLOSE, M_DETAIL_MODE, M_DRAW, M_EDIT, M_FILTER, M_IMPORT, M_LIST_A, M_LIST_B, M_LIST_MODE, M_MULTI, M_NEXT_A, M_NEXT_B, M_PREV_A, M_PREV_B, M_SAVE, M_SELECT, MapSubwindows(), MapWindow(), NULL, TAttFill::SetFillColor(), SetWindowName(), snprintf, and TSystem::WorkingDirectory().

HistAction::~HistAction (  )  [virtual]

Definition at line 555 of file histaction.cxx.

References fA1, fA2, fA3, fA4, fA5, fB1, fB2, fB3, fB4, fB5, fBinCont, fBinRange, fC1, fC2, fCanvasA, fCanvasB, fCdup, fChan, fClearButtonA, fClearButtonB, fCloseButton, fDetailMode, fDir, fDrawButton, fEditButton, fEntries, fF0, fFA, fFB, fFilterBox, fGetButton, fLayoutButton, fListBoxA, fListBoxB, fListMode, fMultiButton, fName, fNextButtonA, fNextButtonB, fPrevButtonA, fPrevButtonB, fRange, fSaveButton, fSelectButton, fTab, and fTitle.


Member Function Documentation

Bool_t HistAction::toGreen ( Window_t  id  )  [private]

Definition at line 1022 of file histaction.cxx.

References SetWindowAttributes_t::fBackgroundPixel, SetWindowAttributes_t::fMask, gClient, TGClient::GetColorByName(), gVirtualX, kTRUE, and kWABackPixel.

Referenced by ProcessMessage().

Bool_t HistAction::toDefault ( Window_t  id  )  [private]

Definition at line 999 of file histaction.cxx.

References SetWindowAttributes_t::fBackgroundPixel, SetWindowAttributes_t::fMask, TGFrame::GetDefaultFrameBackground(), gVirtualX, kTRUE, and kWABackPixel.

Referenced by ProcessMessage().

Bool_t HistAction::isOverlap (  )  [private]

Definition at line 1039 of file histaction.cxx.

References histInd, horLay, i, j, kFALSE, kTRUE, and verLay.

Referenced by paintHist().

Bool_t HistAction::isLayout (  )  [private]

Definition at line 1065 of file histaction.cxx.

References horLay, i, kFALSE, kTRUE, and verLay.

Referenced by paintHist().

void HistAction::toScan (  )  [private]

Definition at line 804 of file histaction.cxx.

References TGListBox::AddEntry(), TGTextBuffer::AddText(), array, cB, TCanvas::cd(), TGTextBuffer::Clear(), clearScan(), entries, fChan, fChanBuf, TGObject::fClient, fEntries, fEntriesBuf, fListBoxB, fName, fNameBuf, TString::Form(), fRange, fRangeBuf, fTitle, fTitleBuf, TGClient::GetRoot(), gPad, hist, i, kMBIconExclamation, kMBOk, TGListBox::Layout(), TGCompositeFrame::MapSubwindows(), TGClient::NeedRedraw(), p, retval, totalB, and TCanvas::Update().

Referenced by ProcessMessage().

void HistAction::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

Definition at line 626 of file histaction.cxx.

Referenced by ProcessMessage().

Bool_t HistAction::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
) [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 1200 of file histaction.cxx.

References TGLBEntry::Activate(), TGListBox::AddEntry(), cA, TCanvas::cd(), TSystem::ChangeDirectory(), TGFileContainer::ChangeDirectory(), TCanvas::Clear(), clearScan(), CloseWindow(), command, cursA, cursB, TString::Data(), TGFileContainer::DisplayDirectory(), drawHist(), TCanvas::EditorBar(), TSystem::Exec(), TGObject::fClient, fDetailMode, fDir, fFileCont, fFileView, flags, fLayoutButton, fListBoxA, fListBoxB, fListMode, fMultiButton, TString::Form(), GET_MSG(), GET_SUBMSG(), TGObject::GetId(), TGListBox::GetMultipleSelections(), TGContainer::GetNextSelected(), TGClient::GetRoot(), TGListBox::GetSelectedEntry(), TGCompositeFrame::GetState(), TGButton::GetState(), gSystem, histInd, horLay, i, importFromFile(), indi, indj, j, k, kButton1, kButtonDown, kButtonUp, kC_COMMAND, kC_CONTAINER, kCM_BUTTON, kCM_CHECKBUTTON, kCM_COMBOBOX, kCM_LISTBOX, kCT_ITEMDBLCLICK, kFALSE, kLVDetails, kLVList, kMBIconExclamation, kMBIconQuestion, kMBNo, kMBOk, kMBYes, kTRUE, TString::Last(), TGListBox::Layout(), TString::Length(), M_CDUP, M_CLEAR_A, M_CLEAR_B, M_CLOSE, M_DETAIL_MODE, M_DRAW, M_EDIT, M_FILTER, M_IMPORT, M_LIST_A, M_LIST_B, M_LIST_MODE, M_MULTI, M_NEXT_A, M_NEXT_B, M_PREV_A, M_PREV_B, M_SAVE, M_SELECT, TGCompositeFrame::MapSubwindows(), MK_MSG(), TGClient::NeedRedraw(), NULL, TGContainer::NumSelected(), p, pads, paintHist(), processBoxB(), TGListBox::RemoveEntry(), resetFlags(), retval, S_ISDIR, TGListBox::Select(), TGFrame::SendMessage(), TGFileContainer::SetFilter(), TGListBox::SetMultipleSelections(), TGButton::SetState(), TGCheckButton::SetState(), TGListBox::SetTopEntry(), TGListView::SetViewMode(), toDefault(), toGreen(), toScan(), totalA, totalB, TCanvas::Update(), verLay, and TSystem::WorkingDirectory().

int HistAction::getNextTrueIndex (  ) 

Definition at line 723 of file histaction.cxx.

References cursorIter, flags, and kMaxHist.

Referenced by drawHist(), and paintHist().

void HistAction::resetIter (  )  [inline]

Definition at line 113 of file histaction.h.

References cursorIter.

Referenced by drawHist(), and paintHist().

void HistAction::resetFlags (  )  [inline]

Definition at line 114 of file histaction.h.

References flags, i, kFALSE, and kMaxHist.

Referenced by ProcessMessage().

void HistAction::setCanvasDivision ( Int_t  number  ) 

Definition at line 743 of file histaction.cxx.

References i, j, k, xDiv, and yDiv.

Referenced by drawHist().

void HistAction::drawHist (  ) 

Definition at line 774 of file histaction.cxx.

References TObjArray::At(), cA, TCanvas::cd(), TCanvas::Clear(), TPad::Divide(), TObject::Draw(), fHisto, getNextTrueIndex(), i, TPad::Modified(), number, resetIter(), setCanvasDivision(), TCanvas::Update(), xDiv, and yDiv.

Referenced by ProcessMessage().

void HistAction::processBoxB ( Int_t  par  ) 

Definition at line 885 of file histaction.cxx.

References TGTextBuffer::AddText(), array, cB, TCanvas::cd(), TGTextBuffer::Clear(), TH1::Draw(), fBinCont, fBinContBuf, fBinRange, fBinRangeBuf, TGObject::fClient, TString::Form(), hist, kRed, TGClient::NeedRedraw(), NULL, TH1F::SetBinContent(), TAttFill::SetFillColor(), TAttLine::SetLineColor(), temph, and TCanvas::Update().

Referenced by ProcessMessage().

void HistAction::doubleclickedBoxA ( const char *  text  ) 

Definition at line 1617 of file histaction.cxx.

References paintHist().

Bool_t HistAction::importHist ( const char *  name  ) 

Definition at line 640 of file histaction.cxx.

References TObjArray::AddAt(), TGListBox::AddEntry(), fHisto, TROOT::FindObject(), fListBoxA, gROOT, h, kFALSE, kMaxHist, kTRUE, TGListBox::Layout(), TGCompositeFrame::MapSubwindows(), position, and totalA.

Bool_t HistAction::importFromFile ( const char *  filename  ) 

Definition at line 674 of file histaction.cxx.

References TObjArray::AddAt(), TGListBox::AddEntry(), TObjArray::At(), TGObject::fClient, fHisto, fListBoxA, TKey::GetClassName(), TObject::GetName(), TGClient::GetRoot(), kFALSE, kMaxHist, kMBIconExclamation, kMBOk, kTRUE, l, TGListBox::Layout(), TGCompositeFrame::MapSubwindows(), NULL, position, TKey::ReadObj(), retval, and totalA.

Referenced by ProcessMessage().

void HistAction::clearScan (  ) 

Definition at line 936 of file histaction.cxx.

References array, cB, TCanvas::Clear(), TGTextBuffer::Clear(), cursB, fBinCont, fBinContBuf, fBinRange, fBinRangeBuf, fChan, fChanBuf, TGObject::fClient, fEntries, fEntriesBuf, fListBoxB, fName, fNameBuf, fRange, fRangeBuf, fTitle, fTitleBuf, gPad, hist, TGListBox::Layout(), TGCompositeFrame::MapSubwindows(), TGClient::NeedRedraw(), NULL, TGListBox::RemoveEntries(), temph, totalB, and TCanvas::Update().

Referenced by ProcessMessage(), and toScan().

void HistAction::paintHist (  ) 

Definition at line 1084 of file histaction.cxx.

References TObjArray::At(), cA, TCanvas::cd(), TPad::cd(), TPad::Draw(), TObject::Draw(), TGObject::fClient, fHisto, getNextTrueIndex(), TGClient::GetRoot(), histInd, horLay, i, isLayout(), isOverlap(), j, kMBIconExclamation, kMBOk, TPad::Modified(), NULL, pads, ratio, resetIter(), retval, TAttFill::SetFillColor(), TCanvas::Update(), verLay, xmax, xmin, ymax, and ymin.

Referenced by doubleclickedBoxA(), and ProcessMessage().


Member Data Documentation

TGCompositeFrame* HistAction::fF0 [private]

Definition at line 61 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fFA [private]

Definition at line 61 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fFB [private]

Definition at line 61 of file histaction.h.

Referenced by ~HistAction().

TRootEmbeddedCanvas* HistAction::fCanvasA [private]

Definition at line 62 of file histaction.h.

Referenced by ~HistAction().

TRootEmbeddedCanvas * HistAction::fCanvasB [private]

Definition at line 62 of file histaction.h.

Referenced by ~HistAction().

TGListBox* HistAction::fListBoxA [private]

Definition at line 63 of file histaction.h.

Referenced by importFromFile(), importHist(), ProcessMessage(), and ~HistAction().

TGListBox * HistAction::fListBoxB [private]

Definition at line 63 of file histaction.h.

Referenced by clearScan(), ProcessMessage(), toScan(), and ~HistAction().

TGCompositeFrame* HistAction::fA1 [private]

Definition at line 64 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fA2 [private]

Definition at line 64 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fA3 [private]

Definition at line 64 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fA4 [private]

Definition at line 64 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fA5 [private]

Definition at line 64 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame* HistAction::fB1 [private]

Definition at line 65 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fB2 [private]

Definition at line 65 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fB3 [private]

Definition at line 65 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fB4 [private]

Definition at line 65 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fB5 [private]

Definition at line 65 of file histaction.h.

Referenced by ~HistAction().

TGButton* HistAction::fCloseButton [private]

Definition at line 66 of file histaction.h.

Referenced by ~HistAction().

TGButton* HistAction::fSaveButton [private]

Definition at line 67 of file histaction.h.

Referenced by ~HistAction().

TGButton * HistAction::fEditButton [private]

Definition at line 67 of file histaction.h.

Referenced by ~HistAction().

TGButton* HistAction::fDrawButton [private]

Definition at line 68 of file histaction.h.

Referenced by ~HistAction().

TGButton * HistAction::fSelectButton [private]

Definition at line 68 of file histaction.h.

Referenced by ~HistAction().

TGButton * HistAction::fClearButtonA [private]

Definition at line 68 of file histaction.h.

Referenced by ~HistAction().

TGButton* HistAction::fPrevButtonA [private]

Definition at line 69 of file histaction.h.

Referenced by ~HistAction().

TGButton * HistAction::fNextButtonA [private]

Definition at line 69 of file histaction.h.

Referenced by ~HistAction().

TGButton* HistAction::fGetButton [private]

Definition at line 70 of file histaction.h.

Referenced by ~HistAction().

TGButton * HistAction::fClearButtonB [private]

Definition at line 70 of file histaction.h.

Referenced by ~HistAction().

TGButton * HistAction::fPrevButtonB [private]

Definition at line 70 of file histaction.h.

Referenced by ~HistAction().

TGButton * HistAction::fNextButtonB [private]

Definition at line 70 of file histaction.h.

Referenced by ~HistAction().

TGButton* HistAction::fLayoutButton[16] [private]

Definition at line 71 of file histaction.h.

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

TGCheckButton* HistAction::fMultiButton [private]

Definition at line 72 of file histaction.h.

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

TGTextEntry* HistAction::fName [private]

Reimplemented from TGWindow.

Definition at line 73 of file histaction.h.

Referenced by clearScan(), toScan(), and ~HistAction().

TGTextEntry * HistAction::fTitle [private]

Definition at line 73 of file histaction.h.

Referenced by clearScan(), toScan(), and ~HistAction().

TGTextEntry * HistAction::fChan [private]

Definition at line 73 of file histaction.h.

Referenced by clearScan(), toScan(), and ~HistAction().

TGTextEntry * HistAction::fRange [private]

Definition at line 73 of file histaction.h.

Referenced by clearScan(), toScan(), and ~HistAction().

TGTextEntry * HistAction::fEntries [private]

Definition at line 73 of file histaction.h.

Referenced by clearScan(), toScan(), and ~HistAction().

TGTextBuffer* HistAction::fNameBuf [private]

Definition at line 74 of file histaction.h.

Referenced by clearScan(), and toScan().

TGTextBuffer * HistAction::fTitleBuf [private]

Definition at line 74 of file histaction.h.

Referenced by clearScan(), and toScan().

TGTextBuffer * HistAction::fChanBuf [private]

Definition at line 74 of file histaction.h.

Referenced by clearScan(), and toScan().

TGTextBuffer * HistAction::fRangeBuf [private]

Definition at line 74 of file histaction.h.

Referenced by clearScan(), and toScan().

TGTextBuffer * HistAction::fEntriesBuf [private]

Definition at line 74 of file histaction.h.

Referenced by clearScan(), and toScan().

TGTextEntry* HistAction::fBinCont [private]

Definition at line 75 of file histaction.h.

Referenced by clearScan(), processBoxB(), and ~HistAction().

TGTextEntry * HistAction::fBinRange [private]

Definition at line 75 of file histaction.h.

Referenced by clearScan(), processBoxB(), and ~HistAction().

TGTextBuffer* HistAction::fBinContBuf [private]

Definition at line 76 of file histaction.h.

Referenced by clearScan(), and processBoxB().

TGTextBuffer * HistAction::fBinRangeBuf [private]

Definition at line 76 of file histaction.h.

Referenced by clearScan(), and processBoxB().

TGTab* HistAction::fTab [private]

Definition at line 77 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame* HistAction::fC1 [private]

Definition at line 78 of file histaction.h.

Referenced by ~HistAction().

TGCompositeFrame * HistAction::fC2 [private]

Definition at line 78 of file histaction.h.

Referenced by ~HistAction().

const TGPicture* HistAction::fPcdup [private]

Definition at line 79 of file histaction.h.

const TGPicture* HistAction::fPlist [private]

Definition at line 80 of file histaction.h.

const TGPicture* HistAction::fPdetail [private]

Definition at line 81 of file histaction.h.

TGPictureButton* HistAction::fCdup [private]

Definition at line 82 of file histaction.h.

Referenced by ~HistAction().

TGPictureButton * HistAction::fListMode [private]

Definition at line 82 of file histaction.h.

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

TGPictureButton * HistAction::fDetailMode [private]

Definition at line 82 of file histaction.h.

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

TGListBox* HistAction::fDir [private]

Definition at line 83 of file histaction.h.

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

TGListView* HistAction::fFileView [private]

Definition at line 84 of file histaction.h.

Referenced by ProcessMessage().

TGFileContainer* HistAction::fFileCont [private]

Definition at line 85 of file histaction.h.

Referenced by ProcessMessage().

TGComboBox* HistAction::fFilterBox [private]

Definition at line 86 of file histaction.h.

Referenced by ~HistAction().

TObjArray* HistAction::fHisto [private]

Definition at line 88 of file histaction.h.

Referenced by drawHist(), importFromFile(), importHist(), and paintHist().

Int_t HistAction::position [private]

Definition at line 89 of file histaction.h.

Referenced by importFromFile(), and importHist().

Bool_t HistAction::flags[kMaxHist] [private]

Definition at line 90 of file histaction.h.

Referenced by getNextTrueIndex(), ProcessMessage(), and resetFlags().

TPad* HistAction::pads[16] [private]

Definition at line 91 of file histaction.h.

Referenced by paintHist(), and ProcessMessage().

Int_t HistAction::histInd[16] [private]

Definition at line 93 of file histaction.h.

Referenced by isOverlap(), paintHist(), and ProcessMessage().

Int_t HistAction::horLay[4] [private]

Definition at line 94 of file histaction.h.

Referenced by isLayout(), isOverlap(), paintHist(), and ProcessMessage().

Int_t HistAction::verLay[4] [private]

Definition at line 95 of file histaction.h.

Referenced by isLayout(), isOverlap(), paintHist(), and ProcessMessage().

Int_t HistAction::cursorIter [private]

Definition at line 96 of file histaction.h.

Referenced by getNextTrueIndex(), and resetIter().

Int_t HistAction::xDiv [private]

Definition at line 97 of file histaction.h.

Referenced by drawHist(), and setCanvasDivision().

Int_t HistAction::yDiv [private]

Definition at line 97 of file histaction.h.

Referenced by drawHist(), and setCanvasDivision().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:30:55 2011 for ROOT_528-00b_version by  doxygen 1.5.1